Selection of particular elements within a radii...
Hi,
How to select the shell elements within a particular radii using a center point?.. (On a planer)
As i am trying to automate the process of deleting the shell elements within a Radii using center point..
Please provide me the API's and procedures...
Kindly help...
Regards,
SriGanesh.
Answers
-
hello Sri Ganesh,
can you explain the problem more or exact situation, so that best possible solution can be obtained.
thanks
Adams
0 -
Hi Adams,
Here is the situation...
The elements which i have is Quad elements and kind of match mesh...
I have attached a snapshot that shows a particular elements being selected manually within a diamteric...
i want to select the elements of within a diameter to delete and use it further...
Please refer the attachment...
Regards,
SriGanesh
0 -
Hi Sri Ganesh,
If you try to select some element to delete etc...you can use Shift button+Right mouse button.If you select these,there are some choices .I think 'inside of circle' option will provide this to you.
Hope it helps,regards.
NSKRTLS
0 -
Hi,
I figured it out by *createmark 'by sphere'... It has deleted exactly the elements which is present within given radii...
Let me know weather it works in all cases....
*createmark elements 1 'by sphere' $lBaseX $lBaseY $lBaseZ $lRadii inside 1 0 0;
Thanks,
Sri
0 -
Hello Sri Ganesh,
cooked something: just check it & let me know if its working with all of your cases.
if you want to work all the time with 2D (same plane) then it will work with all the cases.
#Code
*createlistpanel nodes 1 'Select only three nodes of outer area'
set arnod [hm_getlist node 1];*clearmark nodes 1set n1 [hm_getentityvalue nodes [lindex $arnod 0] 'id' 0];set n2 [hm_getentityvalue nodes [lindex $arnod 1] 'id' 0];set n3 [hm_getentityvalue nodes [lindex $arnod 2] 'id' 0];eval *createmark nodes 1 $n1 $n2 $n3*createbestcirclecenternode nodes 1 0 1 0*clearmark nodes 1set Cn1 [hm_getmark nodes [*createmark nodes 1 -1]];set Cn1x [hm_getentityvalue nodes $Cn1 'globalx' 0]set Cn1y [hm_getentityvalue nodes $Cn1 'globaly' 0]set Cn1z [hm_getentityvalue nodes $Cn1 'globalz' 0]set rad [hm_getdistance nodes $Cn1 $n1 0]*clearmark nodes 1set rad [lindex $rad 0];*createmark elems 1 'by sphere' $Cn1x $Cn1y $Cn1z $rad 'inside' 1 1 0.1set Selems [hm_getmark elems 1];*deletemark elements 1*clearmark elems 1*nodecleartempmarkRegardsAdams
0