.NET

Reply
*Rune Aarnes
Message 1 of 4 (138 Views)

Cancel command

138 Views, 3 Replies
08-06-2006 02:58 AM
Hi.
Is it a way to cancel a command? My program makes a group with a leader
attach to a mtext and other entitys. It is importent
that only my program can edit the mtext, and it should be impossible to
explode the group. So it something i can do in for inctance in
ObjectModifed event? I have xdata in group and mtext so i want to cancel
ddedit and explode when when that is selected

Thanks
Rune
*Paul Richardson
Message 2 of 4 (138 Views)

Re: Cancel command

08-06-2006 04:02 PM in reply to: *Rune Aarnes
How about watching the selectionadded event for your
entity. If any command you don't want run on it is active
then remove it from the selection set.

Bobby C. has a sample here.
http://www.theswamp.org/index.php?topic=8194.0

"Rune Aarnes" wrote in message
news:5260153@discussion.autodesk.com...
Hi.
Is it a way to cancel a command? My program makes a group with a leader
attach to a mtext and other entitys. It is importent
that only my program can edit the mtext, and it should be impossible to
explode the group. So it something i can do in for inctance in
ObjectModifed event? I have xdata in group and mtext so i want to cancel
ddedit and explode when when that is selected

Thanks
Rune
*Rune Aarnes
Message 3 of 4 (138 Views)

Re: Cancel command

08-08-2006 01:24 PM in reply to: *Rune Aarnes
Thank you very much. I will try this....



"Paul Richardson" skrev i melding
news:5260300@discussion.autodesk.com...
How about watching the selectionadded event for your
entity. If any command you don't want run on it is active
then remove it from the selection set.

Bobby C. has a sample here.
http://www.theswamp.org/index.php?topic=8194.0

"Rune Aarnes" wrote in message
news:5260153@discussion.autodesk.com...
Hi.
Is it a way to cancel a command? My program makes a group with a leader
attach to a mtext and other entitys. It is importent
that only my program can edit the mtext, and it should be impossible to
explode the group. So it something i can do in for inctance in
ObjectModifed event? I have xdata in group and mtext so i want to cancel
ddedit and explode when when that is selected

Thanks
Rune
*Rune Aarnes
Message 4 of 4 (138 Views)

Re: Cancel command

08-21-2006 10:34 AM in reply to: *Rune Aarnes
Hi
Now I have tryed it and it works fine to filter out the group i dont want to
explode, but I cant fine out how to cancel a command...
I would be very happy if somebody can give me a little tip how to do it....


"Rune Aarnes" skrev i melding
news:5262512@discussion.autodesk.com...
Thank you very much. I will try this....



"Paul Richardson" skrev i melding
news:5260300@discussion.autodesk.com...
How about watching the selectionadded event for your
entity. If any command you don't want run on it is active
then remove it from the selection set.

Bobby C. has a sample here.
http://www.theswamp.org/index.php?topic=8194.0

"Rune Aarnes" wrote in message
news:5260153@discussion.autodesk.com...
Hi.
Is it a way to cancel a command? My program makes a group with a leader
attach to a mtext and other entitys. It is importent
that only my program can edit the mtext, and it should be impossible to
explode the group. So it something i can do in for inctance in
ObjectModifed event? I have xdata in group and mtext so i want to cancel
ddedit and explode when when that is selected

Thanks
Rune
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.