Skip to main content

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 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.
Also, the specified model hierarchy path can use the character string specified by ModelPath of IModel.

argument

NameTypeDescription
pathstringModel hierarchy path

You cannot specify null or an empty string.

Return value

Exceptions

NameException ClassDescription
Invalid argumentExtensionArgumentExceptionIf null or an empty string is specified for path