Skip to main content

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

NameTypeDescription
baseElementIdstringThe 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 withelementPathstring

Return value

Exception

NameException ClassDescription
Invalid argumentExtensionArgumentExceptionWhen 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