Skip to main content

IModelUnit Interface

Namespace: NextDesign.Core

Description

Access object for model unit information.

Belonging area

NameDescription
Workspace/ProjectA group of APIs to access the application workspace and projects open in the application.

Property

NameDescription
AbsolutePathAbsolute path of the physical file
HasLoadErrorChecks whether there is a load error for this unit.
IsExternalUnitChecks if this unit is an external unit.
External units are added by reference and are 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 the physical file exists.
ScmStatusConfiguration management status.
Returns null if the project is not integrated with a configuration management system.
TopElementIdIdentifier of the base element in this unit.
If there is no base element, null is returned.

Usually, the base element is one of the following elements depending on the unit type.
- "Project" : Project
- "Model" : Model divided into units
- "Profile" : Profile
- Other than the above : None
TypeUnit type
- "Project" : Project unit
- "Model" : Model unit
- "Profile" : Profile unit
- "Library" : Library
- "IndexCache" : Index
- "Unknown" : Unknown
UnitPathUnit path.
Usually a relative path from the project folder.
For units outside the project folder that were added by reference registration, an absolute path is returned.