How do I createmark on a highlighted surface within HyperWorks

Michael Siemens
Michael Siemens New Altair Community Member
edited April 16 in Community Q&A

Hi,

I am currently trying to make a script to selects surfaces by face.

Within this, I need to create a mark on the surfs I want "by face" to be used from, and want to do this from highlighting a surface within Hyperworks.

I had hoped there would be a way to do this by something like this:

*createmark surfs 1 "by selected"

*appendmark surfs 1 "by face"

However, the first line of code does not work/is not recognised. Would anyone have a workaround for this?

I find that right-clicking and going across to select to click by face can take a while sometimes, so wanted to register a key to do this for me using:

hm_registerkeyproc ..... 

Any help is much appreciated and thanks for your time,

Michael

 

Tagged:

Answers

  • Adriano_Koga
    Adriano_Koga
    Altair Employee
    edited April 16

    do you want your first command to be interactive?

    If yes, it would be:

     

    *createmarkpanel surfs 1 "select your base surfaces"

  • Michael Siemens
    Michael Siemens New Altair Community Member
    edited April 16

    do you want your first command to be interactive?

    If yes, it would be:

     

    *createmarkpanel surfs 1 "select your base surfaces"

    Not particularly. But even then I kind of want the surfaces to be highlighted so they can be visible to the user easily.

    Don't know how I would do this without creating new comps with different colours to do so.

    Just want it to work like the mouse button does when highlighting surfs upon clicking on them.

    Thanks anyways

     

  • Ben Buchanan
    Ben Buchanan
    Altair Employee
    edited April 16

    Not particularly. But even then I kind of want the surfaces to be highlighted so they can be visible to the user easily.

    Don't know how I would do this without creating new comps with different colours to do so.

    Just want it to work like the mouse button does when highlighting surfs upon clicking on them.

    Thanks anyways

     

    hm_highlightmark will highlight things once they are selected with createmark.

    https://2023.help.altair.com/2023/hwdesktop/hwd/topics/reference/hm/hm_highlightmark.htm