get node id of *createnodesbetweennodes

User: "Altair Forum User"
Altair Employee
Updated by Altair Forum User

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..

Find more posts tagged with

Sort by:
1 - 2 of 21
    User: "QuyNguyenDai"
    Altair Community Member
    Updated by QuyNguyenDai

    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'

     

    User: "Altair Forum User"
    Altair Employee
    OP
    Updated by Altair Forum User

    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' />