cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X

Translate the entire conversation x

How to create parameters with Units with Modelcheck?

ZANET
8-Gravel

How to create parameters with Units with Modelcheck?

I am using Creo Parametric Release 11.0 and Datecode11.0.5.0

Hello,
I use ModelCheck for create parameters in creo prt.
Is it possible to specify units?
this is the line in MC for my parameter:
PRT_PARAMETER DIAMETER REAL EQ 10
And I need that the parameter created has mm as units.
Because in windchill this parameters is a type: Real with units
Thanks
ACCEPTED SOLUTION

Accepted Solutions
Van_AG
15-Moonstone
(To:ZANET)

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

View solution in original post

5 REPLIES 5
VladimirN
24-Ruby III
(To:ZANET)

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??

Van_AG
15-Moonstone
(To:ZANET)

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

hadardor
17-Peridot
(To:ZANET)

Van_AG
15-Moonstone
(To:hadardor)

Article CS299858 is about something else.


It's about how to create a parameter with the name of units in the value.

Snap-2025-11-14-012.jpg

 

Not a parameter with units of measurement.

Snap-2025-11-14-013.jpg

Announcements

Top Tags