Command to activate mesh button in Hyperworks X 2023.1

Ajay Prabhakaran
Ajay Prabhakaran Altair Community Member
edited September 4 in Community Q&A

In Classic Hypermesh, we used to activate buttons using hm_pushpanel. For example to activate mesh button, we use the command "hm_pushpanel {automesh}". Similarly, how to activate mesh button in Hyperworks X version?

I am aware that hyperworks X version does not comes with Push Panel, but i am seeking help to find the command to activate the mesh button.

Answers

  • Michal Stefuca_21473
    Michal Stefuca_21473
    Altair Employee
    edited August 30

    Hi Ajay,

    You can enter the meshing context using the command below:

    ctx::manager enter 2DMCSGeneral

    Thanks,

    Michal Stefuca
    Automation & Customization

  • Ajay Prabhakaran
    Ajay Prabhakaran Altair Community Member
    edited September 2

    Hi Ajay,

    You can enter the meshing context using the command below:

    ctx::manager enter 2DMCSGeneral

    Thanks,

    Michal Stefuca
    Automation & Customization

    Thanks Michal , it works for me. One more question, after activating how we can add a surface id to the selection. In the classic version, we can use *createmark surf 1 "${id}" to add the surface to selection. Here its not working. Surface selection remains null after using the api "*createmark" as you see in the image.

    image

  • Michal Stefuca_21473
    Michal Stefuca_21473
    Altair Employee
    edited September 3

    Thanks Michal , it works for me. One more question, after activating how we can add a surface id to the selection. In the classic version, we can use *createmark surf 1 "${id}" to add the surface to selection. Here its not working. Surface selection remains null after using the api "*createmark" as you see in the image.

    image

    Hi Ajay,

    You can control/interact with the context selector via ctx::selection (altair.com) and use the same options as in *createmark. In the example below I used displayed and by supplying a list of IDs.

    image

    Thanks,

    Michal Stefuca
    Automation & Customization

  • Ajay Prabhakaran
    Ajay Prabhakaran Altair Community Member
    edited September 4

    Hi Ajay,

    You can control/interact with the context selector via ctx::selection (altair.com) and use the same options as in *createmark. In the example below I used displayed and by supplying a list of IDs.

    image

    Thanks,

    Michal Stefuca
    Automation & Customization

    Thanks Michal, it works.