Method to create a set of lines,surfaces or points
Answers
-
I don't think there are such type of set. If you work from Tcl script, you can keep your lines, surfaces, points ID in LIST variable.
Here's an example:
set myLines [list 1 2 3] set myPoints [list 10 11 12] set mySurfaces [list 30 31 32] # Mesure shortest distance from surface 30 to set of lines *createmark surfs 1 [lindex $mySurfaces 0] *createmark lines 1 $myLines hm_measureshortestdistance surfs 1 0 lines 1 0 5
0 -
The below script is crashing hypermesh.
set elem_size 0.25
set count 2
#create sets of lines-- each sets is for each solid map
for {set a 1} {$a<$count+1} {incr a} {
*createmarkpanel lines 1 'Select lines'
set lines$a [hm_getmark lines 1]
*clearmark lines 1
}for { set a 1} {$a < $count+1} {incr a} {
*createmark elems 1 'by sets' 'set$a'
set source_elems [hm_getmark elems 1]
set along_line lines$a*solidmap_begin 0
*solidmap_prepare_usrdataptr 'SOURCE' 24
*createmark elements 1 $source_elems
*solid_prepare_entitylst elements 0
*solidmap_prepare_usrdataptr 'DEST' 0
*solidmap_prepare_usrdataptr 'ALONG' 2
*createmark lines 1 $along_line
*solid_prepare_entitylst lines 0
*solidmap_end 8322 $elem_size 0 0}
I was trying to loop the line drag for 3D modelling. The panel is displayed below.
/uploads/monthly_2020_08/image.png.794b208bbf326266337619236aed9a28.png' />
The varying inputs are elems to drag and along geom.
Would you check the above script and give some suggestions.
Thanks
0 -
I can not see the error message?
0