There's no CommandFlags for any of that.
Also, there's no way to prevent undoing a given
operation, without also preventing any previous
changes from also being undone.
You can use the Control option of the UNDO
command to disable and then immediately enable
undo, keeping in mind that it will prevent undoing
of all previous changes, not only those you want to
prevent the user from undoing.
If you are doing something when a drawing file is
first opened, before the user has a chance to make
any changes to the drawing, then the aforementioned
UNDO/Control hack is one way to prevent undoing of
changes that your initialization code does.
--
http://www.caddzone.com
AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006/2007
http://www.acadxtabs.com
"Maksim Sestic" wrote in message news:5333873@discussion.autodesk.com...
Hi all,
I need to make a command (which changes database) that has some unusual properties:
1) can't be run by user from command window (can get fired only by some other process)
2) can't get UNDOed
Is 1) possible at all?
Is 2) possible via certain CommandFlags setting?
Regards,
Maksim Sestic