几何尺寸与公差论坛------致力于产品几何量公差标准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 向着好的方向发展
默认 【转帖】dimensions wrong for some files with 2.7.1

dimensions wrong for some files with 2.7.1
dimensions wrong for some files with 2.7.1
for 3 of the dwf input files in our test suite, the dimensions reported by version 2.7.1 are reversed from the dimensions reported by previous versions of the libraries. the dimensions reported by the previous versions seem to be correct because they match the sheet size reported by audodesk design review.
we determine the dimensions as follows:
playout->getgeomextents(extents);
extmin = extents.minpoint();
extmax = extents.maxpoint();
pcadlayouts->width = extmax.x - extmin.x;
pcadlayouts->height = extmax.y - extmin.y;
the dimensions as reported by the previous versions of the library and version 2.7.1 are as follows
file name layout dimensions(library v2.6.1) dimensions(library v2.7.1)
blocksandtables d-size plot 36x24 24x36
asadvertisignsign model 44x34 34x44
canadiantireisometricview model 44x34 34x44
the files are attached.
attached files
hello, has anyone had a chance to look at this yet?
there is also paper orientation flag in the imported layout.
see oddbplotsettings:lotrotation()
some papers are not present in both portrait and landscape modes for dwf device.
vladimir
i am sorry but i do not understand your response.
i have changed nothing in my application except for using release 2.7.1 and i get reversed dimensions for the specified drawings. has something changed in the library that would cause this to happen? furthermore, it appears that the dimensions reported by the previous release were correct, so if something has changed, it appears to be an erroneous change.
are you suggesting that in order to determine the correct dimensions, we now have to do something with oddbplotsettings:lotrotation()? could you please explain exactly how i should use this and what i need to add to my application.
thank you.
when exporting layout to dwf, exporting application also takes into account layout plot rotation flag, by rotating paper, because that flag has no correspondence in dwf.
in some cases we cannot correctly restore rotation flag during import, because in the list of dwf papers (there is a list of predefined dwf papers) - both rotated an non-rotated papers are present. if, howewer, there is no corresponding paper in the list, but we can obtain one by rotating one of the available - it means that in the original dwg, plot rotation flag was not 0.
when that was not handled - incorrect paper might be selected for the imported file.
you should just take into account layout plotrotation() value after import.
(oddblayout inherits from oddbplotsettings)
vladimir
last edited by vkalinin; 24th february 2009 at 11:06 amfff">.
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)
回复


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

高级搜索
显示模式

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

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

相似的主题
主题 主题发起者 论坛 回复 最后发表
【转帖】proccessing multiple files with api yang686526 SolidWorks二次开发 0 2009-04-13 01:38 PM
【转帖】c++中动态内存分配引发问题的解决方案(转) huangyhg vc编程 0 2008-10-27 11:37 AM


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


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