writeACS MethodStatic

Create a new AuxiliaryCoordinateSystem for the current AccuDraw viewport using the compass origin, orientation, and mode.

writeACS(acsName: string): Promise<AuxCoordSystemState | undefined>

@note When no name is specified, the view's current ACS is updated from AccuDraw. Caller can choose to create an EditCommand to insert/update as a named ACS element using the returned AuxCoordSystemState.

@returns AuxCoordSystemState or undefined if ACS could not be created.

@throws Error if resolving the ACS CodeSpec or loading ACS element properties fails.

Parameter Type Description
acsName string  

Returns - Promise<AuxCoordSystemState | undefined>

AuxCoordSystemState or undefined if ACS could not be created.

Defined in

Last Updated: 28 July, 2026