Grasshopper

algorithmic modeling for Rhino

Hi

 

is there any way to add a geometry to rhino in c# code , without adding it to the an output variable of the script? I need something like .AddtoDocument or .attachToDocument or something like that.

 

 

Views: 836

Replies to This Discussion

Yes. Every script has a RhinoDocument member and you can add geometry using:

RhinoDocument.Objects.AddXXXX();

--

David Rutten

david@mcneel.com

thank you . i think i should ask in another way, imagine that you have to construct some helices. one by one based on pattern, so how i can see them without assigning them one by one to a specific output value? in this way i must have 40-50 output variables , it's so impractical.

You can put them all in a list or array and then assign the list to one output.

--

David Rutten

david@mcneel.com

yeah , i already done that , not working . that's why i'm asking this question.

Not working as in 'it doesn't work', or not working as in 'it doesn't solve my problem'?

How are you assigning this data? Please show me some code.

--

David Rutten

david@mcneel.com

Hi, David Rutten, I'm here for the first time and I want to ask you something, I'm Chinese, the language is not very accurate, right

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service