IWorkspace.CleanUpProject Method
Namespace: NextDesign.Desktop
Description
Cleans up the specified project.
If no project is specified, it cleans up the currently open project in the application.
Project cleanup is performed only on units within the specified project that meet the following conditions:
- Editable (not readonly)
- Not referenced
- Loaded
Note that if the target project is not saved, this method call will fail.
Argument
| Name | Type | Description |
|---|---|---|
| project | IProject | Project If null is specified, it cleans up the currently open project in the application. (Nothing happens if there is no current project) |
Return value
- void
Exception
| Name | Exception Class | Description |
|---|---|---|
| Invalid Operation | ExtensionInvalidOperationException | If the target project is unsaved If the latest model file is not loaded |
Annotation
If you want to perform cleanup on unloaded units, make sure the units are loaded beforehand.
Units can be loaded using the LoadModelUnits() method.