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


返回   几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 » 仿射空间:CAX软件开发(三)二次开发与程序设计 » CAD二次开发 » AutoCAD二次开发 » DirectDWG
用户名
密码
注册 帮助 会员 日历 银行 搜索 今日新帖 标记论坛为已读


回复
 
主题工具 搜索本主题 显示模式
旧 2009-05-04, 07:43 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】dimfit and r14 files

dimfit and r14 files
dimfit and r14 files
hello,
reading "dimatfit" and "dimtmove" variables work fine for autocad 2000 and 20004 files, but it doesn't work for r14 files.
in r14, there is no "dimatfit" and "dimtmove", but instead of these two variables there is only "dimfit" variable.
while i could not found a method, which reads "dimfit" variable, i suppose, that it should be converted automatically into "dimatfit" and "dimtmove".
when i read "dimatfit" and "dimtmove" variables from r14 files, i get always their default values:
dimatfit = 3
dimtmove = 0
how can i get the correct values of "dimatfit" and "dimtmove" variables from r14 files?
regards, tomaz.
while loading r14 files dd realy converts dimfit to dimatfit and dimtmove:
dimfit: 0, 1, 2, 3, 4, 5, others
dimatfit: 0, 1, 2, 3, 3, 3, 3
dimtmove: 0, 0, 0, 0, 1, 2, 0
oddmutils namespace declared in dbdimstyletablerecord.h
contains conversion methods between old and new values.
oddbdatabase class also contains dimfit() and setdimfit() methods.
sergey slezkin
hello sergey,
thanks for really quick response.
i found out, that dwgdirect library really converts dimfit into proper dimatfit and dimtmove variable, if dimfit is set in dimension style. but, if dimfit is changed in dimension overrides, it is not taken into account.
my code is like this:
oddbdimstyletablerecord dimstyle;
pdiment->getdimstyledata(&dimstyle);
cout << dimstyle.dimatfit() << endl;
cout << dimstyle.dimtmove() << endl;
as i understand dwgdirect reference, getdimstyledata fills the dimstyle class with dimension style and overrides. so, it should return dimstyle data used for this dimension.
i am sending you the file, where variable dimfit is set to 3 in dimension style, and to 1 in dimension overrides.
dwgdirect library returns
dimatfit = 3
dimtmove = 0
(apparently it does not convert dimfit from dimension overrides.)
is this a bug in dd, or should i read overrides in a different way?
regards, tomaz
attached files (12.0 kb, 6 views)

this is dd bug.
sergey slezkin
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)
回复


主题工具 搜索本主题
搜索本主题:

高级搜索
显示模式

发帖规则
不可以发表新主题
不可以回复主题
不可以上传附件
不可以编辑您的帖子

vB 代码开启
[IMG]代码开启
HTML代码关闭

相似的主题
主题 主题发起者 论坛 回复 最后发表
r14支持滚轮缩放程序 yang686526 ObjectARX(AutoLISP) 0 2009-04-25 08:57 PM
【转帖】如何在r14中用vba开发 yang686526 ObjectARX(C++) 0 2009-04-16 11:10 PM
【转帖】[求助]:如何在r14下用vc读取dwgname环境变量的值? yang686526 ObjectARX(C++) 0 2009-04-16 03:45 PM
【转帖】[求助]r14版的arx中无acedgetvar函数 yang686526 ObjectARX(C++) 0 2009-04-16 02:25 PM
【转帖】[求助]r14下的arx能否操作选择集? yang686526 ObjectARX(C++) 0 2009-04-16 02:24 PM


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


于2004年创办,几何尺寸与公差论坛"致力于产品几何量公差标准GD&T | GPS研究/CAD设计/CAM加工/CMM测量"。免责声明:论坛严禁发布色情反动言论及有关违反国家法律法规内容!情节严重者提供其IP,并配合相关部门进行严厉查处,若內容有涉及侵权,请立即联系我们QQ:44671734。注:此论坛须管理员验证方可发帖。
沪ICP备06057009号-2
更多