查看单个帖子
旧 2009-05-07, 03:45 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】setting Default Plotstyle Table

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
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)