Jump to content

Recommended Posts

Hi,

I am writing script in hypermesh tcl command to create 3D meshing. for these i not understand  what the numbers mention here (8,0).

it is working in HM_13   and not in 14

*solidmap_prepare_usrdataptr "SOURCE" 8 
*solid_prepare_entitylst elements 0 

 

Let me help to solve the issue.

 

Thanks,

C.Jude Antro

Share this post


Link to post
Share on other sites
Guest

Hi Jude,

For  *solidmap_prepare_usrdataptr "SOURCE" option is a flag that indicate different option for solid mapping. Based on nodes or lines or surface or elements selected for solid mapping this value is calculated.

 

bits.PNG

 

For *solid_prepare_entitylst 0 has to be kept and it is reserved for future use.

Share this post


Link to post
Share on other sites

Hi George,

Thanks for your reply,

 

I have one more clarification, i have to select the outer most element in a selected component how can we select it through TCL script.

I tried to get by element id but the number are not in order if i renumber also not work, how can i choose the outer element.

 

Thanks

C.Jude Antro

Share this post


Link to post
Share on other sites
28 minutes ago, Jude Antro said:

Hi George,

Thanks for your reply,

 

I have one more clarification, i have to select the outer most element in a selected component how can we select it through TCL script.

I tried to get by element id but the number are not in order if i renumber also not work, how can i choose the outer element.

 

You can't do that selection by elem ID.

Here's my method:

  • Select 3D elems => Extract 2D faces (new component ^faces)
  • Select 2D faces => elems => by adjacent => remove ^faces from selection => Got elems (see screenshot)

Selection_102.png.c512c9ca49cef19a90f4bcfa534f4fc8.png

Based on my method, you can write a TCL script for that.

 

 

Pandurang likes this

Share this post


Link to post
Share on other sites

@jude Antro

 

please try this:

 

*createmarkpanel comps 1 " Select the component "
*findfaces comps 1;

*createmark elems 1 "by comp name" ^faces;
eval *createmark elems 2 [hm_getmark elems 1]
*appendmark elems 1 "by adjacent"
*markdifference elems 1 elems 2

set outer_elems [hm_getmark elems 1]

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