top of page
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." return } # Get file list set files [glob -nocomplain -directory $folder *] # FILES WITH EXTENSION foreach f $files { if {[file isfile $f]} { puts [file tail $f] } } # FILES WITHOUT EXTENSION foreach f $files { if {[file isfile $f]} { set name [file
Admin
6 days ago1 min read


Gui for node generation in Hypermesh
Creating nodes in FEA doesn’t have to be complicated. A simple script can generate nodes with IDs and X, Y, Z coordinates automatically. You can even renumber them to keep the model organized. Using commands like createnode and renumbersolverid, engineers can quickly set up nodes for any structure without manual entry. This saves time and avoids mistakes. Even a short, clean script makes preparing a model much easier and faster. Here is an clean example for Hypermesh. proc Cr
Admin
Nov 252 min read
bottom of page