setting default plotstyle table
setting default plotstyle table
hi,
does anybody know how to assign default plotstyle table for a file?
there is function: oddbsetpstylemode(oddbdatabase& db, bool psmode)
but it can only switch mode beetwen ctb and stb. i can't find similar responsible for setting concrete plot style file for a drawing.
can anyone help me?
regards, michal.
michal dus
software engineer
poland
use function oddbplotsettingsvalidator::setcurrentstylesheet(od dbplotsettings* pplotset, const char* stylesheetname).
class oddbplotsettings is parent of oddblayout. so as first parameter you should pass the pointer to layout whose plotstyle table file name you want to change.
oddbplotsettingsvalidator can be obtained through oddbhostappservices:

lotsettingsvalidator();
sincerely yours,
george udov