MTOGraphics3DModelArticulation#

class ansys.stk.core.stkobjects.MTOGraphics3DModelArticulation#

Class defining MTO model articulations.

Overview#

get_transformation_value

Get the Transformation Value given the LOD (level of detail), articulation name and the transformation name.

set_transformation_value

Set the Transformation Value given the LOD and articulation name.

get_available_articulations

Get the available articulations.

get_available_transformations

Get the available transformations.

enable_default_save

Save the articulation value as the default for all future sessions using this model. The articulation value is saved with the object and not with the model or articulation files.

level_of_detail_count

Specify the level of detail (LOD) for defining articulations, where 0 is the finest level of detail and 1 is the coarsest model.

read_articulation_file_on_load

Read the articulation file when MTO object is loaded.

save_articulation_file_on_save

Save the articulations to the articulation file when MTO object is saved.

Import detail#

from ansys.stk.core.stkobjects import MTOGraphics3DModelArticulation

Property detail#

property MTOGraphics3DModelArticulation.enable_default_save: bool#

Save the articulation value as the default for all future sessions using this model. The articulation value is saved with the object and not with the model or articulation files.

property MTOGraphics3DModelArticulation.level_of_detail_count: int#

Specify the level of detail (LOD) for defining articulations, where 0 is the finest level of detail and 1 is the coarsest model.

property MTOGraphics3DModelArticulation.read_articulation_file_on_load: bool#

Read the articulation file when MTO object is loaded.

property MTOGraphics3DModelArticulation.save_articulation_file_on_save: bool#

Save the articulations to the articulation file when MTO object is saved.

Method detail#

MTOGraphics3DModelArticulation.get_transformation_value(self, level_of_detail: int, articulation: str, trans: str) float#

Get the Transformation Value given the LOD (level of detail), articulation name and the transformation name.

Parameters:

level_of_detail : int

articulation : str

trans : str

Returns:

float

MTOGraphics3DModelArticulation.set_transformation_value(self, level_of_detail: int, articulation: str, trans: str, transformation_value: float) None#

Set the Transformation Value given the LOD and articulation name.

Parameters:

level_of_detail : int

articulation : str

trans : str

transformation_value : float

Returns:

None

MTOGraphics3DModelArticulation.get_available_articulations(self, level_of_detail: int) list#

Get the available articulations.

Parameters:

level_of_detail : int

Returns:

list

MTOGraphics3DModelArticulation.get_available_transformations(self, level_of_detail: int, artic_name: str) Graphics3DModelTransformationCollection#

Get the available transformations.

Parameters:

level_of_detail : int

artic_name : str

Returns:

Graphics3DModelTransformationCollection