10-17-2024
05:52 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
10-17-2024
05:52 AM
Hello community!
I was trying to create a new custom parameter without having it in the parameter list.
I would like to set the area as a unit with mm^2, but I only found Circular_mill.
I found this logic, but it sets text as a unit because of ‘UnitsTypeEnum.kTextUnits’.
Can anyone help me to set mm^2 as a unit within ilogic?
Thanks in advance.
Regards
Dim oParams As Parameters Dim oPartDoc As PartDocument = ThisDoc.Document Dim oPartCompDef As PartComponentDefinition = oPartDoc.ComponentDefinition oParams = oPartCompDef.Parameters Dim oUserParams As UserParameters = oParams.UserParameters Try p = Parameter("PAINTED_AREA") Catch oUserParams.AddByValue("PAINTED_AREA","MyValue", UnitsTypeEnum.kTextUnits) End Try
Solved! Go to Solution.