🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

How to mesh or cut surface by component name

User: "ve3D"
Altair Community Member
Updated by ve3D

 

Hello,

I would like looking for the code to be able to mesh according to the name of the component. For example when I do automatic mesh for the component named 'NIV1_D0700', I got the code in the command.tcl file as below:

*startnotehistorystate {Automesh elements}

*setedgedensitylinkwithaspectratio -1

*elementorder 1

*setusefeatures 3

*createmark elements 1 1-56 3845-3910

*defaultremeshelems 1 0.4 4 4 1 1 1 1 0 0 0 0 2 30

*setusefeatures 0

*endnotehistorystate {Automesh elements}

 

It gives the ID numbers (red color) and not the name of the component, so I can not copy the code. I would like a line of code as below for example:

*startnotehistorystate {Automesh elements}

…..

*createmark components 3 'NIV1_D0700'

…..

*endnotehistorystate {Automesh elements}

 

In the same way, when I want to cut a surface by two points 'F11', Hypermesh generates a command with ID (red color) but not with component name. If I have a component with several elements (several id), Can I call only the component to make the cut. I asked the question because every time I corrected the geometric model in another software and import it again, the id of all elements are changed, the codes are no longer valid.

 

*createnode 20.5 30.15 -13.78 0 19 120268

*createnode 20.5 29.25 -13.78 0 19 66021

*mergehistorystate '' ''

*surfacesplitwithcoords 19 20.5 30.15 -13.78 20.5 29.25 -13.78

*mergehistorystate '' ''

  

Someone can help me?

 

Thanks in advance,
Best regards,


 

 

 

Find more posts tagged with