Jump to content
Mubeen

Tcl command to get Surfaces names

Recommended Posts

Hi all,

I have imported geometry from a CATPart into HyperMesh and now I am trying to get the names of the surfaces in the model.

I am using following commands and till now have no success. (I can get the IDs of surfaces e.g. 1,2,3,4 ..)

*createmark surfs 1 all
set surfsList [hm_getmark surfs 1]
hm_getentityvalue surfs 2 name 1 -byid

The first two commands return results (hm_getmark returns the IDs of surfaces: 1,2,3,4,5). However the last command (hm_getentityvalue from Reference manual)  doesn't return anything at all, (not even any error). 

My goal is to get the names of the surfaces (via any Tcl command). I will be very thankful for any help.

 

Best regards,

Mubeen

Share this post


Link to post
Share on other sites

Yes surface is not a named hypermesh entity.

If you tagged the surf in catia. Maybe the tag will be imported into hm as metadata. Try searching it by:

set md [hm_metadata findall]

puts [join [lsearch -all -inline -glob $md "surfs $surfID *"] \n]

GTree, Dzh_lin and Mubeen like this

Share this post


Link to post
Share on other sites
On 5/23/2017 at 6:04 PM, tinh said:

Yes surface is not a named hypermesh entity.

If you tagged the surf in catia. Maybe the tag will be imported into hm as metadata. Try searching it by:

set md [hm_metadata findall]

puts [join [lsearch -all -inline -glob $md "surfs $surfID *"] \n]

 

Thanks tinh, it works.

The surfaces which are tagged in CATIA can now be recognized in HyperMesh.

tinh likes this

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...