Jump to content
Sign in to follow this  
Alex.01

Export a local coordinate system

Recommended Posts

Hi,

 

I have a little problem with exporting local coordinate systems. I need them to postprocess welds but I don't use them in the analysis, so I must assign at least one node to the system that I have created. I do it by using this menu:

image.thumb.png.2eacc2714fe911f84d1ffde243355736.png

 

Once I have assigned the nodes to the system (with "set displacemente" button), I export the model and I get a piece of code from the exported file like this:

 

*TRANSFORM, TYPE=R, NSET=HM_auto_transform_14AA0
-4.463E-08, -0.9995139, 0.03117584,  -1.0      ,  1.4901E-08,  -9.537E-07
**HMORIENT ORIGIN  3.2       ,-1.324    ,-0.18998 

 

I was wondering if there is a way to export a local coordinate system with a NSET previously created in HyperMesh by using TCL. I know you can do this changing the button in HyperMesh (like I show in the image below), but when I try to do this with tcl commands, HM ignores it. Furthermore, in the command file this action is not recorded.

image.thumb.png.1de1681dd9a895d062319c60ab838007.png

 

I was trying with this:

 

set name [hm_getstring "Name=" "Please specify a name for the NSET."]

*createlistbypathpanel nodes 1 "Select nodes to create a weld"
set lista [hm_getlist nodes 1]
*clearlist nodes 1

*createentity sets name=$name ids={nodes $lista}

*createmark systems 1 "by collector id" [hm_info currentcollector systcol]
set sistema [hm_getmark systems 1]
*createmark sets 1 $name
*systemsetanalysis sets 1 $sistema

 

Can someone help me?

 

Share this post


Link to post
Share on other sites

Hi,

please modify your code (as red color) and try again:

 

set name [hm_getstring "Name=" "Please specify a name for the NSET."]

*createlistbypathpanel nodes 1 "Select nodes to create a weld"
set lista [hm_getlist nodes 1]
*clearlist nodes 1

*createentity sets name=$name ids="nodes $lista"

*createmark systems 1 "by collector id" [hm_info currentcollector systcol]
set sistema [hm_getmark systems 1];#this command may return more than 1 systemid to variable sistema, be careful!
*createmark sets 1 $name
*systemsetanalysis sets 1 $sistema

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.

Sign in to follow this  

×
×
  • Create New...