get node id of *createnodesbetweennodes

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

Hello everyone,

I want to create node in TCL, and then I use the  *createnodesbetweennodes command, but I can't get the node id of the node it's created, because the result is store in reject mark, I think,  but I can't access this mark.

I think the hypermesh's modify command is used in display.  And the query command is used to query info.  I don't know if it's correct.

Thank you for you any help so much..

Answers

  • Q.Nguyen-Dai
    Q.Nguyen-Dai Altair Community Member
    edited October 2016

    Try this TCL code:

     # Create one new node between Node 1 & Node 2 *createnodesbetweennodes 1 2 1 *createmarklast nodes 1 set nid [hm_getmark nodes 1] puts 'My new node ID is $nid'

     

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited October 2016

    O.K..It worked...

    Thank you so much...:D/emoticons/default_biggrin.png' srcset='/emoticons/biggrin@2x.png 2x' title=':D' width='20' />:D/emoticons/default_biggrin.png' srcset='/emoticons/biggrin@2x.png 2x' title=':D' width='20' />