Message 1 of 7
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Get the handle of current document. Autodesk.Revit.DB.Document document = application.ActiveUIDocument.Document;
I'm trying to get the name of the active document. I'm looking at the API developer's guide and at the bottom of the page at the following link, there is an example involving something similar.
Following is a snippet from that example. In my example, I'm not passing the application variable. The image shows a screenshot of what I see in VS2010 -- I don't see ActiveDocument as a child of UIApplication.
Don Ireland
Engineering Design Technician
If a reply solves your issue, please remember to click on "Accept as Solution". This will help other users looking to solve a similar issue. Thank you.
Please do not send a PM asking for assistance. That's what the forums are for. This allows everyone to benefit from the question asked and the answers given.
Solved! Go to Solution.