Add Method
Adds an object to a collection, or adds two AecProfile objects.
See Also | Example
Signatures: Overview
Layer Keys,
Layer Key Styles,
Mask Block Styles,
Mass Element Styles,
Multi-view Block Styles,
Polygon Styles,
Profile Styles,
Display Configurations,
Display Sets
RetVal = collection.Add(Name)
Profiles
object.Add(profile)
Rings
RetVal = collection.Add()
ViewBlockDefs
RetVal = collection.Add(AcadBlock)
Signatures: Detail
RetVal = collection.Add(Name)
collection
AecLayerKeys,
AecLayerKeyStyles,
AecMassElementStyles,
AecMaskBlockStyles,
AecMVBlockStyles,
AecPolygonStyles,
AecProfileStyles,
AecDisplayConfigurations,
AecDisplaySets,
AecViewBlockDefs
The collection the object is being added to.
Name
String; input-only
Name of the object to be added to the collection.
RetVal
AecLayerKey,
AecLayerKeyStyle,
AecMaskBlockStyle,
AecMassElementStyle,
AecMVBlockStyle,
AecPolygonStyle,
AecProfileStyle,
AecDisplayConfigurations,
AecDisplaySets,
AecViewBlockDefs
The newly added object.
object.Add(profile)
object
AecProfile
The profile you are adding a new profile object to.
profile
AecProfile; input-only
AecProfile to add to the first AecProfile
RetVal = collection.Add()
collection
AecRings
The collection you are adding a new ring definition to.
RetVal
AecRing
The newly added object.
RetVal = collection.Add(AcadBlock)
collection
AecViewBlockDefs
The collection you are adding a new block to.
AcadBlock
AcadBlock object; input-only
The block to add to the collection.
RetVal
AecViewBlockDef
The newly created view block definition object.