.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Cancel command

3 REPLIES 3
Reply
Message 1 of 4
Anonymous
318 Views, 3 Replies

Cancel command

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
3 REPLIES 3
Message 2 of 4
Anonymous
in reply to: Anonymous

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
Message 3 of 4
Anonymous
in reply to: Anonymous

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
Message 4 of 4
Anonymous
in reply to: Anonymous

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

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost