Skip to main content
14-Alexandrite
October 20, 2023
Solved

Link 2 Parameter Property Lists

  • October 20, 2023
  • 2 replies
  • 1324 views

- Creo7 -

 

Hey, I have been stuck trying to create a parameter for this instance.

I have a UNITS parameter column with predefined parameter properties aka "values" list

I then have a PURCHASE parameter column which also has predefined parameter properties aka "values" list.

 

The only connection I want, is that when the UNITS value is set to "REF", I then want the PURCHASE column to display a "-" (aka dash)

 

Placing the following string is the closest I've got so far...

If UNITS="REF"

PURCHASE="-"

ENDIF

 

But this appears to just be a check and notifies me when they are off.

I just want to be able to use my value drop down on the UNITS or PURCHASE parameter freely with the exception that when I select "Ref" in the UNITS column, the PURCHASE column automatically switches to "-"

 

This seems achievable right?

 

If it helps, my UNIT values are just: EA,  REF,  PKG,  X and the PURCHASE VALUES ARE: N/A,   X,   -

 

Thanks in advance!

    Best answer by BenLoosli

    A single '=' sets the value on the right to the variable name on the left.

    A double "==" does a comparison or a check for the value of the variable on the left to see if it is equal to the value on the right.

     

     

    2 replies

    16-Pearl
    October 21, 2023

    You are in the wrong forum.

     

    PTC has two CAD systems:    Creo Parametric    and     Creo Elements Direct.

     

    Which makes it confusing.

     

    More, for Creo Elements Direct:

    - The 3D software name is Modeling, and

    - The 2D software name is Drafting.

     

    For Creo Parametric, use only this tab:

    KotomEng_0-1697862208736.png

     

     

     

    You should move your post to this community to have a better chance to get an answer.

     

     

    15-Moonstone
    October 23, 2023

    You need a double equal sign to make an if clause. Try:

     

    If UNITS=="REF"

    PURCHASE="-"

    ENDIF

    BenLoosli23-Emerald IIIAnswer
    23-Emerald III
    October 23, 2023

    A single '=' sets the value on the right to the variable name on the left.

    A double "==" does a comparison or a check for the value of the variable on the left to see if it is equal to the value on the right.