Good plugin and nicely coded in proper OOP style, unlike the hybrid 'ANSI C / C#' style I use
and can't see me even getting out of that way either, too old to change.
Bob,
I see what you mean about terminating the plugin but I think hitting 'Esc' is consistent with other CamBam functionality.
Jasper,
I used ILSpy to save the code as a Visual Studio project but some parts do not export in a way that the compiler likes. Can you tell me how your original code code looks compared to this ILSpy saved method ?
private void replace_arc(Arc dst, Polyline src)
{
Arc arc = (Arc)src.ToPrimitives()[0];
dst.set_Point(arc.get_Point());
dst.set_Start(arc.get_Start());
dst.set_Sweep(arc.get_Sweep());
dst.set_Radius(arc.get_Radius());
dst.Update();
}
Also to keep David and non English speaking users happy, it might be a good idea to include translation in this and future plugins, there are plenty of examples and threads about it.
It just needs this include at the strart,
include CamBam.Util;
and for example,
CamBam.ThisApplication.AddLogMessage("No valid boundaries selected");
becomes
CamBam.ThisApplication.AddLogMessage(TextTranslation.Translate("No valid boundaries selected"));
keep up the good work !