Hi Ella,
re: undo for clines - it's possible to set up a script that will remove the last placed cline, so that may work as a general "cline undo" that you could use either in this custom command or also at any other time you make a cline as well.
Setting up this script on a shortcut key should handle that:
script:var gd = moi.geometryDatabase; var clines = gd.getObjects().getConstructionLines(); if ( clines.length > 0 ) gd.removeObject( clines.item(clines.length-1) );
It should also be possible to alter this custom ConstructionLine command to have a "command-specific undo" in it which would allow it to respond to an undo event so it could handle a custom undo action during the command and it could do the same thing as above to remove the last entered cline. Let me know if you want me to make a new version that has that set up. But the shortcut key above is more general purpose since it will let you get rid of the last cline you created at any time, even if you are creating one while running some regular draw command instead of this special ConstructionLine command.
- Michael
|