algorithmic modeling for Rhino
So for the ghPython component, there is a "code" input that I can write python code in external editors and sync the code file with a "file" component into ghPython.
It has much better experience with auto-completion and debugging (need some setup).
Is it possible to do similar things for C# component?
It seems the only way is to copy/past code from VS.
Is there a way to sync a piece of code into the component or just to use external editor?
Tags:
No.
Is there a plan to add this kind of function?
Sort of, currently the functionality of the scripts is sprinkled both throughout Grasshopper.dll and ScriptComponents.gha, making it very difficult to use from elsewhere.
In GH2 expressions will no longer be some custom language+parser but instead will be compiled VB or C# (and possibly Python) programs. It will be a lot easier to create, compile, and invoke code then. That doesn't help you now of course...
Thanks for the reply.
But GH now have a competitor -Dynamo and is very actively developed.
I've seen people now tries to move to the other side since GH haven't been updated for a long time, and Dynamo provide better experience in some area.
I've read your post about not sure when to release GH2, but any very very rough idea? By the end of this year? next year?
What is this one about?
I just see a group...
I was referencing to the File To Script solution, but maybe I just missed your question.
http://www.grasshopper3d.com/video/visual-studio-as-script-editor?c...
You didn't miss the question.
The first link you provided is not containing anything, just a "milkbox" group page.
OK, I see.
I need to join the group...
Thank you for the info.
This is very good actually.
Thank you again.
That's pretty smart.
There is no dynamic syncing I am afraid. It "works" for Python because the Python code is "interpreted" on the fly. C# code requires compiling.
What you can do is write C# codes in Visual Studio (or some other editors) and compile the code as a dynamic link library (.dll) file (usually these codes should be packaged inside public classes or struct). You can then you can "link" the .dll file into the C# Script component by right clicking on the component and choose Manage Assembly. This will allows you to access all the public classes, structs, etc... that you have defined externally.
The inconvenience is that if you change the external codes, you have to manually recompile and restart Rhino/Grasshopper.
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by