Renumbering in HyperMesh using TCL Script.

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

hi,

 

I want to renumber all the nodes,elements and Components with starting number ' i ', using tcl script.

 

This starting number ' i ' will change file to file. So now i want to give that ' i ' value as a Input

 

before running the macro.

 

Please help me if any Know this.

 

Regards

Sudhakar Donepudi.

Answers

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited December 2014

    Here is simple code to renumber all nodes/elements from 1 :


    *createmark elements 1 'all'
    *renumbersolverid elements 1 1 1 0 0 0 0 0
    hm_markclear elements 1

    *createmark nodes 1 'all'
    *renumbersolverid nodes 1 1 1 0 0 0 0 0
    hm_markclear nodes 1

    Have a look at '*renumbersolverid' help page and you can modify easily to fit your need.

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited September 2016

    Hi

    Can anybody help me out how to use if conditional statement over a complist

    like, I made a script for renumbering to all the components in an assembly file

    if I delete one comp from assembly it is showing error message

    I want the script to skip that comp while renumbering.