Graphics3DReferenceVectorGeometryToolComponentCollection#
- class ansys.stk.core.stkobjects.Graphics3DReferenceVectorGeometryToolComponentCollection#
Collection of reference vectors, axes, points, planes and angles (3D Graphics, Vector Geometry Tool).
Overview#
Return an element of the collection at the specified position. |
|
Add a VGT component to the collection. The path must refer to a valid VGT component. The method throws an exception if the path is invalid or if the element already exist. |
|
Remove an element at the specified position from the collection. |
|
Remove all elements from the collection. |
|
Remove an element from the collection using the elementβs path. The method does not throw an exception if the element with the specified name is not in the collection. |
|
Return an element with the specified name and type. The method throws an exception if the element with the specified name does not exist. |
Return a number of elements in the collection. |
|
Enumerates through the vector collection. |
|
Get a list of available VGT elements that can be added to the collection. |
Import detail#
from ansys.stk.core.stkobjects import Graphics3DReferenceVectorGeometryToolComponentCollection
Property detail#
- property Graphics3DReferenceVectorGeometryToolComponentCollection.count: int#
Return a number of elements in the collection.
- property Graphics3DReferenceVectorGeometryToolComponentCollection._new_enum: EnumeratorProxy#
Enumerates through the vector collection.
Method detail#
- Graphics3DReferenceVectorGeometryToolComponentCollection.item(self, index: int) IGraphics3DReferenceAnalysisWorkbenchComponent #
Return an element of the collection at the specified position.
- Parameters:
index :
int
- Returns:
IGraphics3DReferenceAnalysisWorkbenchComponent
- Graphics3DReferenceVectorGeometryToolComponentCollection.add(self, type: GeometricElementType, name: str) IGraphics3DReferenceAnalysisWorkbenchComponent #
Add a VGT component to the collection. The path must refer to a valid VGT component. The method throws an exception if the path is invalid or if the element already exist.
- Parameters:
type :
GeometricElementType
name :
str
- Returns:
IGraphics3DReferenceAnalysisWorkbenchComponent
- Graphics3DReferenceVectorGeometryToolComponentCollection.remove(self, index: int) None #
Remove an element at the specified position from the collection.
- Graphics3DReferenceVectorGeometryToolComponentCollection.remove_all(self) None #
Remove all elements from the collection.
- Returns:
- Graphics3DReferenceVectorGeometryToolComponentCollection.remove_by_name(self, type: GeometricElementType, name: str) None #
Remove an element from the collection using the elementβs path. The method does not throw an exception if the element with the specified name is not in the collection.
- Graphics3DReferenceVectorGeometryToolComponentCollection.get_component_by_name(self, type: GeometricElementType, name: str) IGraphics3DReferenceAnalysisWorkbenchComponent #
Return an element with the specified name and type. The method throws an exception if the element with the specified name does not exist.
- Parameters:
type :
GeometricElementType
name :
str
- Returns:
IGraphics3DReferenceAnalysisWorkbenchComponent