Hello everyone, I'm Matthieu and I'm new here.
I'm currently using Hypermesh to mesh a lot of CATParts with one or more modified parameters. With Catia i built a CATVBA to iterate the parameter, and export it.
I would like to do the same with hypermesh, using volume tetra command: import, mesh, save, delete.
The file I built is attached. But I can't get it to work. It always says "::tcl_puts ?-nonnewline? ?channel1Id? string"
If I don't use the closed brace at the first line for the for loop it does exactly what I whant for the first file, i.e i=1. All my Catparts are properly arranged.
Thanks for any help&time. I also put my TCL code down there in case some don't want do download file.
Matthieu
for {set i 1} {$i < 10} {incr i} {
puts
*createmark collections 1
*clearmark collections 1
*createmark collections 2
*clearmark collections 2
*createmark controllers 1
*clearmark controllers 1
*loaddefaultattributevaluesfromxml
*start_batch_import 3
*setgeomrefinelevel 1
*geomimport "auto_detect" "G:/Matthieu/file8.CATPart" "CleanupTol=-0.01" "CreationType=Parts" "DoNotMergeEdges=off" "ImportBlanked=off" "SplitComponents=Part" "TargetUnits=CAD units"
*end_batch_import
*drawlistresetstyle
*createstringarray 3 "pars: post_cln tet_clps='0.100000,0.300000,0.500000,1.000000,0.505000,0.100000'" \
"tet: 99 1.3 -1 0 0.8 0" "2d: 1 0 1 0.01 0.0005 30 1"
*createmark solids 1 1
*tetmesh solids 1 0 elements 0 -1 1 3
*writefile "G:/Matthieu/LOOPé$i.hm" 1
*startnotehistorystate {Deleted Component "auto001"}
*createmark components 1
*clearmark components 1
*createmark components 1 "auto001"
*deletemark components 1
*endnotehistorystate {Deleted Component "auto001"}
*startnotehistorystate {Deleted Component "Part1"}
*createmark components 1
*clearmark components 1
*createmark components 1 "Part1"
*deletemark components 1
*endnotehistorystate {Deleted Component "Part1"}}