top of page

Hypermesh Batch Mode

Admin

Hypermesh can be used in batch mode. Here is an example of creating a surface in batch mode. It means withouth opening hypermesh, you can still use your tcl codes.


First step you should know *writefile and *readfile for opening and saving files.


Then write your code as usual and dont forget to save.


Batch mode is useful when graphical issues takes time. Instead of wasting time on looking at Hypermesh GUI, save time with batch mode.


# this line is going to be pasted on CMD in Windows.
# Find your hmbatch.exe location 
# -tcl indicates which code is going to be executed in batch mode.
# D:\SOFTWARES\ALTAIR\hwdesktop\hw\bin\win64\hmbatch.exe -tcl D:\batchmode.tcl
*writefile "D:/Batch/batch.hm"
*readfile "D:/Batch/batch.hm"
# codes for creating node and surface 
*createnode 0 0 0 0 0 0
*createnode 0 100 0 0 0 0
*createnode 100 100 0 0 0 0
*createnode 100 0 0 0 0 0
*surfacemode 4
*createlist nodes 1 1 4 3 2
*surfacesplineonnodesloop2 1 0
hm_answernext yes
*writefile "D:/Batch/batch.hm"
puts "Finished"

Recent Posts

See All

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