Autodesk Inventor Engineer-to-Order
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
how to stop a dynamic part deletion and do something else
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
To keep my UI's "Delete" command generic, I would like my user interface to support the following behavior relying on ETO reactors instead of custom UI code.
- user command causes a call to deleteddynamicchild to try and delete a user identified (ETO) part.
- for certain parts or certain situations of the same parts, instead of deleting the part, a different action needs to occur, e.g. write a rule on the part.
As I understand it, the way to stop the part deletion is by using the allowdelete? rule.
However, this will stop the predeleteself() method from being fired as well, leaving me with no way to cause my other action to occur.
Anyone have an approach for this?
thanks
Elly
--
Autodesk
Elly Bachrach
Solutions Architect
Autodesk Global Services
Direct +1 (847) 676-2880
elly.bachrach@autodesk.com
Re: how to stop a dynamic part deletion and do something else
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
As we discussed in email, the best way to handle this is on the client side. It is not possible for allowDelete to perform an action, nor is it possible for preDeleteSelf to cancel the deletion.

Jon Balgley
Autodesk Inventor ETO team
Autodesk, Inc.
