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

Logic in relations with parameters

phirschi
1-Visitor

Logic in relations with parameters

Dear community,

I would like to use the logic operations in the relation of a parts. But I have a failure message that I don't understand.

IF UNIT = G

error Logischer Ausdruck erwartet.

QUANTITY = MASSE

ELSE

QUANTITY = 1

ENDIF

Thanks in advance for you help.

Pascal

4 REPLIES 4

If you want to compare values, you'll need to use "double equal-sign"

IF UNIT == G

   QUANTITY = MASSE

ELSE

   QUANTITY = 1

ENDIF

Hi,

Thanks for you reply. The logical test now works but I still have a failure message.

The message is in German, but it means

"Relations contain running conditions and can't be sorted by"

Failuremessage.JPG

Thanks in advance for your help.

Pascal

That is as designed by PTC.

You can NOT use "Sort Relations" if there's an "IF THEN ELSE" statement in your relations.

You just have to be very carefull writing relations, making sure they are in the correct order.

BenLoosli
23-Emerald II
(To:phirschi)

MASSE will have to be a real value.

Announcements
NEW Creo+ Topics: Real-time Collaboration


Top Tags