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 in the specified model hierarchy path does not exist.

If there are multiple matching model hierarchy paths, the first model found is returned. In addition, the specified model hierarchy path can use the character string specified by ModelPath of IMode.

argument

NameTypeDescription
pathstringModel hierarchy path

You cannot specify null or an empty string.

Return value

Exception

NameException ClassDescription
Invalid argumentExtensionArgumentExceptionWhen null or empty string is specified for path