TCL Scripting
Hello everyone,
i am new to Tcl programming and worked little bit with command.tcl file to create simple scripts. But now I would like to create a script with the help of if loop. I wanted the script automatically create the solids with bounding surfaces option and if the solids already exist in the model then to return. Can someone help me with this?
I could only come out with this.
*createmark surfaces 1 'displayed'
*solids_create_from_surfaces 1 4 -1 2
Thank s and regards,
Punith
Find more posts tagged with
Sort by:
1 - 7 of
71
Below resources will help you get started with tcl/tk programming.
https://www.tutorialspoint.com/tcl-tk/
https://www.packtpub.com/networking-and-servers/tcltk-85-programming-cookbook
Hello Punith,
You can try the below,
*createmark surf 1 'displayed'
catch {*solids_create_from_surfaces 1 4 -1 2} status;
if {$status == 1} {
puts 'Solid Created Successfully';
} else {
puts 'Solid Creation Failed';
}
to create using loops, please give more information.