How to edit card element - Automatic ( convert from Blank to OFFSET )
Hello everybody .
Please support for me !
For example, i have 5 components and set properties . I want to edit card element . Convert option from BLANK to OFFSET . Offset value = 1/2 thickness of component . Then show 2D detailed to check Thickness .
How to write a tool tcl to perform that operation ?
Answers
-
Hi,
Open command.tcl in your working folder (mostly Documents) delete all the commands, now do the above operation in Hypermesh, the tcl commands to do the same operations will be written in command.tcl. try running each line by line to understand what is going on, then add some more tcl commands and api to automate it.
0 -
*createmark prop 1 all;
foreach pid [hm_getmark prop 1] {*setvalue props id=$pid STATUS=2 1819 = 1
set offsetvalue [expr 0.5 * [hm_getvlue prop id = $pid dataname = thickness]];
*setvalue props id=$pid STATUS=2 1821 = $offsetvalue;}
*clearmark prop 1;0 -
Altair Forum User said:
*createmark prop 1 all;
foreach pid [hm_getmark prop 1] {*setvalue props id=$pid STATUS=2 1819 = 1
set offsetvalue [expr 0.5 * [hm_getvlue prop id = $pid dataname = thickness]];
*setvalue props id=$pid STATUS=2 1821 = $offsetvalue;}
*clearmark prop 1;This command is not working
0 -
don't just copy paste...
write it down
0 -
How please gives a brief explanation for this script and how to write down
0