createNew MethodStatic

Create a new AuxCoordSystemState.

createNew(_acsName: string, iModel: IModelConnection): AuxCoordSystemState

@note Inserting a new named ACS element requires creating a CodeProps for the type of view and the view's definition model. This method doesn't have the information to do this so it creates an empty code.

@example

const codeSpecName = vp.view.isSpatialView() ? BisCodeSpec.auxCoordSystemSpatial : (vp.view.is3d() ? BisCodeSpec.auxCoordSystem3d : BisCodeSpec.auxCoordSystem2d); const codeSpec = await vp.iModel.codeSpecs.getByName(codeSpecName); const code = new Code({ spec: codeSpec.id, scope: vp.view.model, value: acsName });
Parameter Type Description
_acsName string unused, this method creates an empty code as it lacks sufficient information to do otherwise.
iModel IModelConnection the iModel for which the ACS applies

Returns - AuxCoordSystemState

Defined in

Last Updated: 03 August, 2026