Find more posts tagged with
Sort by:
1 - 9 of
91
Yeah it is .
*createmark comps 1 'all'
hm_getmark comps 1
This will produce the list of components present in the model right .
Here's my test to get ID list of all comps:
> ./cmd2.sh 21 22 23 24 31 32 33 34 35 36 37 38 3 4 1 2 5 39 42 44 46 47
File cmd2.sh:
#!/bin/bash HM='/opt/hw/2019.1/altair/scripts/hm' OPTS='-nocommand -nouserprofiledialog -batch -nobg' TCL='-tcl test2.tcl' export ALTAIR_LICENSE_PATH='6200@YOUR-LICENSE-SERVER' $HM $OPTS $TCL 2>/dev/null
FIle test2.tcl:
*templatefileset '/opt/hw/2019.1/altair/templates/feoutput/nastran/general' *readfile '/FULL/PATH/samcef_validation_hw2019.hm' *createmark comps 1 'all' set comp_list [hm_getmark comps 1] puts '$comp_list'
HTH,
Thank you @Q.Nguyen-Dai
Before talking about Linux 'terminal', can you do the same within command area of Hypermesh?