RhinoDoc doc

Hi there,

I have a question regarding Rhino.Doc accessibility. I have found a row in C# samples in the Calculate Curve Intersections script. https://developer.rhino3d.com/samples/rhinocommon/calculate-curve-intersections/

But what does this row means?
public static Rhino.Commands.Result IntersectCurves(Rhino.RhinoDoc doc)

Or when we start a plugin we have similar public static
Rhino.Commands.Result IntersectCurves(Rhino.RhinoDoc doc)

EDIT: Another interesting thing why we do not need to use it in Python?

The line starts a function.

Please do yourself a favor and read through the wikikbook

https://en.wikibooks.org/wiki/C_Sharp_Programming

Your particular line is a method on a class, so to skip bits and pieces of the book you’d check https://en.wikibooks.org/wiki/C_Sharp_Programming/Classes#Methods . But again, you do yourself a favor by reading the entire book, since it’ll tell you how C# works.

If you don’t want to read internet tutorials and books, you can get a book from your local library that teaches C# for beginners.

Thank you, What actually I do not understand is the arguments in the parenthesis, IntersectCurve(Rhino.RhinoDoc doc)

I guess, it means that RhinoDoc reference will be used as simple doc in the script.

It means parameter doc is of type RhinoDoc.

The wikibook should give you a better grasp of C# and how to read the sample code (and write your own).

Python is a dynamically typed language, where C# is a statically typed language.

It may be useful to also read a book on Python and how it works.