Share

acdbAngToS

C++

template <size_t nBufLen> inline int acdbAngToS(
    double v, 
    int unit, 
    int prec, 
    wchar_t (& buf)[nBufLen]
);

File

acedads.h

Description

Deprecated. Formats an angle into a string.

The value to format should correspond to values allowed for the AutoCAD system variable AUNITS, which are described in acdbAngToF().

The current value of the AutoCAD dimensioning variable DIMZIN controls how acdbAngToS() writes leading or trailing zeros to str. See the AutoCAD User's Guide for possible values of DIMZIN.

On success returns RTNORM, otherwise returns an error code.

Parameters

Parameters Description
v Angle to be converted
unit Units into which the angle is formatted; if -1, uses the current value of AUNITS
prec Number of decimal places of precision to include in the string; if -1 uses the current value of AUPREC
buf Output string of the converted angle

Previous Declaration

AutoCAD 2024 and earlier

template <size_t nBufLen> inline int acdbAngToS(ads_real v, int unit, int prec, wchar_t (& buf)[nBufLen]);

Use Instead

ACCORE_PORT int acdbAngToS(double val, AcString & sOut, int unit = -1, int prec = -1);

History

AutoCAD 2025

v argument changed from ads_real to double.

Was this information helpful?