Hi everyone
 
I want to create some hundred Region objects, each with approximately two
hundred nodes on each, and I have identified two ways :
 
1) Create the Region objects with no nodes, and run a loop with "Alter
Object ... Add Node...."
    Very penalizing for CPU....
 
2) Put the nodes coordinates into a String in this form :
 
Dim coord as String*1024    ' for example
Dim obj as Object
 
coord = "(" + x1 + "," + y1 + ") " + "(" + x2 + "," + y2 + ") " + "(" + x3 +
"," + y3 + ") " + ........
 
' the statement below don't work............
Run Command "Create Object Region Into Variable " + obj + " " + nb_nodes + "
" + coord .......
 
Questions :
 
With the first method, how to increase the speed of the Alter Object
statements ?
 
With the second, how could I use variables into the Run Command statement ?
 
Thank you

Reply via email to