Jump to content
Seçkin13

how to get thickness of elements as a list?

Recommended Posts

Hi all

 

I would like to get a list of thickness for selected elements.

 

I wrote these codes but it gives just one thickness as a result. 

 

Could you please help me ?

 

*createmark elements 1 179 79 150 279 35 ... 
set test [hm_getthickness elements 1]
foreach elements $test {
 puts "$test"
 
 }

Share this post


Link to post
Share on other sites

Hi,

 

Do you want to know the range of thickness in your model? If so, Visualize the model by thickness as shown in the image below.

by thickness.PNG

By doing so, you will get to see a range of thickness as shown below.

 

thicknesses.PNG

 

If you want to individually check element thickness, then click on F10 and pick an element.

 

Or, do you want to get a list of thickness in some csv format or in a notepad?

 

Share this post


Link to post
Share on other sites
On 1/1/2020 at 5:27 PM, Seçkin13 said:

Hi all

 

I would like to get a list of thickness for selected elements.

 

I wrote these codes but it gives just one thickness as a result. 

 

Could you please help me ?

 

*createmark elements 1 179 79 150 279 35 ... 
set test [hm_getthickness elements 1]
foreach elements $test {
 puts "$test"
 
 }

 

No thickness information within element dataname.

You have to look for the property of element.

 

Seçkin13 likes this

Share this post


Link to post
Share on other sites
11 hours ago, Livil Lyle said:

Hi Seckin,

 

You should use the api like this:

 

foreach n_elemID [list 179 79 150 279] {

       puts "$n_elemID  : [hm_getthickness elements $n_elemID]"

}

 

If element thickness was assigned via component, not directly by element, this command returns nothing. In this case you have to call "hm_getthickness component"

 

Livil Lyle likes this

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
You are posting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...