查看单个帖子
旧 2009-05-06, 10:03 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】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);
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)