Area of selected elements with length and width

Seçkin13
Seçkin13 Altair Community Member
edited October 2020 in Community Q&A

Hi all

 

I would like to ask how get an area of selected elements.I wrote an tcl to select the area as an example shown in figure below.

 

I want to get the x and y values. Is it possible to get the values?

 

2020-08-12_19h27_06.png.8a3f1cd215500204e6dfe0b402ccf6c8.png

Tagged:

Answers

  • Q.Nguyen-Dai
    Q.Nguyen-Dai Altair Community Member
    edited August 2020

    Try this code:

     *createmarkpanel  elems 1 'Select Elem' foreach { x_min y_min z_min x_max y_max z_max } [hm_getboundingbox elems 1 0 0 0] {} puts 'X= ( $x_min , $x_max )' puts 'Y= ( $y_min , $y_max )' puts 'Z= ( $z_min , $z_max )'

     

  • Seçkin13
    Seçkin13 Altair Community Member
    edited August 2020

    Thanks Nguyen it works well. :)/emoticons/default_smile.png' srcset='/emoticons/smile@2x.png 2x' title=':)' width='20' />