How to open dynamo file through Revit addin

How to open dynamo file through Revit addin

Anonymous
Not applicable
7,514 Views
6 Replies
Message 1 of 7

How to open dynamo file through Revit addin

Anonymous
Not applicable

Hi All,

Greetings

 

I have created one dynamo file by using nodes. now i want to open it by addin in current document and run it automatically, is it possible then

How to open the dynamo file using custom (revit) addin in revit?

 

Suggestions and Ideas are welcome

 

Thanks

Accepted solutions (1)
7,515 Views
6 Replies
Replies (6)
Message 2 of 7

IbrahimNaeem
Advocate
Advocate

If you can open dynamo via the API, you can't force dynamo to do internal dynamo actions like opening a file cause it doesn't offer a documentation for  subscription to its dll files so useless workflow. Why didn't you try to convert your dynamo file into fully implemented methods? other question, AFAIK Revit doesn't support two addins to be run in the same time, is this your intent to make dynamo run in the middle of the command ? 

 

Thanks, Ibrahim Naeem  

0 Likes
Message 3 of 7

Anonymous
Not applicable

hi ibrahim,

 

yes i was doing that thing only running two revit addins at the same time..well i got my mistake

 

Thanks

0 Likes
Message 4 of 7

IbrahimNaeem
Advocate
Advocate

@Anonymous But your Idea is great, I'm really thinking about it now. Dynamo gives great ways to visualize Computational design output and yes one may think of telling that script inside of dynamo to go on iteration process for design optimization. Would share an update if I reach something in this regard. 

 

Thanks, Ibrahim Naeem 

Message 5 of 7

adamwitthuhn1945
Explorer
Explorer

This tool called Dyno is doing it( tools.prorubim.com/en/dyno ) so it can be done, I would also like to be able to open and run multiple Dynamo files during one of my custom Add-ins to Revit, but I can't figure it out how to do it.  If anyone knows how to do this please help.  I have read through everything I could find on the Dynamo forums but most of the ones asking this question just ended up saying they were going to just use Dyno.  

Message 6 of 7

onBIM-Consulting
Enthusiast
Enthusiast

Hey, guys. In fact, Dyno Browser is an excellent solution for this. I just checked that unfortunately their page is out of service at the moment.

However I have the help documentation saved on my computer.

 

It's not that complicated to set it up to work inside Revit. Just follow the instructions in the documentation.

 

Attached is the Dyno help.

 

I hope I have helped.

 

If there is something specific that I can contribute you can put it here.

0 Likes
Message 7 of 7

jeremytammik
Autodesk
Autodesk
Accepted solution

@adamwitthuhn1945

 

Dear Adam,

 

The ability to programmatically run Dynamo scripts has been requested in the Revit Idea Station:

 

https://forums.autodesk.com/t5/revit-ideas/dynamo-script-run-buttons/idi-p/6331443

 

Happily, it has also been implemented, so you can use that right now.

 

Once you have a button to run the script in the Revit user interface, it should also be possible to launch the script programmatically.

 

If worst comes to worst, you can always simulate an end user click on the button.

 

I hope this helps.

 

Cheers,

 

Jeremy



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