Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.

 

The rule would format the exported Thickness, Width, and Length parameters based on the parameters units, "in" or "mm".

 

For example:

 

If oThickness.Units = "mm" Then
                        
                            oFormat=oThickness.CustomPropertyFormat
                            oFormat.PropertyType=Inventor.CustomPropertyTypeEnum.kTextPropertyType
                            oFormat.Precision=Inventor.CustomPropertyPrecisionEnum.kZeroDecimalPlacePrecision
                            oFormat.Units = "mm"
                            oFormat.ShowUnitsString = True
                            oFormat.ShowLeadingZeros = False
                            oFormat.ShowTrailingZeros = True
                        
                        Else If oThickness.Units = "in"  Then
                        
                            oFormat=oThickness.CustomPropertyFormat
                            oFormat.PropertyType=Inventor.CustomPropertyTypeEnum.kTextPropertyType
                            oFormat.Precision=Inventor.CustomPropertyPrecisionEnum.kThreeDecimalPlacesPrecision
                            oFormat.Units = "in"
                            oFormat.ShowUnitsString = False
                            oFormat.ShowLeadingZeros = False
                            oFormat.ShowTrailingZeros = True

 

If the rule runs in a part file the parameters would be formatted as shown based on the units.

 

If the rule runs in an assembly file, the parameters in all the parts would be formatted. 

If the part is modifiable.

 

 

Dewayne
Inventor Pro 2023
Vault Pro 2023