Auto Open Many Previous View When Open Project

Auto Open Many Previous View When Open Project

ngvanphong2012
Explorer Explorer
299 Views
5 Replies
Message 1 of 6

Auto Open Many Previous View When Open Project

ngvanphong2012
Explorer
Explorer

Hi,

I want auto open previous views when open project. Thanks

1.png

0 Likes
300 Views
5 Replies
Replies (5)
Message 2 of 6

Mohamed_Arshad
Advisor
Advisor

HI @ngvanphong2012 

 

    you need to open all views in the Open Project ?


Mohamed Arshad K
Software Developer (CAD & BIM)

0 Likes
Message 3 of 6

ngvanphong2012
Explorer
Explorer

I want Revit to automatically reopen views when closing the previous project. Thanks you.

0 Likes
Message 4 of 6

Mohamed_Arshad
Advisor
Advisor

While Closing the Project you need to reopen all the Views of the closing project, I'm right ?


Mohamed Arshad K
Software Developer (CAD & BIM)

0 Likes
Message 5 of 6

ngvanphong2012
Explorer
Explorer

That's right, I want to reopen the project views that were closed last time

0 Likes
Message 6 of 6

Mohamed_Arshad
Advisor
Advisor

HI @ngvanphong2012 

 

      Yeah Now I get Understand. There is no direct method for that, Below steps are work around steps

  1. First you need to implement two interfaces 
    1. DocumentClosing Event 
    2. DocumentOpening Event 
  2. DocumentClosing Event Implementation
    1. You need to filter all the opened view and save the view names in Extensible Storage within the document.
  3. DocumentOpening Event Implementation
    1. While opening the document you need to check any view names present in the Extensible Storage.
    2. If you get any view names then open the views once document is opened.

By using this two events you can able to do you task. Below i have gave you few links that help you to implement the Revit Events.

 

Event Implementation Link

https://help.autodesk.com/view/RVT/2024/ESP/?guid=Revit_API_Revit_API_Developers_Guide_Advanced_Topi... 

 

Hope this will Helps 🙂

 

 


Mohamed Arshad K
Software Developer (CAD & BIM)

0 Likes