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

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

Guido.LangeTuchscherer
Enthusiast Enthusiast
1,307 Views
3 Replies
Message 1 of 4

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

Guido.LangeTuchscherer
Enthusiast
Enthusiast

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.

0 Likes
Accepted solutions (1)
1,308 Views
3 Replies
Replies (3)
Message 2 of 4

JelteDeJong
Mentor
Mentor
Accepted solution

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

Guido.LangeTuchscherer
Enthusiast
Enthusiast

Thanks alot @JelteDeJong,

 

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

0 Likes
Message 4 of 4

fsdolphin
Collaborator
Collaborator

This seems to work for parts and assemblies. 

 

Question.

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

 

Thanks a lot!

0 Likes