Revit clears undo entries when undo is done through Revit API method.

cadsindiaadn
Enthusiast

Revit clears undo entries when undo is done through Revit API method.

cadsindiaadn
Enthusiast
Enthusiast

Hi,

The undo operation removes all Revit undo entries when the undo is done for user created update entry after the wall profile is edited.

Attached sample application and video demo to recreate the issue.

The sample application updates “Mark” parameter when a wall is added or modified. This will be shown as “My_Update” in Undo Stack. 

 

Undo of “My_Update” entry, the application will undo the previous entry through Revit API using the below method.

UIFrameworkServices.QuickAccessToolBarService.performMultipleUndoRedoOperations()

 

Revit works fine for Undo of “My_Update” entry when a wall is modified, but it removes all undo entries for undo of “My_Update” after the Edit wall profile command.

 

Kindly check the sample application.

0 Likes
Reply
355 Views
2 Replies
Replies (2)

moturi.magati.george
Autodesk
Autodesk

Hi @cadsindiaadn,

Unfortunately, this is not the best place to ask such a question.

 

Please note that this discussion forum is dedicated to programming Revit using the Revit API.

 

Therefore, you cannot expect an answer to a question such as yours relating to installation, product usage or end-user support issues here.

 

You should try one of the non-API Revit product support discussion forums instead for that:

https://forums.autodesk.com/t5/revit-api-forum/this-forum-is-for-revit-api-programming-questions-not...


The people there are much better equipped to answer your question than us.

  Moturi George,     Developer Advocacy and Support,  ADN Open
0 Likes

RPTHOMAS108
Mentor
Mentor

I don't recognise the below as being a Revit API call, so I assume it is something else and used in a way that is completely unsupported.

 

UIFrameworkServices.QuickAccessToolBarService.performMultipleUndoRedoOperations 

 

There is no method I know of to manipulate the Undo/Redo items directly via the API.

0 Likes