Grasshopper

algorithmic modeling for Rhino

Hi all,

I know that by saving a file in .ghx or by just CTRL-C CTRL-V a part of definition to a text editor, I can see the XML representation of it.

The XML file is highly nested. What if I wanted to serialize a part of it as a C# script?

Let's say I have a component Line having as input two components Point. I want to create the C# code doing the same thing.

How can one do it?

Views: 341

Replies to This Discussion

Write it again from scratch in C#. There's no predefined mapping from components to c# code. For simple things like Line and Construct Point it's not too hard but a lot of components have difficult code on the inside.

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service