IShapes¶
- class IShapes¶
Bases:
ImpactCOMWrapperBase,Iterable- Summary:
A collection of IShape objects.
- Remarks:
Provides a way to perform operations on several shapes at once. Introduced in Impact 10.0.0.59
Wraps a COM object or another wrapper instance. Accepts: - A valid impact_object - An existing impact_com_wrapper_base-derived instance
- property count¶
Gets Count.
- Summary:
The number of items in this collection.
- Returns:
The value of Count.
- Return type:
count (int)
- add(value)¶
- Summary:
Adds an existing IShape object to the collection.
- Parameters:
value (IShape) – The IShape to be added to the collection.
- isNone()¶
Checks if the COM object is None. This is useful for determining if the wrapper has been initialized with a valid COM object.
- item(index)¶
- Summary:
Gets the IShape object with the specified index.
- Parameters:
index (any) – Gets an IShape object with the specified index.
- union()¶
- Summary:
Unites all the shapes in the collection, thereby creating a new shape.
- Remarks:
When uniting several shapes, it is usually much faster to use this method than to use IShape.union for each of the shapes. Introduced in Impact 10.0.0.59
Examples: