CATIA V5 Conditional Statements
CATIA V5 Conditional Statements
(OP)
Hi,
I can't seem to figure out the syntax, or if this is even possible. I'm working in the Law Editor.
I would like to write a conditional statement that will change an angle in a part based on a string type parameter.
Ex. IF `valve` = closed, THEN angle = 90deg
Any help/examples/syntax pointers would be appreciated.
Thanks,
Jake
I can't seem to figure out the syntax, or if this is even possible. I'm working in the Law Editor.
I would like to write a conditional statement that will change an angle in a part based on a string type parameter.
Ex. IF `valve` = closed, THEN angle = 90deg
Any help/examples/syntax pointers would be appreciated.
Thanks,
Jake





RE: CATIA V5 Conditional Statements
if 'valve'=="closed"
{
angle=90deg
}
RE: CATIA V5 Conditional Statements
Thanks,
Jake
RE: CATIA V5 Conditional Statements
if 'valve'=="closed"
{
angle=90deg
}
else
{
angle=0deg
}
RE: CATIA V5 Conditional Statements
Anything else I should be doing?
RE: CATIA V5 Conditional Statements
RE: CATIA V5 Conditional Statements
RE: CATIA V5 Conditional Statements
create a simple sketch that you can link Angle to.
create rule
if Valve == "closed"
{
Angle=0deg
}
else
{
Angle=90deg
}
this will prove the concept