IModelDb.Models Class
The collection of models in an IModelDb.Models.IModelDb.
Methods
Name | Description | |
---|---|---|
createModel<T extends Model>(modelProps: ModelProps): T extends Model | Create a new model in memory. | |
deleteModel(ids: Id64Arg): void | Delete one or more existing models. | |
getModel<T extends Model>(modelId: Id64String): T extends Model | Get the Model with the specified identifier. | |
getModelProps<T extends ModelProps>(modelId: Id64String): T extends ModelProps | Get the ModelProps with the specified identifier. | |
getSubModel<T extends Model>(modeledElementId: Id64String | GuidString | Code): T extends Model | Get the sub-model of the specified Element. | |
insertModel(props: ModelProps): Id64String | Insert a new model. | |
tryGetModel<T extends Model>(modelId: Id64String): T extends Model | undefined | Get the Model with the specified identifier. | |
tryGetModelProps<T extends ModelProps>(modelId: Id64String): T extends ModelProps | undefined | Get the ModelProps with the specified identifier. | |
tryGetSubModel<T extends Model>(modeledElementId: Id64String | GuidString | Code): T extends Model | undefined | Get the sub-model of the specified Element. | |
updateModel(props: UpdateModelOptions): void | Update an existing model. |
Defined in
Last Updated: 08 January, 2020