launching Revit from visual studio

launching Revit from visual studio

Anonymous
Not applicable
2,012 Views
4 Replies
Message 1 of 5

launching Revit from visual studio

Anonymous
Not applicable

im trying to figure out the lunching problem... please help 

i just followed this below steps and i checked every addin location. however it's not working and they said 

"The program '[1764] Revit.exe' has exited with code 0 (0x0)."

plz help me ... 😞 

 In order to be able to debug using Visual Studio, we have to make some manual edits to the project files by implementing the following steps

  1. In the Solution Explorer window, right Click Lab1PlaceGroup and select Properties.
  2. In the Properties window, Go to Debug option and choose “Start external program”.
  3. Browse for “Revit.exe” file and normally the file will be present in this path(C:\Program Files\Autodesk\Revit 201x\Program\Revit.exe).

(Edit the filepath for Revit.exe if you’ve installed it in a non-default location).

0 Likes
2,013 Views
4 Replies
Replies (4)
Message 2 of 5

jeremytammik
Autodesk
Autodesk

Welcome to the Revit API!

 

I assume you are using Visual Studio Express?

 

You should say so. You should also tell us what version you are using.

 

I would suggest searching YouTube for "launching Revit from visual studio".

 

Several recordings exist, showing you how to achieve that.

 

You might also want to work through the Revit API getting started material before anything else:

 

http://thebuildingcoder.typepad.com/blog/about-the-author.html#2

 

Best regards,

 

Jeremy

 



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

0 Likes
Message 3 of 5

Anonymous
Not applicable

im using visula studio comunity 2017 // i tried reinstall and try again but till not wordking 

0 Likes
Message 4 of 5

naveen.kumar.t
Autodesk Support
Autodesk Support

Hi @Anonymous,

 

See whether the below link helps you

Advice on debugging C# in Visual Studio

 

I'm not sure but try the suggestion mentioned below

In Visual Studio enable the "Used Managed Compatibility Mode" option from Tools menu -> Options -> Debugging

 

 

 

 


Naveen Kumar T
Developer Technical Services
Autodesk Developer Network

0 Likes
Message 5 of 5

naveen.kumar.t
Autodesk Support
Autodesk Support

HI @Anonymous,

In Visual Studio enable the "Used Managed Compatibility Mode" option from Tools menu -> Options -> Debugging

Used Managed Compatiblity Mode.png

If my answer solves your problem then mark it as solution


Naveen Kumar T
Developer Technical Services
Autodesk Developer Network