IoExtensionMethods

public static class IoExtensionMethods
Provides some extension methods for reading and writing RhinoCommon and Eto types to GrasshopperIO objects.

Methods

public static Angle Angle(this IReader reader, Name location)
Read an Angle from an archive.
reader (IReader)Object to read from.
location (Name)Location of entry.
angle.
public static void Angle(this IWriter writer, Name location, Angle angle)
Write an angle to an archive.
writer (IWriter)Writer object.
location (Name)Location of entry.
angle (Angle)Angle to write.
public static Arc Arc(this IReader reader, Name location)
Read an Arc from an archive.
reader (IReader)Object to read from.
location (Name)Location of entry.
Arc.
public static void Arc(this IWriter writer, Name location, Arc arc)
Write an Arc to an archive.
writer (IWriter)Writer object.
location (Name)Location of entry.
arc (Arc)Circle to write.

BoundingBox

#Example
public static BoundingBox BoundingBox(this IReader reader, Name location)
Read a bounding box from an archive.
reader (IReader)Object to read from.
location (Name)Location of entry.
BoundingBox.

BoundingBox

#Example
public static void BoundingBox(this IWriter writer, Name location, BoundingBox box)
Write a bounding box to an archive.
writer (IWriter)Writer object.
location (Name)Location of entry.
box (BoundingBox)BoundingBox to write.
public static Box Box(this IReader reader, Name location)
Read a box from an archive.
reader (IReader)Object to read from.
location (Name)Location of entry.
Box.
public static void Box(this IWriter writer, Name location, Box box)
Write a box to an archive.
writer (IWriter)Writer object.
location (Name)Location of entry.
box (Box)Box to write.

Circle

#Example
public static Circle Circle(this IReader reader, Name location)
Read a Circle from an archive.
reader (IReader)Object to read from.
location (Name)Location of entry.
Circle.

Circle

#Example
public static void Circle(this IWriter writer, Name location, Circle circle)
Write a Circle to an archive.
writer (IWriter)Writer object.
location (Name)Location of entry.
circle (Circle)Circle to write.

CommonObject

#Example
public static CommonObject CommonObject(this IReader reader, Name location)
Read a Rhino common object from an archive.
reader (IReader)Object to read from.
location (Name)Location of entry.
Common object.

CommonObject

#Example
public static void CommonObject(this IWriter writer, Name location, CommonObject co)
Write a Rhino common object to an archive.
writer (IWriter)Writer object.
location (Name)Location of entry.
co (CommonObject)Common object to write.

EtoArcF

#Example
public static ArcF EtoArcF(this IReader reader, Name location)
Read an Eto arc from an archive.
reader (IReader)Object to read from.
location (Name)Entry location.
Eto arc.

EtoArcF

#Example
public static void EtoArcF(this IWriter writer, Name location, ArcF arc)
Write an Eto arc to an archive.
writer (IWriter)Writer object.
location (Name)Entry location.
arc (ArcF)Arc to write.

EtoBezierF

#Example
public static BezierF EtoBezierF(this IReader reader, Name location)
Read an Eto bezier from an archive.
reader (IReader)Object to read from.
location (Name)Entry location.
Eto bezier.

EtoBezierF

#Example
public static void EtoBezierF(this IWriter writer, Name location, BezierF bezier)
Write an Eto bezier to an archive.
writer (IWriter)Writer object.
location (Name)Entry location.
bezier (BezierF)Bezier to write.

EtoBitmap

#Example
public static Bitmap EtoBitmap(this IReader reader, Name location)
Read an Eto bitmap from an archive.
reader (IReader)Object to read from.
location (Name)Entry location.
Eto bitmap.

EtoBitmap

#Example
public static void EtoBitmap(this IWriter writer, Name location, Bitmap bitmap)
Write an Eto bitmap to an archive.
writer (IWriter)Writer object.
location (Name)Entry location.
bitmap (Bitmap)Bitmap to write.

EtoCircleF

#Example
public static CircleF EtoCircleF(this IReader reader, Name location)
Read an Eto circle from an archive.
reader (IReader)Object to read from.
location (Name)Entry location.
Eto circle.

EtoCircleF

#Example
public static void EtoCircleF(this IWriter writer, Name location, CircleF circle)
Write an Eto circle to an archive.
writer (IWriter)Writer object.
location (Name)Entry location.
circle (CircleF)Circle to write.

EtoColor

#Example
public static Color EtoColor(this IReader reader, Name location)
Read an Eto colour from an archive.
reader (IReader)Object to read from.
location (Name)Entry location.
Eto colour.

EtoColor

#Example
public static void EtoColor(this IWriter writer, Name location, Color colour)
Write an Eto colour to an archive. The colour is stored as an array of 4 floats.
writer (IWriter)Writer object.
location (Name)Entry location.
colour (Color)Colour to write.

EtoEllipseF

#Example
public static EllipseF EtoEllipseF(this IReader reader, Name location)
Read an Eto ellipse from an archive.
reader (IReader)Object to read from.
location (Name)Entry location.
Eto ellipse.

EtoEllipseF

#Example
public static void EtoEllipseF(this IWriter writer, Name location, EllipseF ellipse)
Write an Eto ellipse to an archive.
writer (IWriter)Writer object.
location (Name)Entry location.
ellipse (EllipseF)Ellipse to write.

EtoFrameF

#Example
public static FrameF EtoFrameF(this IReader reader, Name location)
Read an Eto frame from an archive.
reader (IReader)Object to read from.
location (Name)Entry location.
Eto frame.

EtoFrameF

#Example
public static void EtoFrameF(this IWriter writer, Name location, FrameF frame)
Write an Eto frame to an archive.
writer (IWriter)Writer object.
location (Name)Entry location.
frame (FrameF)Frame to write.

EtoLineF

#Example
public static LineF EtoLineF(this IReader reader, Name location)
Read an Eto line from an archive.
reader (IReader)Object to read from.
location (Name)Entry location.
Eto line.

EtoLineF

#Example
public static void EtoLineF(this IWriter writer, Name location, LineF line)
Write an Eto line to an archive.
writer (IWriter)Writer object.
location (Name)Entry location.
line (LineF)Line to write.

EtoPoint

#Example
public static Point EtoPoint(this IReader reader, Name location)
Read an Eto point from an archive.
reader (IReader)Object to read from.
location (Name)Entry location.
Eto point.

EtoPoint

#Example
public static void EtoPoint(this IWriter writer, Name location, Point point)
Write an Eto point to an archive.
writer (IWriter)Writer object.
location (Name)Entry location.
point (Point)Point to write.

EtoPointF

#Example
public static PointF EtoPointF(this IReader reader, Name location)
Read an Eto point from an archive.
reader (IReader)Object to read from.
location (Name)Entry location.
Eto point.

EtoPointF

#Example
public static void EtoPointF(this IWriter writer, Name location, PointF point)
Write an Eto point to an archive.
writer (IWriter)Writer object.
location (Name)Entry location.
point (PointF)Point to write.

EtoPointFArray

#Example
public static PointF[] EtoPointFArray(this IReader reader, Name location)
Read an Eto pointf array from an archive.
reader (IReader)Object to read from.
location (Name)Entry location.
Eto points.

EtoPointFArray

#Example
public static void EtoPointFArray(this IWriter writer, Name location, PointF[] points)
Write an Eto pointf array to an archive.
writer (IWriter)Writer object.
location (Name)Entry location.
points (PointF[])Points to write.

EtoRectangle

#Example
public static Rectangle EtoRectangle(this IReader reader, Name location)
Read an Eto rectangle from an archive.
reader (IReader)Object to read from.
location (Name)Entry location.
Eto rectangle.

EtoRectangle

#Example
public static void EtoRectangle(this IWriter writer, Name location, Rectangle rectangle)
Write an Eto rectangle to an archive.
writer (IWriter)Writer object.
location (Name)Entry location.
rectangle (Rectangle)Rectangle to write.

EtoRectangleF

#Example
public static RectangleF EtoRectangleF(this IReader reader, Name location)
Read an Eto rectangle from an archive.
reader (IReader)Object to read from.
location (Name)Entry location.
Eto rectangle.

EtoRectangleF

#Example
public static void EtoRectangleF(this IWriter writer, Name location, RectangleF rectangle)
Write an Eto size to an archive.
writer (IWriter)Writer object.
location (Name)Entry location.
rectangle (RectangleF)Rectangle to write.

EtoRotation

#Example
public static RotationF EtoRotation(this IReader reader, Name location)
Read an Eto rotation from an archive.
reader (IReader)Object to read from.
location (Name)Entry location.
Eto rotation.

EtoRotation

#Example
public static void EtoRotation(this IWriter writer, Name location, RotationF rotation)
Write an Eto rotation to an archive.
writer (IWriter)Writer object.
location (Name)Entry location.
rotation (RotationF)Rotation to write.

EtoSize

#Example
public static Size EtoSize(this IReader reader, Name location)
Read an Eto size from an archive.
reader (IReader)Object to read from.
location (Name)Entry location.
Eto size.

EtoSize

#Example
public static void EtoSize(this IWriter writer, Name location, Size size)
Write an Eto size to an archive.
writer (IWriter)Writer object.
location (Name)Entry location.
size (Size)Size to write.

EtoSizeF

#Example
public static SizeF EtoSizeF(this IReader reader, Name location)
Read an Eto size from an archive.
reader (IReader)Object to read from.
location (Name)Entry location.
Eto size.

EtoSizeF

#Example
public static void EtoSizeF(this IWriter writer, Name location, SizeF size)
Write an Eto size to an archive.
writer (IWriter)Writer object.
location (Name)Entry location.
size (SizeF)Size to write.

Function

#Example
public static Function Function(this IReader reader, Name location)
Read a function from an archive.
reader (IReader)Object to read from.
location (Name)Location of entry.
Function.

Function

#Example
public static void Function(this IWriter writer, Name location, Function function)
Write a function to an archive.
writer (IWriter)Writer object.
location (Name)Location of entry.
function (Function)Function to write.

GdiColor

#Example
public static Color GdiColor(this IReader reader, Name location)
Read a GDI colour from an archive.
reader (IReader)Object to read from.
location (Name)Entry location.
GDI colour.

GdiColor

#Example
public static void GdiColor(this IWriter writer, Name location, Color colour)
Write a GDI colour to an archive. The colour is stored as a single integer.
writer (IWriter)Writer object.
location (Name)Entry location.
colour (Color)Colour to write.

Interval

#Example
public static Interval Interval(this IReader reader, Name location)
Read an Interval from an archive.
reader (IReader)Object to read from.
location (Name)Location of entry.
Interval.

Interval

#Example
public static void Interval(this IWriter writer, Name location, Interval interval)
Write an Interval to an archive.
writer (IWriter)Writer object.
location (Name)Location of entry.
interval (Interval)Interval to write.
public static Line Line(this IReader reader, Name location)
Read a Plane from an archive.
reader (IReader)Object to read from.
location (Name)Location of entry.
Plane.
public static void Line(this IWriter writer, Name location, Line line)
Write a Line to an archive.
writer (IWriter)Writer object.
location (Name)Location of entry.
line (Line)Line to write.

Material

#Example
public static DisplayMaterial Material(this IReader reader, Name location)
Read a display material from an archive.
reader (IReader)Object to read from.
location (Name)Location of entry.
Material.

Material

#Example
public static void Material(this IWriter writer, Name location, DisplayMaterial material)
Write a display material to an archive.
writer (IWriter)Writer object.
location (Name)Location of entry.
material (DisplayMaterial)Material to write.
public static Nomen Nomen(this IReader reader, Name location)
Read a nomen from an archive.
reader (IReader)Object to read from.
location (Name)Location of entry.
Nomen.
public static void Nomen(this IWriter writer, Name location, Nomen nomen)
Write a nomen to an archive.
writer (IWriter)Writer object.
location (Name)Location of entry.
nomen (Nomen)Nomen to write.
public static Plane Plane(this IReader reader, Name location)
Read a Plane from an archive.
reader (IReader)Object to read from.
location (Name)Location of entry.
Plane.
public static void Plane(this IWriter writer, Name location, Plane plane)
Write a Plane to an archive.
writer (IWriter)Writer object.
location (Name)Location of entry.
plane (Plane)Plane to write.

Point2d

#Example
public static Point2d Point2d(this IReader reader, Name location)
Read a Point2d from an archive.
reader (IReader)Object to read from.
location (Name)Location of entry.
Point2d.

Point2d

#Example
public static void Point2d(this IWriter writer, Name location, Point2d point)
Write a Point2d to an archive.
writer (IWriter)Writer object.
location (Name)Location of entry.
point (Point2d)Point to write.

Point2dArray

#Example
public static Point2d[] Point2dArray(this IReader reader, Name location)
Read an array of Point2d from an archive.
reader (IReader)Object to read from.
location (Name)Location of entry.
Point2d array.

Point2dArray

#Example
public static void Point2dArray(this IWriter writer, Name location, Point2d[] points)
Write a Point2d array to an archive.
writer (IWriter)Writer object.
location (Name)Location of entry.
points (Point2d[])Points to write.

Point3d

#Example
public static Point3d Point3d(this IReader reader, Name location)
Read a Point3d from an archive.
reader (IReader)Object to read from.
location (Name)Location of entry.
Point3d.

Point3d

#Example
public static void Point3d(this IWriter writer, Name location, Point3d point)
Write a Point3d to an archive.
writer (IWriter)Writer object.
location (Name)Location of entry.
point (Point3d)Point to write.

Point3dArray

#Example
public static Point3d[] Point3dArray(this IReader reader, Name location)
Read an array of Point3d from an archive.
reader (IReader)Object to read from.
location (Name)Location of entry.
Point3d array.

Point3dArray

#Example
public static void Point3dArray(this IWriter writer, Name location, Point3d[] points)
Write a Point3d to an archive.
writer (IWriter)Writer object.
location (Name)Location of entry.
points (Point3d[])Points to write.

Polyline

#Example
public static Polyline Polyline(this IReader reader, Name location)
Read a polyline from an archive.
reader (IReader)Object to read from.
location (Name)Location of entry.
Polyline.

Polyline

#Example
public static void Polyline(this IWriter writer, Name location, Polyline polyline)
Write a polyline to an archive.
writer (IWriter)Writer object.
location (Name)Location of entry.
polyline (Polyline)Polyline to write.

Rectangle

#Example
public static Rectangle3d Rectangle(this IReader reader, Name location)
Read a rectangle from an archive.
reader (IReader)Object to read from.
location (Name)Location of entry.
Box.

Rectangle

#Example
public static void Rectangle(this IWriter writer, Name location, Rectangle3d rec)
Write a rectangle to an archive.
writer (IWriter)Writer object.
location (Name)Location of entry.
rec (Rectangle3d)Rectangle to write.

SpatialVector

#Example
public static Locus SpatialVector(this IReader reader, Name location)
Read a spatial vector from an archive.
reader (IReader)Object to read from.
location (Name)Location of entry.
Vector.

SpatialVector

#Example
public static void SpatialVector(this IWriter writer, Name location, Locus vector)
Write a spatial vector to an archive.
writer (IWriter)Writer object.
location (Name)Location of entry.
vector (Locus)Vector to write.

SpatialVectorArray

#Example
public static Locus[] SpatialVectorArray(this IReader reader, Name location)
Read a spatial vector array from an archive.
reader (IReader)Object to read from.
location (Name)Location of entry.
Vector array.

SpatialVectorArray

#Example
public static void SpatialVectorArray(this IWriter writer, Name location, Locus[] vector)
Write a spatial vector array to an archive.
writer (IWriter)Writer object.
location (Name)Location of entry.
vector (Locus[])Vector to write.

Sphere

#Example
public static Sphere Sphere(this IReader reader, Name location)
Read a sphere from an archive.
reader (IReader)Object to read from.
location (Name)Location of entry.

Sphere

#Example
public static void Sphere(this IWriter writer, Name location, Sphere sphere)
Write a sphere to an archive.
writer (IWriter)Writer object.
location (Name)Location of entry.
sphere (Sphere)Sphere to write.

Transform

#Example
public static Transform Transform(this IReader reader, Name location)
Read a Transform from an archive.
reader (IReader)Object to read from.
location (Name)Location of entry.
Transform.

Transform

#Example
public static void Transform(this IWriter writer, Name location, Transform transform)
Write a Transform to an archive.
writer (IWriter)Writer object.
location (Name)Location of entry.
transform (Transform)Transform to write.
public static Tube Tube(this IReader reader, Name location)
Read a tube from an archive.
reader (IReader)Object to read from.
location (Name)Location of entry.
public static void Tube(this IWriter writer, Name location, Tube tube)
Write a Tube to an archive.
writer (IWriter)Writer object.
location (Name)Location of entry.
tube (Tube)Tube to write.

Vector2d

#Example
public static Vector2d Vector2d(this IReader reader, Name location)
Read a Vector2d from an archive.
reader (IReader)Object to read from.
location (Name)Location of entry.
Vector2d.

Vector2d

#Example
public static void Vector2d(this IWriter writer, Name location, Vector2d vector)
Write a Vector2d to an archive.
writer (IWriter)Writer object.
location (Name)Location of entry.
vector (Vector2d)Vector to write.

Vector3d

#Example
public static Vector3d Vector3d(this IReader reader, Name location)
Read a Vector3d from an archive.
reader (IReader)Object to read from.
location (Name)Location of entry.
Vector3d.

Vector3d

#Example
public static void Vector3d(this IWriter writer, Name location, Vector3d vector)
Write a Vector3d to an archive.
writer (IWriter)Writer object.
location (Name)Location of entry.
vector (Vector3d)Vector to write.

Vector3dArray

#Example
public static Vector3d[] Vector3dArray(this IReader reader, Name location)
Read an array of Point3d from an archive.
reader (IReader)Object to read from.
location (Name)Location of entry.
Point3d array.

Vector3dArray

#Example
public static void Vector3dArray(this IWriter writer, Name location, Vector3d[] vectors)
Write a Vector3d array to an archive.
writer (IWriter)Writer object.
location (Name)Location of entry.
vectors (Vector3d[])Vectors to write.