🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

Selection of particular elements within a radii...

User: "SriGanesh Doshaim"
New Altair Community Member
Updated by SriGanesh Doshaim

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.

Find more posts tagged with

Sort by:
1 - 5 of 51
    User: "Altair Forum User"
    Altair Employee
    Updated by Altair Forum User

    hello Sri Ganesh,

     

    can you explain the problem more or exact situation, so that best possible solution can be obtained.

     

     

     

    thanks 

    Adams

    User: "SriGanesh Doshaim"
    New Altair Community Member
    OP
    Updated by SriGanesh Doshaim

    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

     

     

    <?xml version="1.0" encoding="UTF-8"?>post-31017-0-96417000-1423551050_thumb.j

    User: "Altair Forum User"
    Altair Employee
    Updated by Altair Forum User

    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

    User: "SriGanesh Doshaim"
    New Altair Community Member
    OP
    Updated by SriGanesh Doshaim

    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

    User: "Altair Forum User"
    Altair Employee
    Updated by Altair Forum User

    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 1

     

                                       set 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 1

     

                                       set 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 1

     

                                       set rad [lindex $rad 0];

     

                                       *createmark elems 1 'by sphere' $Cn1x $Cn1y $Cn1z $rad 'inside' 1 1 0.1

                                       set Selems [hm_getmark elems 1];

     

                                       *deletemark elements 1

                                       *clearmark elems 1

                                       *nodecleartempmark

     

     

    Regards

    Adams