undohistorystate
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
-
Maybe you have to call '*undohistorystate' several times?
0 -
I tried, undohistorystate only affected once. nothing happened in the next use.
0 -
Don't you provide a name for hist state?
0 -
I tried to provide name also, but thing happened the same.
0 -
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.
0 -
hi,
Thank you for the reply!
I also tried to give the count also. Got the same issue!
0 -
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
0 -
Version Hypermesh?
0 -
I use 14.2 version
0 -
/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
0 -
I see, Thank you for your information )
0 -
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
0