Object
Base object class for all CAD entities.
Index
Methods
Name | Description |
---|---|
Add3DFace | object.Add3DFace(Point1, Point2, Point3 [, Point4]) |
Add3Dmesh | object.Add3Dmesh(M, N, PointsMatrix) |
Add3Dpoly | object.Add3Dpoly(PointsArray) |
AddArc | object.AddArc(Center, Radius, StartAngle, EndAngle) |
AddBox | object.AddBox(Origin, Length, Width, Height) |
AddCircle | object.AddCircle(Center, Radius) |
AddCylinder | object.AddCylinder(Center, Radius, Height) |
AddHatch | object.AddHatch(PatternType, PatternName, Associativity [, HatchObjectType]) |
AddLine | object.AddLine(StartPoint, EndPoint) |
AddSphere | object.AddSphere(Center, Radius) |
AddSpline | object.AddSpline(PointsArray, StartTangent, EndTangent) |
AddText | object.AddText(TextString, InsertionPoint, Height) |
Copy | polyline.Copy() |
Delete | object.Delete() |
Explode | polyline.Explode() |
GetBoundingBox | polyline.GetBoundingBox() |
Highlight | polyline.Highlight(Flag) |
IntersectWith | polyline.IntersectWith(Entity, ExtendArg) |
Mirror | polyline.Mirror(Point1, Point2) |
Mirror3D | polyline.Mirror3D(Point1, Point2, Point3) |
Move | polyline.Move(FromPoint, ToPoint) |
Rotate | polyline.Rotate(BasePoint, RotationAngle) |
Rotate3D | polyline.Rotate3D(Point1, Point2, RotationAngle) |
ScaleEntity | polyline.ScaleEntity(BasePoint, ScaleFactor) |
Select | object.Select() |
TransformBy | polyline.TransformBy(TransformationMatrix) |
Update | polyline.Update() |
Add3DFace
Signaturejavascript
object.Add3DFace(Point1, Point2, Point3 [, Point4])
Description
Creates a 3D face with three or four points.
Add3Dmesh
Signaturejavascript
object.Add3Dmesh(M, N, PointsMatrix)
Description
Creates a 3D mesh with M×N vertices.
Add3Dpoly
Signaturejavascript
object.Add3Dpoly(PointsArray)
Description
Creates a 3D polyline from an array of points.
AddArc
Signaturejavascript
object.AddArc(Center, Radius, StartAngle, EndAngle)
Description
Creates an arc with specified center, radius, and angles.
AddBox
Signaturejavascript
object.AddBox(Origin, Length, Width, Height)
Description
Creates a 3D box with specified origin and dimensions.
AddCircle
Signaturejavascript
object.AddCircle(Center, Radius)
Description
Creates a circle with specified center and radius.
AddCylinder
Signaturejavascript
object.AddCylinder(Center, Radius, Height)
Description
Creates a cylinder with specified center, radius, and height.
AddHatch
Signaturejavascript
object.AddHatch(PatternType, PatternName, Associativity [, HatchObjectType])
Description
Creates a hatch pattern.
AddLine
Signaturejavascript
object.AddLine(StartPoint, EndPoint)
Description
Creates a line from start point to end point.
AddSphere
Signaturejavascript
object.AddSphere(Center, Radius)
Description
Creates a sphere with specified center and radius.
AddSpline
Signaturejavascript
object.AddSpline(PointsArray, StartTangent, EndTangent)
Description
Creates a spline through specified points.
AddText
Signaturejavascript
object.AddText(TextString, InsertionPoint, Height)
Description
Creates a text object.
Copy
Signaturejavascript
polyline.Copy()
Description
Creates a copy of the object.
Delete
Signaturejavascript
object.Delete()
Description
Deletes the object from the drawing.
Explode
Signaturejavascript
polyline.Explode()
Description
Explodes the object into individual segments.
GetBoundingBox
Signaturejavascript
polyline.GetBoundingBox()
Description
Returns the bounding box of the object.
Highlight
Signaturejavascript
polyline.Highlight(Flag)
Description
Highlights or unhighlights the object.
IntersectWith
Signaturejavascript
polyline.IntersectWith(Entity, ExtendArg)
Description
Finds intersections with another entity.
Mirror
Signaturejavascript
polyline.Mirror(Point1, Point2)
Description
Mirrors the object.
Mirror3D
Signaturejavascript
polyline.Mirror3D(Point1, Point2, Point3)
Description
Mirrors the object in 3D space.
Move
Signaturejavascript
polyline.Move(FromPoint, ToPoint)
Description
Moves the object.
Rotate
Signaturejavascript
polyline.Rotate(BasePoint, RotationAngle)
Description
Rotates the object.
Rotate3D
Signaturejavascript
polyline.Rotate3D(Point1, Point2, RotationAngle)
Description
Rotates the object in 3D space.
ScaleEntity
Signaturejavascript
polyline.ScaleEntity(BasePoint, ScaleFactor)
Description
Scales the object.
Select
Signaturejavascript
object.Select()
Description
Selects the object in the drawing.
TransformBy
Signaturejavascript
polyline.TransformBy(TransformationMatrix)
Description
Transforms the object using a matrix.
Update
Signaturejavascript
polyline.Update()
Description
Updates the object in the drawing.
Property
Name | Description |
---|---|
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. |
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
Name | Description |
---|---|
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. |
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.