top of page

Obtain bar element thickness and width values

  • Admin
  • Mar 25, 2024
  • 1 min read
*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
List the files in the folder by using TCL

Here is a simple script to list all the files in a folder with or without file extension. set folder [tk_chooseDirectory -title "Select a folder"] if {$folder eq ""} { puts "No folder selected."

 
 
 
Solutions in Nastran

Here's a concise definition table for every solution type (SOL) in NASTRAN, focusing on commonly used ones. Each entry includes the SOL number, solution type, and a brief description. SOL Number Name

 
 
 

Comments

Rated 0 out of 5 stars.
No ratings yet

Add a rating

© 2023

 
bottom of page