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

[procad] writing a Relation

jlippeth
1-Newbie

[procad] writing a Relation

Good Afternoon

I need to write a relation and having trouble finding the correct
nomenclature.



Project scope:

I am creating Spirolox Retaining Rings with quilt bodies to be used to
cut out the groove and c'bore features.

Now I could create a family table, but I want to use relations.



Relation description;

Shaft diameter = SD1

Groove dia = SD5

How would I write,

IF SD1 = 1.125 then SD5 = 1.082

IF SD1 = 1.250 then SD5 = 1.202

IF SD1 = 1.375 then SD5 = 1.323



Etc...



Hopefully I am clear in my request, Thanks





Jeff Lippeth
Engineering Group
NyproMold Chicago
P. 847-855-2226
F. 847-855-2303
- <">mailto:->
www.NyproMold.com ____________________________________________________________________________________________________...




This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.
3 REPLIES 3

IF SD1 == 1.125 /*make sure you get the double equal sign in the IF
lines.
SD5 = 1.082
ELSE
IF SD1 == 1.250
SD5 = 1.202
ELSE
IF SD1 == 1.375
SD5 = 1.323
ELSE
SD1 = 1.375 & SD5 = 1.323 /*this is so if some value other than one
of the three is entered that it gets a default value equal to one of the
three with the correct SD5 value also.
ENDIF
ENDIF
ENDIF

Hope that helps,

Brian S. Lynn
Technical Coordinator, Product Engineering

Thanks all with some good tips, Brian had the correct syntax with double
==

Here is what I came up with.

IF SD1 == 1.125 /Shaft diameter
SD5 = 1.082 /Groove Dia.

SD4 = .042 /Groove width
ELSE
IF SD1 == 1.250

SD5 = 1.202

SD5 = .048
ELSE
IF SD1 == 1.375
SD5 = 1.323

Sd4 = .048

ENDIF

ENDIF

ENDIF



Thanks again, Happy Friday to All!



Jeff Lippeth
Engineering Group
NyproMold Chicago
P. 847-855-2226
F. 847-855-2303
- <">mailto:->
www.NyproMold.com
www.NyproMold.com

Sorry my email had a typo,

ECN 080808 Rev-B

SD4 = .048 was SD5 = .048



Regards,



Jeff Lippeth
Engineering Group
NyproMold Chicago
P. 847-855-2226
F. 847-855-2303
- <">mailto:->
www.NyproMold.com
Announcements
Attention: Creo 7.0 Customers
Please consider upgrading
End of Life announcement here.