iLogic - cancel Save operation by rule triggered by "Before Save Document" event

iLogic - cancel Save operation by rule triggered by "Before Save Document" event

Anonymous
Not applicable
1,417 Views
4 Replies
Message 1 of 5

iLogic - cancel Save operation by rule triggered by "Before Save Document" event

Anonymous
Not applicable

Hello,

 

Can anyone help? I am quite new in iLogic. I would like to create an iLogic rule which will be triggered by event "Before Save Document". The rule should check whether valid material is assigned to the part and if not it should cancel tha save operation so user can assign correct material to it and try to save again. The only thing which I can't find how to do it is to cancel the save operation. Is there a way how to cancel the save operation by iLogic?

 

Thank you.

 

Regards,

 

0 Likes
Accepted solutions (1)
1,418 Views
4 Replies
Replies (4)
Message 2 of 5

Vladimir.Ananyev
Alumni
Alumni
Accepted solution

Here is the comment from Mike Deck:

You could do it with an addin, using  ApplicationEvents.OnSaveDocument.  
iLogic also handles that event, but it doesn’t provide a way to specify the cancel argument.


Vladimir Ananyev
Developer Technical Services
Autodesk Developer Network

0 Likes
Message 3 of 5

Anonymous
Not applicable

Is there now (Inventor 2020) a way to code iLogic to stop the saving process.

 

Thank you

0 Likes
Message 4 of 5

Anonymous
Not applicable

Hello all,

 

Is this yet possible in Inventor 2021?

 

Cheers!

0 Likes
Message 5 of 5

emaiolino
Advocate
Advocate
Can't do this yet? I'm trying the same thing and I can't find the correct result.


Esteban Maiolino
Titular EMBA Proyectos
Sitio web o nombre del blog
Facebook | Twitter | LinkedIn

0 Likes