Hi,
I have two user parameters to which i assign the values of the flat pattern extents. All good until the extents value is a whole number
ie if the extents value is 24.000 the user parameter value is 24
I need the user parameter to 3 decimal places .
Should be easy, but not seeing this right now, any ideas?
thanks
If this post is not dead, and You are still using Inventor 2010 You might try this code, wchich changes the precision and trailing zeros display for user parameters. the below code works for inventor 2013, I'm not sure if it works for earlier versions.
Dim oDoc As PartDocument
oDoc=ThisApplication.ActiveDocument
Dim oParameter As Parameter
Dim oFormat As CustomPropertyFormat
For Each oParameter In oDoc.ComponentDefinition.Parameters.UserParameters
oFormat=oParameter.CustomPropertyFormat
oParameter.ExposedAsProperty=True
oFormat.Precision=Inventor.CustomPropertyPrecisionEnum.kThreeDecimalPlacesPrecision
oFormat.ShowUnitsString=False
oFormat.ShowLeadingZeros=True
oFormat.ShowTrailingZeros=True
Next oParameter