How do I update my model using VB.net?

How do I update my model using VB.net?

JBEDsol
Collaborator Collaborator
524 Views
2 Replies
Message 1 of 3

How do I update my model using VB.net?

JBEDsol
Collaborator
Collaborator

I'm iterating through a loop changing the plane of a split command but I can't figure out how to update the model each time to check the health status.

0 Likes
525 Views
2 Replies
Replies (2)
Message 2 of 3

WCrihfield
Mentor
Mentor

There are several pieces of code for updating a document.

Here are the three most commonly used.

- Each type of Inventor document object has an 'Update' method. (oDoc.Update)

- iLogicVb.DocumentUpdate (iLogic)

- InventorVb.DocumentUpdate (iLogic)

There are also codes that can be activated at the beginning of code that will cause the 'active' document to update once it has finished.

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

0 Likes
Message 3 of 3

dutt.thakar
Collaborator
Collaborator

@JBEDsol 

Another thing you can add to the methods mentioned by @WCrihfield  in this once you end the process is

ThisDoc.Document.Rebuild2 (iLogic) - to rebuild the document.

oDoc.Rebuild2 (VB.Net)

 

Hope this will help

If this answer has solved your problem please ACCEPT SOLUTION and hit like if you found it helpful..!


Regards,
Dutt Thakar
LinkedIn
0 Likes