I have a problem firing _Undo inside my custom commands. Basically, if I use a GetObject or a GetPoint (and potentially any Get, I tried these two) and do not set GetObject.AcceptUndo(true), if I run my command and press Ctrl+Z (or type _Undo in the command line) the previous command Undo is executed. The previous command doesn’t have any custom undo registered, but it creates a curve, so undoing inside the second command the object created gets deleted.
The strange thing is, if I use _Curve or _InterpCrv commands to create the curve, firing Undo does delete it during a GetObject, but if I pick the object and then fire Undo during a subsequent Get inside the same command, the curve doesn’t get deleted, which instead happens if I beforehand used my custom command to create it.
Does anyone has any clue about what’s happening here?