IModelUnit Interface
Namespace: NextDesign.Core
Description
Access object for model unit information.
Belonging area
Name | Description |
---|---|
Workspace/Project | A group of APIs to access the application workspace and projects open in the application. |
Property
Name | Description |
---|---|
AbsolutePath | Absolute path of the physical file |
HasLoadError | Checks whether there is a load error for this unit. |
IsExternalUnit | Checks if this unit is an external unit. External units are added by reference and are managed outside the project folder. |
IsReadonly | Checks if this unit is a read-only unit. |
Loaded | Checks if the contents of this unit have been loaded into the project. |
Name | Unit name |
PhysicalFileExits | Checks if the physical file exists. |
ScmStatus | Configuration management status. Returns null if the project is not integrated with a configuration management system. |
TopElementId | Identifier 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 |
Type | Unit type - "Project" : Project unit - "Model" : Model unit - "Profile" : Profile unit - "Library" : Library - "IndexCache" : Index - "Unknown" : Unknown |
UnitPath | Unit 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. |