Grasshopper

algorithmic modeling for Rhino

hi 

 

i have studied to make component for grasshopper.

 

so, I see grasshopper original component code to use reflector and 

 

make same component for example 'area'

 

copy reflector's code and paste this code to visual studio 2010.

 

but some error are occured. see under picture

 

 

some codes have problem. for example 'properties.get_area' or 'curve.get_isclosed' 

 

i think that this problem occured because I miss the typing 'import'.

 

in this code, i enter import list 

 

Imports Rhino

Imports Rhino.Geometry

Imports Rhino.Collections
Imports Grasshopper

Imports Grasshopper.Kernel

Imports Grasshopper.Kernel.Data

Imports Grasshopper.Kernel.Types
Imports GH_IO

Imports GH_IO.Serialization

 

 

if missed list, answer the another list.

 

thanks

Views: 440

Replies to This Discussion

Hi Kim,

 

when you use Reflector, you see only function calls. Properties (in source code) are converted to function calls with "get_" and "set_" prefixes. Remove get_ and set_ and it will compile better.

 

--

David Rutten

david@mcneel.com

Poprad, Slovakia

thanks Rutten for answering my problem! :-)

 

if I try to study coding for mvs2010, what do I do to better?

Do yo know reference site or have sample coding file?

 

 

Dong wook Kim

kdwwkd@gmail.com

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2025   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service