UnitPreferencesDimensionCollection#
- class ansys.stk.core.stkutil.UnitPreferencesDimensionCollection#
Object that contains a collection of dimensions.
Overview#
Return an UnitPreferencesDimension given a Dimension name or an index. |
|
Return the Current unit for a Dimension. |
|
Return the Current Unit for a Dimension. |
|
Reset the unitpreferences to the Default units. |
|
Retrieve a dimension from the collection by index. |
|
Retrieve a dimension from the collection by name. |
Return the number of items in the collection. |
|
The MissionElapsedTime. |
|
The JulianDateOffset. |
|
Return a collection of UnitPreferencesDimension. |
Import detail#
from ansys.stk.core.stkutil import UnitPreferencesDimensionCollection
Property detail#
- property UnitPreferencesDimensionCollection.count: int#
Return the number of items in the collection.
- property UnitPreferencesDimensionCollection._new_enum: EnumeratorProxy#
Return a collection of UnitPreferencesDimension.
Method detail#
- UnitPreferencesDimensionCollection.item(self, index_or_name: Any) UnitPreferencesDimension #
Return an UnitPreferencesDimension given a Dimension name or an index.
- Parameters:
index_or_name :
Any
- Returns:
UnitPreferencesDimension
- UnitPreferencesDimensionCollection.set_current_unit(self, dimension: str, unit_abbrv: str) None #
Return the Current unit for a Dimension.
- UnitPreferencesDimensionCollection.get_current_unit_abbrv(self, index_or_dim_name: Any) str #
Return the Current Unit for a Dimension.
- UnitPreferencesDimensionCollection.reset_units(self) None #
Reset the unitpreferences to the Default units.
- Returns:
- UnitPreferencesDimensionCollection.get_item_by_index(self, index: int) UnitPreferencesDimension #
Retrieve a dimension from the collection by index.
- Parameters:
index :
int
- Returns:
UnitPreferencesDimension
- UnitPreferencesDimensionCollection.get_item_by_name(self, name: str) UnitPreferencesDimension #
Retrieve a dimension from the collection by name.
- Parameters:
name :
str
- Returns:
UnitPreferencesDimension