Update method in assembly.

Update method in assembly.

breinkemeyer
Enthusiast Enthusiast
263 Views
1 Reply
Message 1 of 2

Update method in assembly.

breinkemeyer
Enthusiast
Enthusiast

I have an assembly created through the api.  at the end of the routine I do an assemblydoc.update() and an assemblydoc.close().  When I open it I have to do a local update (see attachment).  Is the local update button supposed to be the same as the update method?

0 Likes
Accepted solutions (1)
264 Views
1 Reply
Reply (1)
Message 2 of 2

Andrii_Humeniuk
Advisor
Advisor
Accepted solution

Hi @breinkemeyer .

This may be because you are updating but not saving the assembly before closing. Try adding a Save() function before closing the assembly.

assemblydoc.Update()
assemblydoc.Save()
assemblydoc.Close(True)

You can also use the Rebuild function to force a refresh before saving.

Andrii Humeniuk - CAD Coordinator, Autodesk Certified Instructor

LinkedIn | My free Inventor Addin | My Repositories

Did you find this reply helpful ? If so please use the Accept as Solution/Like.

EESignature

0 Likes