tryGetModelProps Method

Get the ModelProps with the specified identifier.

tryGetModelProps<T extends ModelProps>(modelId: Id64String): T extends ModelProps | undefined

throws IModelError if the model cannot be loaded.

note Useful for cases when a model may or may not exist and throwing an Error would be overkill.

see IModelDb.Models.getModelProps

Parameter Type Description
modelId Id64String The Model identifier.

Returns - The ModelProps or undefined if the model is not found.

Defined in

Last Updated: 08 January, 2020