Mirror method [AEC base objects]

AEC Auto

Mirror Method

Creates a mirror image copy of a planar object around an axis.

See Also | Example

Signature

RetVal = object.Mirror(Point1, Point2)

Object

AecBlockRef, AecCamera, AecCellLayoutTool, AecClipVol, AecClipVolRes, AecEntity, AecEntRef, AecGeo, AecGridAssembly, AecLayoutCurve, AecLayoutGrid2D, AecLayoutGrid3D, AecLayoutTool, AecMaskBlockRef, AecMassElement, AecMassGroup, AecMVBlockRef, AecPolygon, AecSlice, AecVolumeLayoutTool
The object or objects this method applies to.

Point1

Variant (three-element array of doubles); input-only
The 3D WCS coordinates specifying the first point of the mirror axis.

Point2

Variant (three-element array of doubles); input-only
The 3D WCS coordinates specifying the second point of the mirror axis.

RetVal

Mirrored object
This can be any drawing entity object.

Remarks

The two points specified as parameters become the endpoints of a line around which the base object is reflected.

 


Selected object
 

 


Point1 and Point2 specifying the mirror axis
 

 


Mirrored object
 

This method places the reflected image into the drawing and retains the original object. To remove the original object, use the Delete method.

You can mirror a Viewport object in paper space, although doing so has no affect on its model space view or on model space objects.

AutoCAD checks to see if the object to be copied owns any other object. If it does, it performs a copy on those objects as well. The process continues until all owned objects have been copied.

NOTE You cannot execute this method while simultaneously iterating through a collection. An iteration will open the work space for a read-only operation, while this method attempts to perform a read-write operation. Complete any iteration before you call this method.