Skip to main content

Mechanical scripting interface 2026 R1

`IDataModelObject`

Last update: 09.03.2026

class Ansys.Mechanical.DataModel.Interfaces.IDataModelObject

Bases: object

Overview

Methods

Name Description
GetPath Gets the path of the object.

Properties

Name Description
DataModelObjectCategory Gets the name of the current DataModelObject's category.
Name Gets the name of the object.
ObjectId Gets the internal id of the object.
ObjectTags Gets an IEnumerable object of the tags that 'this' is a part of.
Parent Gets the parent object.

Property detail

property IDataModelObject.DataModelObjectCategory : Ansys.Mechanical.DataModel.Enums.DataModelObjectCategory | None

Gets the name of the current DataModelObject's category.

property IDataModelObject.Name : str | None

Gets the name of the object.

property IDataModelObject.ObjectId : int | None

Gets the internal id of the object.

property IDataModelObject.ObjectTags : Iterable[Ansys.Mechanical.DataModel.Interfaces.IObjectTag] | None

Gets an IEnumerable object of the tags that 'this' is a part of.

property IDataModelObject.Parent : Ansys.Mechanical.DataModel.Interfaces.IDataModelObject | None

Gets the parent object.

Method detail

IDataModelObject.GetPath() → str

Gets the path of the object.

Connect with Ansys