Site Tools


Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
labs:grasshopper_fileformat [2016/04/22]
sandy
labs:grasshopper_fileformat [2016/04/22] (current)
sandy
Line 30: Line 30:
 ===== EHC and GHA files===== ===== EHC and GHA files=====
  
-EHC and GHA files are DotNET dll assemblies which reference the Rhino DotNET SDK and the Grasshopper plug-in. As of Version 0.5, the GHA format ​has superseded the EHC format, though EHC files will still load. These assemblies are parsed using Reflection. All defined non-abstract types which implement certain interfaces, derive from certain base classes, or adhere to certain rules will be merged into the Grasshopper runtime. At this time, GHA files can contain Components, Parameters, Custom Objects and Graph Mapper definitions, and they can of course define as many custom types, dialogs, and resources as needed.+EHC and GHA files are DotNET dll assemblies which reference the Rhino DotNET SDK and the Grasshopper plug-in. As of Version 0.5, the GHA format superseded the EHC format, though EHC files will still load. These assemblies are parsed using Reflection. All defined non-abstract types which implement certain interfaces, derive from certain base classes, or adhere to certain rules will be merged into the Grasshopper runtime. At this time, GHA files can contain Components, Parameters, Custom Objects and Graph Mapper definitions. They can of course define as many custom types, dialogs, and resources as needed.
  
 \\ \\
Line 42: Line 42:
 ===== GH and GHX files===== ===== GH and GHX files=====
  
-These are two new flavors of file format that were first included in Grasshopper 0.5. GHX files are human-readable text files that conform with the XML1.0 specification (at least, I hope they do). GHX files are direct representations of the nested dictionary structure defined by GH_IO.dll. As is typical, the XML flavor can be easily read and adjusted by third party code or even by hand. No schema is available yet, but with questions you can always contact the [[David@McNeel.com|developer]].+These are two new flavors of file format that were first included in Grasshopper 0.5. GHX files are human-readable text files that conform with the XML1.0 specification (at least, I hope they do). GHX files are direct representations of the nested dictionary structure defined by GH_IO.dll. As is typical, the XML flavor can be easily read and adjusted by third party code or even by hand. No schema is available yet, but if you have questions you can always contact the [[David@McNeel.com|developer]].
  
  
-GH files are binary representations of the exact same dictionary structure. GH and GHX files are completely interchangeable ​and both deserialize to an identical runtime structure. The only difference is that *.gh files do not store comments which are present in the dictionary structure. Since the format is not humanly readable, and since comments are never deserialized,​ this was not deemed a useful feature.+GH files are binary representations of the exact same dictionary structure. GH and GHX files are completely interchangeable. Both deserialize to an identical runtime structure. The only difference is that *.gh files do not store comments which are present in the dictionary structure. Since the format is not humanly readable, and since comments are never deserialized,​ this was not deemed a useful feature.
  
  
Line 58: Line 58:
 ==== GH_IO.dll==== ==== GH_IO.dll====
  
-The File IO code is no longer part of the Grasshopper kernel. If you're using a DotNET language and wish to read/​write/​translate Grasshopper files you can reference the file format library (GH_IO.dll) which provides ways to read and write both Binary and XML files into dictionary structures. An up-to-date version of GH_IO.dll ships with every Grasshopper 0.5+ release.+The File IO code is no longer part of the Grasshopper kernel. If you're using a DotNET language and wish to read/​write/​translate Grasshopper files you can reference the file format library (GH_IO.dll)which provides ways to read and write both Binary and XML files into dictionary structures. An up-to-date version of GH_IO.dll ships with every Grasshopper 0.5+ release.
  
  
labs/grasshopper_fileformat.txt ยท Last modified: 2016/04/22 by sandy