*positionmark use in a tcl macro

Altair Forum User
Altair Forum User
Altair Employee
edited October 2020 in Community Q&A

I need to use *positionmark in a for loop of a macro, I have the x, y, and z coordinates of all 6 nodes that are required for *positionmark command.

How to execute *positionmark command in this case.

 

 

Thank You

 

Regards

Malli

 

Answers

  • tinh
    tinh Altair Community Member
    edited July 2014

    Hi Malli

    there is manual about this command

    http://www.altairhyperworks.com/hwhelp/Altair/hw12.0/help/hwdref/hwdref.aspx?hypermesh_reference_guide.htm

    turn to 'index' tab and type in '*positionmark'

     

    node ids are used instead of their coordinates

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited July 2014

    Thank for the reply.

    How to get the nodes id if I know the coordinates of that node.

     

    in other words....

     

    Here I may have to create temp nodes with the coordinates that I have with me. After creating temp nodes, I am not aware how to get the ids of that nodes to execute *positionmark command.

     

    Thank You

     

    Regards

    Malli

  • tinh
    tinh Altair Community Member
    edited July 2014

    Hi

    to get id of node that just created, you can use

    hm_getlatestentityid nodes