Jump to content
ArjunArasan

Explicit Node Numbering, projection of node on varying surface

Recommended Posts

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? 

Share this post


Link to post
Share on other sites
Guest

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.

Share this post


Link to post
Share on other sites

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 

Share this post


Link to post
Share on other sites
8 hours ago, ArjunArasan 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]

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
You are posting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...