API to find surfaces through which a line passes

Altair Forum User
Altair Forum User
Altair Employee
edited October 2020 in Community Q&A

 Hi All..

 

           I have a line (which is basically an extended 'bolt axis line' and I have the bolt head center node). Is there any API to  find all the surface ids through which that line passes (to find the length of the bolt)?

 

Thanks,

Sudhanva Rao    

Answers

  • vipin_22401
    vipin_22401 Altair Community Member
    edited November 2018

    Hi

    Can you try with the intersect option in F8 panel?

    Select line and all surfaces from bolt component. You will get 2 nodes at both ends.

    Then measure distance between these nodes.

  • tinh
    tinh Altair Community Member
    edited November 2018

    Hi

    Can you try with the intersect option in F8 panel?

    Select line and all surfaces from bolt component. You will get 2 nodes at both ends.

    Then measure distance between these nodes.

    I also use that way to classify bolt/nut ^_^/emoticons/default_happy.png' srcset='/emoticons/happy@2x.png 2x' title='^_^' width='20' />

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited November 2018

    Hi

    Can you try with the intersect option in F8 panel?

    Select line and all surfaces from bolt component. You will get 2 nodes at both ends.

    Then measure distance between these nodes.

    Thanks Vipin...that washelpful..

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited November 2018

    I also use that way to classify bolt/nut ^_^/emoticons/default_happy.png' srcset='/emoticons/happy@2x.png 2x' title='^_^' width='20' />

    Thanks for your time Tinh:)/emoticons/default_smile.png' srcset='/emoticons/smile@2x.png 2x' title=':)' width='20' />