Is there a way to register when the user zooms, pans, orbits?

Is there a way to register when the user zooms, pans, orbits?

rita.aguiar
Advocate Advocate
461 Views
3 Replies
Message 1 of 4

Is there a way to register when the user zooms, pans, orbits?

rita.aguiar
Advocate
Advocate

I would like to register when the user of the Revit application zooms, pans or orbits around a drawing/model.

Or can I use the DocumentChanged Event to register only when the user has modified a drawing (i.e. editing), excluding zooming, paning or orbiting (i.e. visualizing)?

 

I am creating a Revit plugin in Visual Studio in C# to do so and before that, I have also been registering events such as when the user opens the aplication, using the ApplicationInitialized Event:

 

application.ControlledApplication.ApplicationInitialized += new EventHandler
     <Autodesk.Revit.DB.Events.ApplicationInitializedEventArgs>(application_Initialized);

(..)

 

Is there an event, or events, to register this kind of use of the application? For example, register which commands the user uses? Register when the user zooms, when the user creates a wall, when the user creates a new view, etc...

 

I had to do a similar plugin but for AutoCAD and CIVIL 3D and to do so I registered which commands the user was finishing.

 

 

 

Any help would be appretiated!

0 Likes
Accepted solutions (1)
462 Views
3 Replies
Replies (3)
Message 2 of 4

jeremytammik
Autodesk
Autodesk

If all else fails, you might check the entries in the journal file... undocumented, unsupported!

 



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

0 Likes
Message 3 of 4

rita.aguiar
Advocate
Advocate
Accepted solution

Thank you @jeremytammik.

Ideally it would be best to not use the journal file, it is very dense and confusing, and I need a clear registering of events because this is for data managment purposes and statistics of use of applications.

I have been testing DocumentChanged Event and it seems like it does what I wanted.

Altough it register when I annotate, wish is not necessarily a command to edit/modify a file, but rather can be just a tool to understand the drawing better.

0 Likes
Message 4 of 4

jeremytammik
Autodesk
Autodesk

Congratulation! If that does what you need, it is a much better solution!

 



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

0 Likes