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

Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! X

Pro/Program

Rohan7
11-Garnet

Pro/Program

Hello! I have a query related to pro/program. If for example we have designated the thickness of plate as "thk" and we have a assembly which contains this plate. Now if we have to declare a conditional statement like "if (thk<=10)" is it possible to declare "if(thickness<=10)" instead of thk<=10. or should we declare thk=thickness before using it in conditionals? I am asking this because if complex assemblies are considered then it is difficult to remember all the dimensions.

2 REPLIES 2

Hi,

if you use ... if(thickness<=10) ... in Pro/PROGRAM, then Creo must know thickness item. It must be name of dimension or parameter.


Martin Hanák
BenLoosli
23-Emerald II
(To:Rohan7)

The system would not know that thk is thickness unless you declared it in a relation.

When you have many parts in an assembly, you also need to designate which part the variable is coming from. You could have multiple plates each having thk defined in them with different values.

 

Top Tags