IMechanicalDataModel#

class ansys.mechanical.stubs.v242.Ansys.ACT.Interfaces.Mechanical.IMechanicalDataModel#

Bases: object

Defines the data model of the Mechanical application.

Overview#

CurrentUnitFromQuantityName

Returns the current unit from a quantity name.

GetUserObjectById

Gets the user object based on the application id.

ObjectTags

Gets the ObjectTags object for the Data Model, which represents the current list of tags visable in the User Interface.

Project

Gets the project object. Main object of the tree of Mechanical.

Tree

Gets the tree of Mechanical.

Property detail#

property IMechanicalDataModel.ObjectTags: Ansys.Mechanical.Application.ObjectTags | None#

Gets the ObjectTags object for the Data Model, which represents the current list of tags visable in the User Interface.

property IMechanicalDataModel.Project: Ansys.ACT.Automation.Mechanical.Project | None#

Gets the project object. Main object of the tree of Mechanical.

property IMechanicalDataModel.Tree: Ansys.ACT.Automation.Mechanical.Tree | None#

Gets the tree of Mechanical.

Method detail#

IMechanicalDataModel.CurrentUnitFromQuantityName(quantityName: str) str#

Returns the current unit from a quantity name.

IMechanicalDataModel.GetUserObjectById(id: int) Ansys.ACT.Interfaces.UserObject.IUserObject#

Gets the user object based on the application id.