- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi @ABHUT_9090. This type of thing can be challenging to write code for remotely, due to lack of being able to test the code before posting it. If it is not putting any value at all in the 'TOTAL_SQ_INCH' column, then that would not be because of a units problem. There must still be something else going on preventing this from working properly. Is the value within the "SQ_INCH" column a String (quoted), instead of a Double? When you have one of those model documents open, and have the iProperties dialog open, and on the Custom tab, does the Type column for that custom iProperty listed as Text or Number? If it is listed as Text, then that will be what is causing the problem. If that custom iProperty was created automatically by checking the check box within the Parameters dialog box in the Export column for that parameter, then you will need to right-click on that parameter's row, then choose 'Custom Property Format...'. That will open a small dialog where you can change the property type from text to Number, and set the other related options like Units and Precision.
I'm pretty sure that the Item Quantity is always just a unit-less Integer, representing the 'net' (as apposed to 'gross') number of components found within the assembly. Those other similar sounding quantity related properties are set within each model document by opening the model files, then going to the Tools tab, then clicking on Document Settings, which will open a dialog. Then click on the 'Bill of Materials' tab within that dialog. That is where you set Default BOM Structrue, Unit Quantity, Base Quantity, & Base Unit. Those are used by the BOM to help determine actual quantities the way you want them to be represented when there may be multiple of this model document being represented by components within an assembly.
Wesley Crihfield
(Not an Autodesk Employee)