I want to automatically open the 3d view of my model

I want to automatically open the 3d view of my model

oguzkomcu
Enthusiast Enthusiast
269 Views
1 Reply
Message 1 of 2

I want to automatically open the 3d view of my model

oguzkomcu
Enthusiast
Enthusiast

I am very new to developing Revit Api. Thank you for helping me with many of my questions here.

I have a problem . I need to automatically open the 3d view of my model and have the export process done automatically. I thought I had solved this before, but I was wrong. Then it gave an error. I probably need to use these classes "ApplicationInitialized" , "DocumentOpened" but I don't understand how to use them. Can you help me ?

270 Views
1 Reply
Reply (1)
Message 2 of 2

jeremy_tammik
Alumni
Alumni

ApplicationInitialized notifies you that Revit has started up and completed initialisation:

  

https://www.revitapidocs.com/2022/f35ba9fc-0b6b-4284-60eb-91788761127c.htm

  

DocumentOpened is called when a new document is opened:

  

https://www.revitapidocs.com/2022/7e5bc7a1-0475-b2ec-0aec-c410015737fe.htm

  

Both require you to implement an event handler in which you can perform your task.

  

In fact, the entire Revit API is event-driven, and all Revit API access is performed within event handlers of various kinds..

  

I suggest that you search the Revit SDK, this forum, The Building coder and the Internet in general for samples on using them.

  

Good luck and have fun!

  

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
0 Likes