Explicit Node Numbering, projection of node on varying surface
Dear all,
Hi,
I have the following queries:
1. I want to create temporary nodes using scripting as it's a repetitive task, but each time, the models differ, hence the node numbering is different, therefore how to create a code to identify the last node numbering so it could be assigned automatically and be used in the remaining program?
2. How to script a TCL code to project a duplicate node onto a varying curvature surface, with knowing only it's PartId (as it deforms on impact) and vector is also known?
3. How to close the Input Process manager internally?
Answers
-
Hi Arjun,
Please try with these workarounds:
1). Try with hm_latestentityid , which will return the ID of the last created entity.
2). Try with markprojecttosurface , which project entities to a surface.
Please refer the Help Menu on these where the input format is shown with examples.
3). Can you please elaborate more on this, as we can directly close the session from the menu.
0 -
Hi George,
Thanks for your advice, it did work out.
Also, how to specify the vector given 2 nodes, is it by interdependently passing x,y, and z components, or is there any pre defined function for that?
Thanks in advance,
Arjun
0 -
Altair Forum User said:
Hi George,
Thanks for your advice, it did work out.
Also, how to specify the vector given 2 nodes, is it by interdependently passing x,y, and z components, or is there any pre defined function for that?
Thanks in advance,
Arjun
There is no direct predefined function, but you can retrieve vector from Node1 -> Node2 by:
set Vector12 [lrange [hm_getdistance nodes $Node1 $Node2 0] 1 3]
0