Command Usage

Akshay Manthekar
Akshay Manthekar Altair Community Member
edited May 2022 in Community Q&A

Hi Guys,

I am not able to understand the meaning of command 

*mergehistorystate "" ""

in TCL/TK. I searched on the internet but still I didn't understand why it is used for. I found this command in command.tcl file on hypermesh when I was splitting the surface by nodes. If anyone knows about it, please help me with this.

Your help is much appreciated.

Thanks and regards.

Answers

  • Ben Buchanan
    Ben Buchanan
    Altair Employee
    edited May 2022

    I am not sure exactly what it does but the "history state" is part of the undo/redo functionality.  In my command.tcl file it always came after a *endnotehistorystate which is always accompanied by a *startnotehistorystate that are just basically saying this is an undo "block" or undo everything in here when an undo is preformed.

    If you are trying to write a script these commands need not be included.  If you are trying to make undo work with your script then you will need them but that is a whole other can of worms.

    By the way there is a "HyperWorks Scripts & Customizations" topic that you can add (you can have multiple topics) that might reach more coders for questions like this.