Grasshopper

algorithmic modeling for Rhino

Is there any way to use the new rhinocommon namespace with visual studio? I can use the old opennurbs namespace but that doesn't work with Grasshopper anymore. 

I want to debug scrips before using them as components in grasshopper. I've recently made a recursive thing in grasshopper and it was pretty hit and miss without the debugger. A lot of syntax errors and wasted time debugging the thing (at the end of the day I got it to work but to what cost...)

Can one use Visual Studio as the primary editor to debug the script( call stack, watch, breakpoint etc) just to analyze the data without caring about the final geometry and after that paste it into grasshopper? (where's the rhinocommon dll? is it only available with rhino 5?)

Views: 1096

Replies to This Discussion

Hi Liviu,

yes, you can. You need to reference RhinoCommon.dll instead of RhinoDotNET.dll. RhinoCommon.dll is available in Rhino 5 or in the Grasshopper installation folder.

- Giulio
______________

giulio@mcneel.com
McNeel Europe, Barcelona

Ok, I have RhinoCommon referenced in my project in VS, but, how to debug?

 

I'm compilling using NET.Framework 3.5 and VS2010.

 

If I use like debug target Rhino4.exe I have no reports in VS...I've read something about use NET 2.0 to compile for Rhino4.

 

Best Regards.

Hi again Angel,

yes, with Visual Studio 2010 you can only debug in Rhino 5 (.Net Framework 4.0).

- Giulio
______________

giulio@mcneel.com
McNeel Europe, Barcelona

Thanks man! Downloading vs2008.

Everything's ok. Be carefull if someone try to install VS2008 if you have installed MS Office 2007. You must uninstall office first. (Using Windows 7 x64)

 

Best Regards.

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service