02-06-2020
12:11 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
02-06-2020
12:11 PM
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
Inventor Pro 2023
Vault Pro 2023