IProject.GetModelByPath(string,string) method
Namespace: NextDesign.Core
Description
Gets the model at the specified relative path from the model with the specified base element identifier.
Returns null if the model for the specified model hierarchy path does not exist.
Note that if there are multiple matching model hierarchy paths, the first model found will be returned.
argument
Name | Type | Description |
---|---|---|
baseElementId | string | The base model ID for the search You cannot specify null or an empty string. |
Relative path from the model acquired by | elementPath | string |
Return value
Exceptions
Name | Exception Class | Description |
---|---|---|
Argument invalid | ExtensionArgumentException | When null or an empty string is specified for baseElementId When null or an empty string is specified for elementPath When the model with the base element identifier specified by baseElementId is not found If the model with the identifier of the base element specified by baseElementId is a temporary proxy |