几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量

几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 (http://www.dimcax.com/hust/index.php)
-   DirectDWG (http://www.dimcax.com/hust/forumdisplay.php?f=89)
-   -   【转帖】setting Default Plotstyle Table (http://www.dimcax.com/hust/showthread.php?t=18555)

yang686526 2009-05-07 03:45 PM

【转帖】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::plotsettingsvalidator();
sincerely yours,
george udov


所有的时间均为北京时间。 现在的时间是 11:52 AM.