Hey gang. Normally I would post this in the Revit Tips and trick, but it relates more to API so I think it's appropriate to place today's TotD here. You can see the Tip in it's entirety at http://revittotd.com/07/432 . Enjoy! Yes, I have begun my venture into the world of Revit API programming, so you'll probably start to see a few TotDs that deal with working with the Revit API. Today's is one for those of you that are cheap (or unemployed like myself) and want to use the free Visual Studio Express edition as your code authoring environment but still want to do live debugging. The issue here is that Miscrosoft lovingly excluded the StartAction option in the debugging properties for your project. Well, fortunately, they also made it possible to include a StartAction for those of us that know a little something about Google searches and XML Including Revit as a Debug Application for debugging in Visual Studio Express: - Notice that there is no StartAction option in the debugging tab in Visual Studio Express.
- Close Visual Studio Express
- Open the .csproj.user (or vbproj.user) file in Notepad.
- Add the lines (shown below) needed so that your final file looks like this: (see tip in link, this editor doesn't like the scripting format)
- Save the user settings file, reopen your project and debug. Revit should now open for debugging!
I know, I kinda blind sided you guys with this one. But it is pertinent to Revit, maybe just not to you! Thanks again for stopping by, have a great day and I will see you next time for another Revit TotD! -Carl
Edited on: Tue, Jul 7, 2009 at 11:30:08 PM
-----------------------------------
-//------------------------
Carl - rkitecsure[at]gmail.com
Need help? I'm probably in my chat room!
You fell victim to one of the classic blunders. The most famous is never get involved in a land war in asia, but only slightly less well known is this! Never go in against a Sicilian when death is on the line! |