BUGS in HyperWorks TCL commands
I encountered a bug in hyperworks tcl command
Client Version Command Bug Information
Hypermesh 12 *findmark elems 1 1 1 elems 0 2 this command did not add elems of mark 1 to mark 2
Answers
-
it works for me... the findmark function will return the attached elements to the provided elements. If you need the original elems, append them to the mark.
set elemIds <list with given elems>
hm_createmark elements 1 $elemIds;
*findmark elements 1 1 1 elements 0 2;
hm_appendmark elems 2 $elemIds
set elemList [ hm_getmark elems 2 ];
puts $elemList;Remember that the list contains the HM elems ids, not the solver elems ids. To get the solver ids use:
hm_getsolverid2 elems $elemIds0 -
I encountered bugs in hyperworks tcl command
So you should care about these
Client Version Command Bug Information
Hypermesh 12 *findmark elems 1 1 1 elems 0 2 this command did not add elems of mark 1 to mark 2 regardless the specified option
Hypermesh 12 hm_getthickness comps $CompId If component name starts with '\' then this command return 0.0 regardless actual thickness
0