insertWithCamera MethodStatic

Insert an SpatialViewDefinition with the camera turned on.

insertWithCamera(iModelDb: IModelDb, definitionModelId: string, name: string, modelSelectorId: string, categorySelectorId: string, displayStyleId: string, range: Range3d, standardView: StandardViewIndexStandardViewIndex.Iso, cameraAngle: numberAngle.piOver2Radians): string

@see createWithCamera for details.

@returns The Id of the newly inserted SpatialViewDefinition element

@throws IModelError if there is an insert problem.

Parameter Type Description
iModelDb IModelDb  
definitionModelId string  
name string  
modelSelectorId string  
categorySelectorId string  
displayStyleId string  
range Range3d  
standardView StandardViewIndex  
cameraAngle number  

Returns - string

The Id of the newly inserted SpatialViewDefinition element

Defined in

Last Updated: 17 December, 2024