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.
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:
The people there are much better equipped to answer your question than us.
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.
Can't find what you're looking for? Ask the community or share your knowledge.