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
David Rutten
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
Sep 18, 2011