user parameters in base quantity don't show in Unit Quantity

user parameters in base quantity don't show in Unit Quantity

^_^clovis^_^
Advocate Advocate
480 Views
1 Reply
Message 1 of 2

user parameters in base quantity don't show in Unit Quantity

^_^clovis^_^
Advocate
Advocate

Hello,

I've create a user parameter "TotalLength" using

Set oPara = userParams.AddByExpression("TOTALLENGTH", _
                                  j, kDefaultDisplayLengthUnits)
            oPara.Precision = kOneDecimalPlacePrecision
            oPara.ExposedAsProperty = True
            oPara.CustomPropertyFormat.PropertyType = kNumberPropertyType

I can select this new parameter in Bill of materials -> Base Quantity but nothing shows up in Unit Quantity.

When I create the same parameter manually, it does show up in Unit Quantity.

What am I missing in my macro?

Thanks.UserParam.PNG

0 Likes
Accepted solutions (1)
481 Views
1 Reply
Reply (1)
Message 2 of 2

^_^clovis^_^
Advocate
Advocate
Accepted solution

Well after searching I found out that this setting is not working with what I want

'        oPara.Precision = kOneDecimalPlacePrecision
0 Likes