Hi, Try using an imput box, something like this
oLength1 = InputBox("Select Length Parameter", "Ilogic Rule", "L1")
oWidth1 = InputBox("Select Length Parameter", "Ilogic Rule", "A1")
oThickness1 = InputBox("Select Length Parameter", "Ilogic Rule", "e1")
oLength = Parameter.Param(oLength1)
oLength.ExposedAsProperty = True
oFormatLength=oLength.CustomPropertyFormat
oFormatLength.PropertyType=Inventor.CustomPropertyTypeEnum.kTextPropertyType
oFormatLength.Precision=Inventor.CustomPropertyPrecisionEnum.kZeroDecimalPlacePrecision
oFormatLength.ShowUnitsString=False
oFormatLength.ShowTrailingZeros = False
oFormatLength.ShowLeadingZeros = False
oWidth = Parameter.Param(oWidth1)
oWidth.ExposedAsProperty = True
oFormatWidth=oWidth.CustomPropertyFormat
oFormatWidth.PropertyType=Inventor.CustomPropertyTypeEnum.kTextPropertyType
oFormatWidth.Precision=Inventor.CustomPropertyPrecisionEnum.kZeroDecimalPlacePrecision
oFormatWidth.ShowUnitsString=False
oFormatWidth.ShowTrailingZeros = False
oFormatWidth.ShowLeadingZeros = False
oThickness= Parameter.Param(oThickness1)
oThickness.ExposedAsProperty = True
oFormatThickness=oThickness.CustomPropertyFormat
oFormatThickness.PropertyType=Inventor.CustomPropertyTypeEnum.kTextPropertyType
oFormatThickness.Precision=Inventor.CustomPropertyPrecisionEnum.kZeroDecimalPlacePrecision
oFormatThickness.ShowUnitsString=False
oFormatThickness.ShowTrailingZeros = False
oFormatThickness.ShowLeadingZeros = False
Dim ovalue As String = "=UHMW, <" & oThickness1 & ">x<" & oWidth1 & ">x<" & oLength1 & ">"
iProperties.Value("Project", "Part Number") = ovalue
I hope you find it useful greetings
Please accept as solution and give likes if applicable.
I am attaching my Upwork profile for specific queries.
Sergio Daniel Suarez
Mechanical Designer
| Upwork Profile | LinkedIn