Help with my model update

Help with my model update

Anonymous
Not applicable
428 Views
4 Replies
Message 1 of 5

Help with my model update

Anonymous
Not applicable

Hello

 

Ich have writte a iLogic rule for update a assembly:

 

InventorVb.DocumentUpdate()

 

And the rule should run when i change the parametres (save my excel file).

 

But when i save my excel my assembly update just half, like the picture in attach

 

To bekomme the end update i muss a littel push the model. is there a way to to that automaticly?

0 Likes
429 Views
4 Replies
Replies (4)
Message 2 of 5

kwalker1
Enthusiast
Enthusiast

Hi,

 

I have come across similar issues to what you have experienced.

 

If you are using the Any Model Parameter Change event trigger, then I have found that if you save changes to your excel file without the inventor file open at the same time then the model will not update.

 

It appears that inventor does not compare the new parameter values when you open the file against the original parameter values from the last save.

Hence your iLogic will only trigger if there is a parameter change made after the inventor file has been opened (not before the inventor file has been opened).

 

You could use the After Open Document event trigger instead but this will cause the iLogic code to run every time you opent the file.

 

Hope this helps in some way.

 

Cheers.

Kurt.

0 Likes
Message 3 of 5

kwalker1
Enthusiast
Enthusiast

Also I tend to use the following code to update the model.

 

iLogicVb.UpdateWhenDone = True

 

The code you are calling up might be just updating the open document (ie. your assembly file) and not also the sub-assembly and part files.

0 Likes
Message 4 of 5

Anonymous
Not applicable

Thanks i tried taht code too but its always the same

 

all files (parts) are linked with the excel tabel

 

0 Likes
Message 5 of 5

RodrigoEiras
Advocate
Advocate

 

I recently found this post, you might find helpful.

 

https://www.cadlinecommunity.co.uk/hc/en-us/articles/202020451-Inventor-2015-iLogic-Form-Immediate-M...

 

Best regards

 

 

 

 

0 Likes