Skip to main content

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

NameTypeDescription
baseElementIdstringThe base model ID for the search

You cannot specify null or an empty string.
Relative path from the model acquired byelementPathstring

Return value

Exceptions

NameException ClassDescription
Argument invalidExtensionArgumentExceptionWhen 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