Node renumbering using commands

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

Dear all,

the following image is an example.

In the following image, i would like to re-number the node number 13 to 113.

I am able to do it using the manual options available under tools option.

But i would like to re-number using commands or tcl scripts.

 

image.png.87a4d7c1fdbca7ec32db91a0a09a0208.png

 

Thanks & Regards,

Prabhu p

Tagged:

Answers

  • Beta
    Beta New Altair Community Member
    edited April 2018

    hi,

     

    Try these commands : 

    *createmark nodes 1 'dispalyed'

    *renumbersolverid nodes 1 1000 1 0 0 0 0 0.

     

    These commands will renumber ids of all displayed nodes, start from 1000 and increase by 1.

     

    You can get more detail about commands in the Help file.

     

    One more thing, next time, if you want to know a command to do a thing in HM, you can follow this method:

    - Go to the working directory  (usually the Document folder), delete file name command.tcl.

    - Perform the action you wish to know its command in Tcl.

    - Go back to the working directory folder and open file named command.tcl

     

    The command you need will be written in this file.