Cannot select elements after renumbering

pohan
pohan Altair Community Member
edited November 2020 in Community Q&A

Hi

I have a model with 48000 elements. I renumbered some specials elements starting from 49000. In Hyper Mesh when I checked the number it was ok

But when I used my code to create a set of elements attached to element no 49000

 set setname select set elempick 49000 *createmark elems 1 $elempick *appendmark elems 1 'by attached' *entitysetcreate '$setname' elems 1

Hyper Mesh said the element was not selected.

Could you please explain me the problem?

Thanks

 

Answers

  • tinh
    tinh Altair Community Member
    edited August 2020

    Hi

    Elements in hypermesh have internal (hypermesh) id and solver id

    Solver id depends on user profile (solver)

    Internal id depends on how and when element is created

    If you renumber elements by panel 'renumber'=> you changed solver id

    But *createmark elems 1 49000 => indicates that select an element with internal id 49000 (which may not be existing)

    Pls check reference help if *createmark has any option to select 'by solver id'

  • pohan
    pohan Altair Community Member
    edited August 2020

    Thank you tinh

    I could not find 'by solver id'

    I think I should use *renumber first.

    I have one question: As as I know, in HM we have to select a command in tool panel first then select the elements. For example, Tool --> delete then select elements.

    Can we can select elements in HM before ?

  • Adriano A. Koga
    Adriano A. Koga
    Altair Employee
    edited August 2020

    Actually you always select the entities first and then execute the command.

    You go to the panel before selecting, but entering the panel doesn't mean you're performing the action.

     

    So though tcl also, first create a mark and then call the *commands

     

  • pohan
    pohan Altair Community Member
    edited August 2020

    Actually you always select the entities first and then execute the command.

    You go to the panel before selecting, but entering the panel doesn't mean you're performing the action.

     

    So though tcl also, first create a mark and then call the *commands

     

    Hi

    I just want to pick some special elems first. Then I use tlc for the commands.

    If I use *createmark in tcl first, it is not easy to pick these elems.

  • tinh
    tinh Altair Community Member
    edited August 2020

    Hi

    I just want to pick some special elems first. Then I use tlc for the commands.

    If I use *createmark in tcl first, it is not easy to pick these elems.

     

    Use *createmarkpanel elems 1 'to pick some elems before running tcl'

  • Hypermesh User
    Hypermesh User Altair Community Member
    edited November 2020

    Hi Pohan,

       You can recheck by changing the *user profiles