setup to use visual studio instead of sharpdevelop

setup to use visual studio instead of sharpdevelop

Anonymous
Not applicable
1,360 Views
2 Replies
Message 1 of 3

setup to use visual studio instead of sharpdevelop

Anonymous
Not applicable

REVIT 2017, Windows 10

Where do I change the Macro user interface setting to use Visual Studio instead of SharpDevelop?

Thx,

Kevin.

 

0 Likes
Accepted solutions (1)
1,361 Views
2 Replies
Replies (2)
Message 2 of 3

stever66
Advisor
Advisor
Accepted solution

There isn't any way to do this. 

 

You can use the Sharp Develop inside revit to write macros.  But if you want to use visual studio, you have to run it separately from revit.  

 

With VS, you compile your code to a .dll file, and load it into revit with a .addin manifest file.  There is also a way to have VS automatically start Revit for debugging.

 

For more details, refer to the "My first plugin" (see one of the messages pined to the top of this forum), and download the Software developers kit (SDK) and look at the Getting Started document.

 

Steve

0 Likes
Message 3 of 3

JimJia
Alumni
Alumni
Dear Kevin Barnett,

Yes, Revit macro doesn't support Visual studio to debug, though you may open, modify, compile the macro project with Visual Studio, it's not supported officially for any problem.

If you have to use Visual Studio, you can move the macro project to separated addin project and then use Visual Studio to compile, you can follow this page then:
http://usa.autodesk.com/adsk/servlet/index?siteID=123112&id=16777469

Jim Jia
Autodesk Forge Evangelist
https://forge.autodesk.com
Developer Technical Services
Autodesk Developer Network
Email: Jim.Jia@autodesk.com
0 Likes