Revit API Forum
Welcome to Autodesk’s Revit API Forums. Share your knowledge, ask questions, and explore popular Revit API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

2 REPLIES 2
Reply
Message 1 of 3
cadsindiaadn
282 Views, 2 Replies

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

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.

Tags (1)
2 REPLIES 2
Message 2 of 3

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
Message 3 of 3
RPTHOMAS108
in reply to: cadsindiaadn

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.

Post to forums  

Rail Community


Autodesk Design & Make Report