Documentation RhinoCommon API

Python_III_RhinoCommon - Using RhinoCommon for Creating Objects and accessing their Properties and Methods:


Declaring the class with parenthesis:

from Rhino.Geometry import Point3d

point = Point3d(0,0,0)


Accessing class properties:

from Rhino.Geometry import Point3d

point = Point3d(0,0,0)
x_coordinate = point.X


Accessing class methods:

from Rhino.Geometry import Point3d

p0 = Point3d(0,0,10)
p1 = Point3d(10,10,10)
distance = p0.DistanceTo(p1)


Operators (if the class has any):

from Rhino.Geometry import Point3d

p0 = Point3d(0,0,10)
p1 = Point3d(10,10,10)
p2 = p0+p1