Grasshopper

algorithmic modeling for Rhino

Hi To all 

I am a newbie to grasshopper but did not find this simple topic anywhere

Making a new component 

This component links to a lot of dll's  so i would like to keep a clean 

folder with all these files 

How can i add a new library Folder to grassopper  so it loads 

my component at runtime  ? 

gerry 

Views: 3813

Replies to This Discussion

Hi Gerry,

there are some solutions:

  • Implement an Assembly Resolver in your GHA and load the referenced dlls from the appropriate location.
  • Put all your files into a subfolder of the Libraries folder.
  • Change the Assemblies:Folders entry in the grasshopper_kernel.xml file to include your folder (legacy solution, not recommended).
  • Install your files using an RHI installer, Grasshopper will automatically peruse those locations.
  • Put a *.ghlink file into the Libraries folder which contains a line of text with your actual folder location. This is the recommended solution to be used for GHA installers.

If this is just for you personally rather than for your users, you can add an extra search folder via the GrasshopperDeveloperSettings command. This basically amounts to doing option 3, but nicely through the Grasshopper UI rather than dicking about with xml files.

Options 4 and 5 are definitely my recommendation. They are clean solutions that use the SDK the way it has been designed.

A GHLINK file can contain any number (including zero) of lines. When a line starts with "#" or "//" then it will be ignored. Every other line is presumed to indicate a folder from which GHA files ought to be loaded. If the folder doesn't exist it is simply skipped.

--

David Rutten

david@mcneel.com

Tirol, Austria

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service