How do I get my dynamo code into visual studio?

Hi.

I currently have a dynamo project with a useful macro that I use in Revit, however, I can only run this if I have dynamo and Revit open at the same time.

I would like to add this macro onto my ribbon tab within Revit but cannot do this while the macro is built in dynamo.

Is there a way I can either:

  • Export the macro I have made inside dynamo into a .dll?
  • Open it up in visual studio and build the code in there?
  • View the code in dynamo?
Many thanks,

Dan