Professional Documents
Culture Documents
Loops:
Conditions:
if if {[condition]} {
elseif [body]
else } elseif {[condition]} {
[body]
} else {
[body]
}
switch switch $str {
"1" {set blk "WST-"}
"2" {set blk "MG-"}
"3" {set blk "LG-"}
"4" {set blk "HG-"}
}
SCL: Surpac Command Language
GuidoPanel spnl {
-border etched true
-layout CentreLineLayout
###############################################################
###############################################################
}
}
}
SclCreateGuidoForm form $Form {}
$form SclRun { }
if { "$_status" != "apply" } {
return
}
Corner to corner set prompt "Create a rectangle using the mouse to click and drag"
set status [SclDragRectCornerCorner $prompt x1 y1 z1 x2 y2 z2]
puts "status=$status, corner position 1 x, y, z= $x1 $y1 $z1, corner position 2 x, y,
\
z=$x2 $y2 $z2"
Digitize point SclDigitise "Setup Point" X1 Y1 Z1 "X"