IProject.GetModelByPath(string) method
Namespace: NextDesign.Core
Description
Gets the model for the specified model hierarchy path from this project. Returns null if the model in the specified model hierarchy path does not exist.
If there are multiple matching model hierarchy paths, the first model found is returned. In addition, the specified model hierarchy path can use the character string specified by ModelPath of IMode.
argument
Name | Type | Description |
---|---|---|
path | string | Model hierarchy path You cannot specify null or an empty string. |
Return value
Exception
Name | Exception Class | Description |
---|---|---|
Invalid argument | ExtensionArgumentException | When null or empty string is specified for path |