Hi.
I have recently started using Dynamo and am very excited by this feature but have been developing in the Revit .NET environment for several years. I am trying to accomplish infrastructure tasks within Revit (similar to BIM 42 - Bridge Design) by reading rows from an Excel workbook, where each row will need to run a Dynamo script to produce the relevant infrastructure asset based on the contents of the cells within that row. In short, each Excel row needs to produce a separate Revit project document.
To my knowledge on Dynamo (limited at this stage), it appears that Dynamo sits within a project document and despite python API calls to using the reference “RevitServices”, this cannot use the “Document.Add” or “UIApplication.OpenAndActivateDocument” calls available with the .NET environment.
Can I create new documents from with Dynamo? Can I run Dynamo scripts using the .NET? Do you have any links that are also trying to achieve this?
Any help will be greatly appreciated, regards, Tom.
Subject: Regarding [CaseNo:12633500.] Dynamo - New Document
Date: 10:08, 6th Feb 2017
From: ADN Support customersupport@autodesk.com
Dear Tom,
Thank you for your query.
Congratulations on getting started with Dynamo. I am glad to hear you are so excited by it.
I am pretty sure that Dynamo is not tied to any specific document. It may have a predefined hook to provide direct access and interact more easily with the current document, but
Jeremy Tammik
it also has full access to the entire Revit .NET API and can thus also create new documents, just as you can from any other Revit .NET add-in.
Nope, I do not have any samples at hand that do this myself.
I would suggest that you discuss all Dynamo issues directly with the Dynamo experts in the Dynamo forum:
I hope this helps.
All Dynamo related queries should be directed there.
Furthermore, the preferred method nowadays to submit non-confidential ADN queries or requests on the standard (non-Dynamo) Revit API is via the Revit API discussion forum:
http://forums.autodesk.com/t5/revit-api/bd-p/160
Any thread that you submit there using your email address registered as an ADN member will be recognised as such and automatically escalated to us in the ADN team.
At the same time, you will address a larger audience, more of your peers will see it, be able to chip in and help, and more people will see and be able to profit from the answers we provide.
We therefore prioritise cases from the discussion forum.
Please submit all your non-confidential non-Dynamo Revit API queries via the Revit API discussion forum.
Thank you for your understanding and cooperation.
Best regards,
​​​​​​​Jeremy Tammik.
Developer Technical Services
http://adn.autodesk.com