undohistorystate

Beta
Beta New Altair Community Member
edited October 2020 in Community Q&A

Hi ,

 

I am trying to run a code like this

 *startnotehistorystate {} *replacenodes 7000139 7000103 1 0 *replacenodes 7000140 7000104 1 0 *replacenodes 7000141 7000105 1 0 *replacenodes 7000142 7000106 1 0 *replacenodes 7000143 7000107 1 0 *replacenodes 7000144 7000108 1 0 *endnotehistorystate {}

I use command *undohistorystate to undo the process. However, there is only one node was undo. I would like to undo all six nodes has been replaced. Am I missing something.

 

 

Answers

  • Q.Nguyen-Dai
    Q.Nguyen-Dai Altair Community Member
    edited December 2017

    Maybe you have to call '*undohistorystate' several times?

  • Beta
    Beta New Altair Community Member
    edited December 2017

    I tried, undohistorystate only affected once. nothing happened in the next use.

  • tinh
    tinh Altair Community Member
    edited December 2017

    Don't you provide a name for hist state?

  • Beta
    Beta New Altair Community Member
    edited December 2017

    I tried to provide name also, but thing happened the same.

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited December 2017

    Hi Toan,

    For *undohistorystate  please give the count also, and based on this count it undoes one or more history states.

    That is if  three times you have used *replacenodes, then  *undohistorystate 3 which will undo the  3 history states at once. Please try with this.

  • Beta
    Beta New Altair Community Member
    edited December 2017

    hi,

     

    Thank you for the reply!

     

    I also tried to give the count also. Got the same issue!

     

  • Beta
    Beta New Altair Community Member
    edited December 2017

    For your information

     

    I also tried to distribute each  *replacenode command into separated notehistorystate  with different names and use *undohistorystate with count 6.  It did not work

  • Q.Nguyen-Dai
    Q.Nguyen-Dai Altair Community Member
    edited December 2017

    Version Hypermesh?

  • Beta
    Beta New Altair Community Member
    edited December 2017

    I use 14.2 version

  • tinh
    tinh Altair Community Member
    edited December 2017

    :D/emoticons/default_biggrin.png' srcset='/emoticons/biggrin@2x.png 2x' title=':D' width='20' />  It has been disabled with tcl scripts. Please check release notes of version 2017

    I don't know how to enable it, maybe v2017 will do that

     

  • Beta
    Beta New Altair Community Member
    edited December 2017

    I see, Thank you for your information  :))

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited December 2017

    Hi Toan,

     

    Undo/redo is not yet supported for Tcl even in HM 2017. Commands are available for future use, but they don't work.

     

    Regards,

    Oguchi