Skip to main content

IModelUnit interface

Namespace: NextDesign.Core

Description

Access object for model unit information.

Affiliation area

NameDescription
Workspace projectA set of APIs to access the workspace of the application and the projects opened in the application.

Property

NameDescription
AbsolutePathabsolute path of physical file
HasLoadErrorChecks for loading errors in this unit.
IsExternalUnitChecks if this unit is an external unit.
External units are added by reference registration and managed outside the project folder.
IsReadonlyChecks if this unit is a read-only unit.
LoadedChecks if the contents of this unit have been loaded into the project.
Nameunit name
PhysicalFileExitsChecks if a physical file exists.
ScmStatusConfiguration management status.
Returns null if the project is not linked to a configuration management system.
TopElementIdThe identifier of the base element in this unit.
Returns null if there is no base element.

Usually, the base element is the following element depending on the unit type.
- "Project" : Project
- "Model" : Model divided into units
- "Profile" : Profile
- Other than above : None
TypeUnit type
- "Project" : Project unit
- "Model" : Model unit
/>- "Profile" : profile unit
- "Library" : library
- "IndexCache" : index
- "Unknown" : unknown
UnitPathUnit path.
Usually, the path is relative to the project folder.
Returns the absolute path for units outside the project folder added by reference registration.