martinwcg
New member
- Jan 5, 2011
- 4
Hello everyone,
once again pcl is kicking my butt
.
I try to build a pcl-script and use global variables. In the main script I try to access a variable ("elsize_") in an if-statement:
Unfortunately this doesn't seem to work. Patran reports the error:
But, if I use the command to create the mesh seed on the specified curves outside the if-statement the whole thing works.
What is the problem there? What do I have to change? I don't thick pcl doesn't allow the usage of variable inside of if-statements.
Best regards
Martin
once again pcl is kicking my butt
I try to build a pcl-script and use global variables. In the main script I try to access a variable ("elsize_") in an if-statement:
Code:
GLOBAL REAL elsize_ = 20.0
GLOBAL LOGICAL test_ = TRUE
IF (test == true_) THEN
mesh_seed_create( "Curve 1000001:1000030", 2, 0, 0., `elsize_`, 0. )
$? YESFORALL 2001017
END IF
Unfortunately this doesn't seem to work. Patran reports the error:
Code:
mesh_seed_create( "Curve 1000001:1000030", 2, 0, 0., `elsize_`, 0. )
$# (PCL) Missing operand to expression
$# Line is "mesh_seed_create( "Curve 1000001:1000030", 2, 0, 0., `elsize_`,
$# 0. )"
$# Character is "`"
$# (PCL) Missing right parenthesis
$# Line is "mesh_seed_create( "Curve 1000001:1000030", 2, 0, 0., `elsize_`,
$# 0. )"
$# Extra information: mesh_seed_create
But, if I use the command to create the mesh seed on the specified curves outside the if-statement the whole thing works.
What is the problem there? What do I have to change? I don't thick pcl doesn't allow the usage of variable inside of if-statements.
Best regards
Martin