cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Provide a way not to clear the Undo/Redo stack when calling Creo Parametic TOOLKIT APIs.

Provide a way not to clear the Undo/Redo stack when calling Creo Parametic TOOLKIT APIs.

Currently, the Undo/Redo stack in the Creo Parametric session seems to be cleared when calling any Creo Parametric TOOLKIT functions and this specification causes inconvenience or even barrier for users of a Creo Parametric TOOLKIT application depending on the usage of TOOLKIT APIs.

There is a note in a Creo Parametric TOOLKIT User's Guide as below:

---

All Creo Parametric TOOLKIT calls running in either synchronous (DLL or multiprocess) mode or asynchronous mode always clear the Undo/Redo stack in the Creo Parametric session. The Creo Parametric user interface reflects this by making the Undo and Redo menu options unavailable.

---

In one of Creo Parametric applications using TOOLKIT APIs, we are creating a thread to capture model view matrix using ProViewMatixGet() at regular time intervals in order to synchronize model view with other CAD application. In such usage, users can not use undo/redo for any operations done in Creo Parametric due to this specification.

So we would like to submit an enhancement request to provide a way not to clear the Undo/Redo stack when calling Creo Parametric TOOLKIT APIs.

6 Comments
Dale_Rosema
22-Sapphire I

Yasuhiro Asano

You may want to vote on your own idea...  

EJ_YAS
3-Visitor

Thanks for your advice!

_Marc_
5-Regular Member

It's not possible to roll out customization that render the Undo and Redo menu options unavailable  by this  limitation.

Users will probably not vote on this idea, as they usually just not use a customization that will cause this undo/redo issue.

 

Therefore this idea needs way more attention and hopefully a fix, than it is suggested by the number of votes / comments.

 

The status after nearly 5 years is still "New Idea". Could somebody from PTC at least update or comment this idea?

 

See also: https://community.ptc.com/t5/Creo-General-View-Sketch/Make-UNDO-actually-undo-across-all-of-Creo/td-...

mfischer
17-Peridot
Status changed to: Under Consideration

Since the introduction of customization in Creo, any toolkit application when accessed will clear the U/R stack.  PTC continues to research the ability to minimize this limitation and are working with our development partners to review options.  One such option being evaluated, is to see if certain API's that are read-only be defined in a list of safe API's that will not clear the stack when accessed.  The challenge is dealing with those applications or APIs that create or modify geometry.  While we do not have a solution yet in place, PTC continues to push to consider a viable option to supporting this idea in a future release of Creo.

 

Regards,

Mark Fischer

Sr. Director, CAD Product Management 

_Marc_
5-Regular Member

Hi Mark, I'm glad to read from you that it's considered to improve the situation. It would be good to actually see improvements here.

 

What I do not understand is that not just the undo/redo stack is cleared when the event for the API listeners "OnAfterModelSave" or "OnAfterModelRetrieve" listeners are actually called, but the Undo and Redo menu options are made generally unavailable as soon as these listeners are registered.

 

Regards, Marc

sully7
13-Aquamarine

+1 for allowing API listeners to maintain the undo/redo stack if possible 🙂