Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X
Solved! Go to Solution.
Define restrictions for the parameter in the restrictions list
for example
...
{ Name = DIAMETER
Type = real Length
Default = 10.0 mm
Enum = {10.0 mm, 12.0 mm}
},
...Use restricted_val_definition config option to enable the restrictions list.
Then create the parameter by MC
Similar question - "How to add parameters with units using ModelCHECK?": https://community.ptc.com/t5/3D-Part-Assembly-Design/How-to-add-parameters-with-units-using-ModelCHECK/td-p/394033
That question is 10 years old... still not solutions??
Define restrictions for the parameter in the restrictions list
for example
...
{ Name = DIAMETER
Type = real Length
Default = 10.0 mm
Enum = {10.0 mm, 12.0 mm}
},
...Use restricted_val_definition config option to enable the restrictions list.
Then create the parameter by MC
Article CS299858 is about something else.
It's about how to create a parameter with the name of units in the value.
Not a parameter with units of measurement.
