Message 1 of 9
Update physical properties on save (Parts and Assemblies) setting does not work properly
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello everyone!
It seems update on physical properties on save (Parts and Assemblies) setting does not work properly. It does not update the mass of the top assembly in case there is a save dialog for multiple documents. It updates the mass of every sub-component (part or assembly), but not the top assembly, unless there is no save dialog for multiple files.
I am using Inventor 2020.4.1.
How to simulate:
- Check you have setting properly set "Update physical properties on save (Parts and Assemblies)"
- Create the new empty assembly and save it.
- Create the new part (use random shape) and save it.
- Place multiple parts into assembly.
- Change the part a bit so it gets dirtied (also assembly will get dirtied).
- Go to the assembly and save it.
- Because both of the files are dirtied, save dialog will pop up, save them both.
- Part now has mass updated, but assembly does not.
- If you save the assembly again (without save dialog for multiple files), it will update the mass with no problem.
Can anybody explain why this happens or it is a bug?
I managed to solve this problem with iLogic:
- Disable "Update physical properties on save".
- Use event trigger on before save.
- Use update2 document iLogic command. Works also with just update() command.
ThisDoc.Document.Update2(True)
- Use command manager iLogic command to update mass (synchronous - important, otherwise it does not work!)
ThisApplication.CommandManager.ControlDefinitions.Item("AppUpdateMassPropertiesCmd").Execute2(True)
Taking iLogic solution into the account, I came to few reasons why this happens:
- Somehow update mass does not run properly on top assembly (it is still enabled after saving, while on other documents is not).
- It updates the mass before update is executed (asynchronous?).
I hope I explained it understandable. If you have any questions do not hesitate to ask.
Thanks for all incoming help!