IProject.GetModelByPath(string, string) method
Namespace: NextDesign.Core
Description
Gets the model of the specified relative path from the model with the identifier of the specified origin element. 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.
argument
Name | Type | Description |
---|---|---|
baseElementId | string | The model Id that is the base of the search null or an empty string cannot be specified. |
You cannot specify a relative path from the model obtained with | elementPath | string |
Return value
Exception
Name | Exception Class | Description |
---|---|---|
Invalid argument | ExtensionArgumentException | When null or empty string is specified for baseElementId When null or empty string is specified for elementPath When the model with the identifier of the base element specified by baseElementId cannot be found. If the model with the identifier of the base element specified by baseElementId is a temporary proxy |