API Reference > imodeljs-backend > Models > SpatialLocationModel > insert insert MethodStatic Insert a SpatialLocationPartition and a SpatialLocationModel that sub-models it. insert(iModelDb: IModelDb, parentSubjectId: Id64String, name: string, isPlanProjection?: false | true): Id64String throws IModelError if there is an insert problem. Parameter Type Description iModelDb IModelDb Insert into this iModel parentSubjectId Id64String The SpatialLocationPartition will be inserted as a child of this Subject element. name string The name of the SpatialLocationPartition that the new SpatialLocationModel will sub-model. isPlanProjection false | true Optional value (default is false) that indicates if the contents of this model are expected to be in an XY plane. Returns - Id64String The Id of the newly inserted SpatialLocationPartition and SpatialLocationModel (same value). Defined in core/backend/src/Model.ts Line 292 Last Updated: 13 June, 2024