AddShape Method |
Creates a Shape object based on a template identified by name, at the given insertion point, scale factor, and rotation.
Signature
RetVal = object.AddShape(Name, InsertionPoint, ScaleFactor, Rotation)
Object
ModelSpace Collection,
PaperSpace
Collection, Block
The object or objects this method applies to.
Name
String; input-only
The name of the shape to insert.
InsertionPoint
Variant (three-element array of doubles);
input-only
The 3D WCS coordinates at which to insert the shape.
ScaleFactor
Double; input-only
The scale factor to be applied to the shape. Use 1.0 to specify no
scale. Must be a positive number.
Rotation
Double; input-only
The angle of rotation in radians to be applied to the shape.
RetVal
Shape
object
The newly created Shape object.
Remarks
Before adding a Shape object, you must load the file containing the desired shape using the LoadShapeFile method.
Comments? |