Skip to main content
8-Gravel
September 18, 2025
Solved

How to create parameters with Units with Modelcheck?

  • September 18, 2025
  • 3 replies
  • 581 views
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
    Best answer by Van_AG

    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

    3 replies

    24-Ruby III
    September 18, 2025

    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 

    ZANET8-GravelAuthor
    8-Gravel
    September 18, 2025

    That question is 10 years old... still not solutions??

    Van_AG15-MoonstoneAnswer
    15-Moonstone
    October 9, 2025

    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

    17-Peridot
    November 10, 2025
    15-Moonstone
    November 14, 2025

    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