几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   -   【转帖】plot problems (http://www.dimcax.com/hust/showthread.php?t=17911)

yang686526 2009-05-06 10:03 PM

【转帖】plot problems
 
plot problems
plot problems
hi,
using opendwg toolkit library, when a file was saved and opened in acad there was many options of '.ctb' files for plot style table. now, using dwgdirect 1.10 updated, appears only '.stb' files.
how can i save a file using dwgdirect and have '.ctb' files for plot style table in acad?
regards,
regina.
problem solved
hi,
problem was already solved by calling the function 'oddbsetpstylemode'. if '0' is passed as parameter generates .stb files. if '1' is passed as parameter generates .ctb files. (see code bellow)
regards,
regina.
code:
// indicates whether the current drawing is in a color-dependent or named plot style mode:
// 0 = uses color-dependent plot style tables in the current drawing (.stb files)
// 1 = uses named plot style tables in the current drawing (.ctb files)
oddbsetpstylemode(*database.get(), 1);


所有的时间均为北京时间。 现在的时间是 03:08 PM.