Skip to main content
8-Gravel
Sep 18, 2025 7:20 AM UTC
Solved

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
    Van_AG
    Van_AGAnswer
    15-Moonstone
    Oct 9, 2025 1:41 PM UTC

    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

    5 replies

    24-Ruby IV
    Sep 18, 2025 8:18 AM UTC

    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 

    Translate
    ZANET8-GravelAuthor
    8-Gravel
    Sep 18, 2025 8:50 AM UTC

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

    Translate
    Van_AG
    Van_AG15-MoonstoneAnswer
    15-Moonstone
    Oct 9, 2025 1:41 PM UTC

    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

    Translate
    17-Peridot
    Nov 10, 2025 6:29 PM UTC

    Hello, 

    Refer to article : https://www.ptc.com/en/support/article/cs299858

    Translate
    Van_AG
    15-Moonstone
    Nov 14, 2025 8:58 AM UTC

    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

    Translate