Problem to solve:
I have one custom iProperty set to expression "=<MASS>" and the other to "=<VOLUME">. I am processing large number of files (150k). About 5% files does not update the expression value. The value - in czech "(není)" ( english translation "(none)" or "N/A" ) is displayed. I tried several methods to update mass:
Inventor.PartDocument.Update
Inventor.PartDocument.Update2
Inventor.PartDocument.Rebuild
tmp = Inventor.PartDocument.ComponentDefinition.MassProperties.Mass
None of them works.
Using GUI the update in iProperties Physical prop tab does not work. The only thing that works is to click on "2":
I need API code to duplicate this action, but I rather have the full code than inventorApp.CommandManager.ControlDefinitions.Item ("xxx").Execute()
Sample file attached.
chyparo
Inventor 2014 SP2
Solved! Go to Solution.
Make sure the Material is set correctly. The mass is shown in the properties near the middle of the dialog box. If it is showing as N/A, click the Update button and it should fill in.
Please, if you want to help me, open the sample ipt. The material is OK, the mass in the physical property tab is OK, problem is in custom property tab in expression =<MASS>.
i did open the file
Please, change the material to ABS Plastic apply and look the Custom properties
Material changed to ABS (select ABS from list, then Click on Apply):
-screenshot of Physical tab:
-screenshot of Custom tab is same as before:
The Value is not updating - the only way to update value is as I wrote in my first post. So just another Inventor BUG.
Thank you for the video - it definitely shows, that the error is in material asset. I repeated your procedure and several materials do not throw the error. So I focused on this an the solution is to switch material asset to another asset and back.
Can't find what you're looking for? Ask the community or share your knowledge.