SpatialAnalysisToolConditionGroup#

class ansys.stk.core.analysis_workbench.SpatialAnalysisToolConditionGroup#

Access or create spatial conditions associated with a volume grid.

Overview#

remove

Remove a specified element.

contains

Search for a an element with a given name. Returns false if the specified element does not exist.

item

Return an element by name or at a specified position.

get_item_by_index

Retrieve an volume from the collection by index.

get_item_by_name

Retrieve volume from the collection by name.

context

Return a context object. The context can be used to find out which central body or STK object this instance is associated with.

count

Return a number of elements in the group.

factory

Return a factory object used to create spatial condition components.

_new_enum

Return a COM enumerator.

Import detail#

from ansys.stk.core.analysis_workbench import SpatialAnalysisToolConditionGroup

Property detail#

property SpatialAnalysisToolConditionGroup.context: IAnalysisWorkbenchComponentContext#

Return a context object. The context can be used to find out which central body or STK object this instance is associated with.

property SpatialAnalysisToolConditionGroup.count: int#

Return a number of elements in the group.

property SpatialAnalysisToolConditionGroup.factory: SpatialAnalysisToolConditionFactory#

Return a factory object used to create spatial condition components.

property SpatialAnalysisToolConditionGroup._new_enum: EnumeratorProxy#

Return a COM enumerator.

Method detail#

SpatialAnalysisToolConditionGroup.remove(self, event_name: str) None#

Remove a specified element.

Parameters:

event_name : str

Returns:

None

SpatialAnalysisToolConditionGroup.contains(self, name: str) bool#

Search for a an element with a given name. Returns false if the specified element does not exist.

Parameters:

name : str

Returns:

bool

SpatialAnalysisToolConditionGroup.item(self, index_or_name: Any) ISpatialAnalysisToolVolume#

Return an element by name or at a specified position.

Parameters:

index_or_name : Any

Returns:

ISpatialAnalysisToolVolume

SpatialAnalysisToolConditionGroup.get_item_by_index(self, index: int) ISpatialAnalysisToolVolume#

Retrieve an volume from the collection by index.

Parameters:

index : int

Returns:

ISpatialAnalysisToolVolume

SpatialAnalysisToolConditionGroup.get_item_by_name(self, name: str) ISpatialAnalysisToolVolume#

Retrieve volume from the collection by name.

Parameters:

name : str

Returns:

ISpatialAnalysisToolVolume