top of page

Obtain bar element thickness and width values

Admin
*createmarkpanel elems 1 "onyl select bar elements"
set barlist [hm_getmark elems 1]
foreach elemID $barlist {
set propID [hm_getvalue elems id=$elemID dataname=propertyid]
set beamsecID [hm_getvalue props id=$propID dataname=BeamSec]
set width [hm_getvalue beamsects id=$beamsecID dataname=beamsect_dim1]
set thickness [hm_getvalue beamsects id=$beamsecID dataname=beamsect_dim2]
puts "Element ID $elemID width=$width thickness=$thickness "
}
#Element ID 176 width=44 thickness=4
#Element ID 194 width=50 thickness=6

Recent Posts

See All

Comparison CROD, CBAR and CBEAM

CROD, CBAR and CBEAM are one of the most popular 1d elements in Nastran. Reflecting real behaviour of structural is crucial for FEM. So,...

Reading a csv file by using tcl

Reading a csv file procedure is similar to the other programming languages. # Open the CSV file in read mode set filePath...

Comments

Rated 0 out of 5 stars.
No ratings yet

Add a rating

© 2023

 
bottom of page