The database has three linetype scale settings:
- A linetype scale setting for the current entity, stored in the CELTSCALE system variable.
- A linetype scale setting for the current drawing, stored in the LTSCALE system variable.
- A flag that indicates whether to apply linetype scaling to the space the entity resides in or to the entity's appearance in paper space. This setting is stored in the PSLTSCALE system variable.
The global LTSCALE and PSLTSCALE settings are used when a drawing is regenerated (see Entities). Use the following functions to set and inquire these values:
Acad::ErrorStatus AcDbDatabase::setLtscale(double scale); double AcDbDatabase::ltScale() const; Acad::ErrorStatus AcDbDatabase::setCeltscale(double scale); double AcDbDatabase::celtscale() const; Acad::ErrorStatus AcDbDatabase::setPsltscale(bool scale) bool AcDbDatabase::psltscale() const;