API Reference > System Variables for .dwg files > System Variables D > DDPLOTSTYLEPATHS
DDPLOTSTYLEPATHS

Type Operation system variable
Initial value Null
Read-Only No

DDPLOTSTYLEPATHS is not a database variable but an operation system variable (like PATH for the Microsoft® Windows® operating system).

DDPLOTSTYLEPATHS stores paths to plot style tables stored in .ctb and .stb files. The PlotSettingsValidator.tx module iterates the directories from the DDPLOTSTYLEPATHS system variable and generates a list of available plot styles. This list can be accessed by the following code:


OdDbPlotSettingsValidatorPtr m_pValidator = pDb->appServices()->plotSettingsValidator();
OdArray<const OdChar *> PSSlist;
m_pValidator->plotStyleSheetList(PSSlist);

Note that the PSSlist array includes a list of file names but not the full path. Implement the findFile() method of your application services to return the full path for each file in this list. The method's default implementation doesn't search in the directories specified in DDPLOTSTYLEPATHS.

Access Methods

You can access the DDPLOTSTYLEPATHS variable using getEnvVar() and setEnvVar() of your application services derived from OdRxSystemServices or OdDbBaseHostAppServices:


virtual OdResult getEnvVar(const OdString &varName, OdString &value);

virtual OdResult setEnvVar(const OdString &varName, const OdString &newValue);
Copyright © 2002 – 2021. Open Design Alliance. All rights reserved.