How to create a TCL script for Isolating Element based on Element type in Hypermesh?
Hello,
I am new to TCL scripting. In HM workspace, the model is having different element types such as S3, S4, C3D4,C3D6,C3D10M and so on.
I have planned to created script to isolate element based on element type (ex. C3D10M) as a practice session. But having no idea how to proceed further. Can someone help me
Regards,
SRV
Best Answer
-
Hi Saravanan,
To isolate C3D4 elements in your model, you can try these 3 lines of scripts:
hm_createmark elems 1 "equal to value" "typename C3D4"
*createstringarray 2 "elements_on" "geometry_on"
*isolateonlyentitybymark 1 1 2To isolate other type of elements, just replace the C3D4 in line 1 with the type desired.Regards,Shaoyan1
Answers
-
Hi Saravanan,
To isolate C3D4 elements in your model, you can try these 3 lines of scripts:
hm_createmark elems 1 "equal to value" "typename C3D4"
*createstringarray 2 "elements_on" "geometry_on"
*isolateonlyentitybymark 1 1 2To isolate other type of elements, just replace the C3D4 in line 1 with the type desired.Regards,Shaoyan1 -
Thank you so much
0 -
Saravanan R_22056 said:
Thank you so much
Welcome : )
0 -
Shaoyan Zhang said:
Hi Saravanan,
To isolate C3D4 elements in your model, you can try these 3 lines of scripts:
hm_createmark elems 1 "equal to value" "typename C3D4"
*createstringarray 2 "elements_on" "geometry_on"
*isolateonlyentitybymark 1 1 2To isolate other type of elements, just replace the C3D4 in line 1 with the type desired.Regards,ShaoyanAlso, is there any way to isolate different element type with above script?
0 -
Saravanan R_22056 said:
Also, is there any way to isolate different element type with above script?
I mean, for example S3 and S4 element need to isolate at a time.
0