Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

ilogic detect/check if document/part has changed, then run code

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
Guido.LangeTuchscherer
1057 Views, 3 Replies

ilogic detect/check if document/part has changed, then run code

Hi there,

 

I am looking for a way to read the (I am told it exists) property or filesetting flag which defines weather the document has been changed since the last save or not.

 

I would like to run my ilogic just before saving, but only when there has been a change to the document, as i run into other issues with the standard functinoality of Inventor and our Pdm-System Gain.

 

Thanks for your help in advance.

Greetings Guido L.-T.

3 REPLIES 3
Message 2 of 4

You can add this to the top of your update rule

If ThisDoc.Document.Dirty = False Then
    Return
End If

 

Jelte de Jong
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


Blog: hjalte.nl - github.com

Message 3 of 4

Thanks alot @JelteDeJong,

 

this works perfectly for parts and I think i got it to run for the subparts of the assembly too.

Message 4 of 4
fsdolphin
in reply to: JelteDeJong

This seems to work for parts and assemblies. 

 

Question.

Is it possible to get more details of what has changed? 

 

Thanks a lot!

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

Post to forums  

Autodesk Design & Make Report