Logo syde

Object

Base object class for all CAD entities.

Index

Methods

NameDescription
Add3DFaceobject.Add3DFace(Point1, Point2, Point3 [, Point4])
Add3Dmeshobject.Add3Dmesh(M, N, PointsMatrix)
Add3Dpolyobject.Add3Dpoly(PointsArray)
AddArcobject.AddArc(Center, Radius, StartAngle, EndAngle)
AddBoxobject.AddBox(Origin, Length, Width, Height)
AddCircleobject.AddCircle(Center, Radius)
AddCylinderobject.AddCylinder(Center, Radius, Height)
AddHatchobject.AddHatch(PatternType, PatternName, Associativity [, HatchObjectType])
AddLineobject.AddLine(StartPoint, EndPoint)
AddSphereobject.AddSphere(Center, Radius)
AddSplineobject.AddSpline(PointsArray, StartTangent, EndTangent)
AddTextobject.AddText(TextString, InsertionPoint, Height)
Copypolyline.Copy()
Deleteobject.Delete()
Explodepolyline.Explode()
GetBoundingBoxpolyline.GetBoundingBox()
Highlightpolyline.Highlight(Flag)
IntersectWithpolyline.IntersectWith(Entity, ExtendArg)
Mirrorpolyline.Mirror(Point1, Point2)
Mirror3Dpolyline.Mirror3D(Point1, Point2, Point3)
Movepolyline.Move(FromPoint, ToPoint)
Rotatepolyline.Rotate(BasePoint, RotationAngle)
Rotate3Dpolyline.Rotate3D(Point1, Point2, RotationAngle)
ScaleEntitypolyline.ScaleEntity(BasePoint, ScaleFactor)
Selectobject.Select()
TransformBypolyline.TransformBy(TransformationMatrix)
Updatepolyline.Update()

Add3DFace

Signature
javascript

object.Add3DFace(Point1, Point2, Point3 [, Point4])

Description

Creates a 3D face with three or four points.

Add3Dmesh

Signature
javascript

object.Add3Dmesh(M, N, PointsMatrix)

Description

Creates a 3D mesh with M×N vertices.

Add3Dpoly

Signature
javascript

object.Add3Dpoly(PointsArray)

Description

Creates a 3D polyline from an array of points.

AddArc

Signature
javascript

object.AddArc(Center, Radius, StartAngle, EndAngle)

Description

Creates an arc with specified center, radius, and angles.

AddBox

Signature
javascript

object.AddBox(Origin, Length, Width, Height)

Description

Creates a 3D box with specified origin and dimensions.

AddCircle

Signature
javascript

object.AddCircle(Center, Radius)

Description

Creates a circle with specified center and radius.

AddCylinder

Signature
javascript

object.AddCylinder(Center, Radius, Height)

Description

Creates a cylinder with specified center, radius, and height.

AddHatch

Signature
javascript

object.AddHatch(PatternType, PatternName, Associativity [, HatchObjectType])

Description

Creates a hatch pattern.

AddLine

Signature
javascript

object.AddLine(StartPoint, EndPoint)

Description

Creates a line from start point to end point.

AddSphere

Signature
javascript

object.AddSphere(Center, Radius)

Description

Creates a sphere with specified center and radius.

AddSpline

Signature
javascript

object.AddSpline(PointsArray, StartTangent, EndTangent)

Description

Creates a spline through specified points.

AddText

Signature
javascript

object.AddText(TextString, InsertionPoint, Height)

Description

Creates a text object.

Copy

Signature
javascript

polyline.Copy()

Description

Creates a copy of the object.

Delete

Signature
javascript

object.Delete()

Description

Deletes the object from the drawing.

Explode

Signature
javascript

polyline.Explode()

Description

Explodes the object into individual segments.

GetBoundingBox

Signature
javascript

polyline.GetBoundingBox()

Description

Returns the bounding box of the object.

Highlight

Signature
javascript

polyline.Highlight(Flag)

Description

Highlights or unhighlights the object.

IntersectWith

Signature
javascript

polyline.IntersectWith(Entity, ExtendArg)

Description

Finds intersections with another entity.

Mirror

Signature
javascript

polyline.Mirror(Point1, Point2)

Description

Mirrors the object.

Mirror3D

Signature
javascript

polyline.Mirror3D(Point1, Point2, Point3)

Description

Mirrors the object in 3D space.

Move

Signature
javascript

polyline.Move(FromPoint, ToPoint)

Description

Moves the object.

Rotate

Signature
javascript

polyline.Rotate(BasePoint, RotationAngle)

Description

Rotates the object.

Rotate3D

Signature
javascript

polyline.Rotate3D(Point1, Point2, RotationAngle)

Description

Rotates the object in 3D space.

ScaleEntity

Signature
javascript

polyline.ScaleEntity(BasePoint, ScaleFactor)

Description

Scales the object.

Select

Signature
javascript

object.Select()

Description

Selects the object in the drawing.

TransformBy

Signature
javascript

polyline.TransformBy(TransformationMatrix)

Description

Transforms the object using a matrix.

Update

Signature
javascript

polyline.Update()

Description

Updates the object in the drawing.

Property

NameDescription
ApplicationGets the application object that contains the object.
ClosedGets or sets whether the polyline or 3D polyline is closed.
CoordinatesGets all coordinates of the object.
DocumentGets the document that contains the object.
EntityTransparencyGets or sets the transparency of the object.
FocusedObjectGets or sets the currently focused object.
HandleGets the handle of the object.
HyperlinksGets the hyperlinks associated with the object.
LayerGets or sets the layer of the object.
LengthGets the length of the object. Applicable for line, polyline or 3D polyline.
LinetypeGets or sets the line type of the object.
LinetypeScaleGets or sets the line type scale of the object.
LineweightGets or sets the line weight of the object.
MaterialGets or sets the material of the object.
ObjectIDGets the object ID of the object.
ObjectNameGets the object name of the object.
OwnerIDGets the owner ID of the object.
SelectedObjectGets the currently selected object.
TrueColorGets or sets the true color of the object.
TypeGets the type of the object.
VisibleGets or sets whether the object is visible.

Application

Gets the application object that contains the object.

Closed

Gets or sets whether the polyline or 3D polyline is closed.

Coordinates

Gets all coordinates of the object.

Document

Gets the document that contains the object.

EntityTransparency

Gets or sets the transparency of the object.

FocusedObject

Gets or sets the currently focused object.

Handle

Gets the handle of the object.

Hyperlinks

Gets the hyperlinks associated with the object.

Layer

Gets or sets the layer of the object.

Length

Gets the length of the object. Applicable for line, polyline or 3D polyline.

Linetype

Gets or sets the line type of the object.

LinetypeScale

Gets or sets the line type scale of the object.

Lineweight

Gets or sets the line weight of the object.

Material

Gets or sets the material of the object.

ObjectID

Gets the object ID of the object.

ObjectName

Gets the object name of the object.

OwnerID

Gets the owner ID of the object.

SelectedObject

Gets the currently selected object.

TrueColor

Gets or sets the true color of the object.

Type

Gets the type of the object.

Visible

Gets or sets whether the object is visible.

Events

NameDescription
KeyDownFired when a key is pressed.
KeyUpFired when a key is released.
MouseDownFired when a mouse button is pressed.
MouseMoveFired when the mouse is moved.
MouseUpFired when a mouse button is released.
MouseWheelFired when the mouse wheel is rotated.
SelectObjectFired when an object is selected.

KeyDown

Fired when a key is pressed.

KeyUp

Fired when a key is released.

MouseDown

Fired when a mouse button is pressed.

MouseMove

Fired when the mouse is moved.

MouseUp

Fired when a mouse button is released.

MouseWheel

Fired when the mouse wheel is rotated.

SelectObject

Fired when an object is selected.