Hi – sorry for the delay in responding.
Here’s how to get the mass of a design in Configurator 360:
It’s different for parts and assemblies. Let’s start with a part.
- Since Configurator 360 only displays parameters, not iProperties, we must create a user parameter that will hold the mass. For example, you can call it “massParam” and give it a value of “1.0g” (one gram).
- Create an iLogic rule that assigns the value of the mass iProperty to the new “massParam” parameter. However, mass is special, and the document must be updated before doing the assignment. So the rule will look like this:
InventorVb.DocumentUpdate()
massParam = iProperties.Mass
- Add this rule to the “Part Geometry Changed” event. This means the rule will run any time the part’s geometry changes.
- Upload the part to Configurator 360. The “massParam” parameter will be displayed. If you change any other parameter that affects the part geometry, the massParam value will now be updated. You’ll see a “!”
- You will probably want to mark the “massParam” parameter as read-only. Use the “Edit Parameters” command on the Designs page, and check the “Read-only” checkbox.
For assemblies, it’s a little different:
- Create a parameter that will hold the mass.
- Create an iLogic rule that will assign the value of the iProperty to the new parameter. But because of differences in the iLogic events for assemblies, we need some different code in the rule:
Trigger = length & width & height ‘list all relevant parameters here.
InventorVb.DocumentUpdate()
massParam = iProperties.Mass
- Upload to Configurator 360.
- Change the “massParam” to be read-only.
If you have any more questions on this, just reply here.
Jon Balgley