File3dmObjectTable.AddLine Method (Point3d, Point3d, ObjectAttributes)

File3dmObjectTableAddLine Method (Point3d, Point3d, ObjectAttributes)

Adds a line object to Rhino.

Namespace:  Rhino.FileIO
Assembly:  RhinoCommon (in RhinoCommon.dll)
Syntax
public Guid AddLine(
	Point3d from,
	Point3d to,
	ObjectAttributes attributes
)
Public Function AddLine ( 
	from As Point3d,
	to As Point3d,
	attributes As ObjectAttributes
) As Guid

Parameters

from
Type: Rhino.GeometryPoint3d
The start point of the line.
to
Type: Rhino.GeometryPoint3d
The end point of the line.
attributes
Type: Rhino.DocObjectsObjectAttributes
Attributes to apply to line.

Return Value

Type: Guid
A unique identifier for the object.
Version Information

Rhino for Mac

Supported in: 5.4

Rhino for Windows

Supported in: 6.8
See Also