几何尺寸与公差论坛------致力于产品几何量公差标准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, 03:12 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】a problem of ordinate dimension when exploding

a problem of ordinate dimension when exploding
a problem of ordinate dimension when exploding
hi,
i have trouble exporting the ordinate dimensions with exploding them in dd1.11 update 1. in my application, when exploding, we only explode the block which is refered by a block reference in modelspace, but we will not explode the entities except references in the block recursively.
here have two attachment files: exploded.dwg and unexploded.dwg. both of this two files are created by my application, and the exploded.dwg is the "explode " case. opening both of them in autocad2004, you can see that all the ordinate dimensions which look like a stagger in unexploded.dwg are different from those in exploded.dwg. and if you explode the unexploded.dwg file in autocad2004, there will no changes with these dimensions. what does cause this difference between dd and autocad when exploding?
regards
attached files

if you explode unexploded.dwg in autocad2005, there will a little change.
the major change between exploded.dwg and unexploded.dwg (that you noticed) is because of bug of dd's recomputedimblock functionality, that is already fixed in 1.12 pre-release code. upcoming 1.12 release will contain fix.
sincerely yours,
george udov
quote:
originally posted by george udov
if you explode unexploded.dwg in autocad2005, there will a little change.
the major change between exploded.dwg and unexploded.dwg (that you noticed) is because of bug of dd's recomputedimblock functionality, that is already fixed in 1.12 pre-release code. upcoming 1.12 release will contain fix.
george,
any idea when the dd 1.12 will be released? and how can i get ahold of the 1.12 pre-release code?
thanks.
-bill
another case when exploding
quote:
originally posted by george udov
if you explode unexploded.dwg in autocad2005, there will a little change.
the major change between exploded.dwg and unexploded.dwg (that you noticed) is because of bug of dd's recomputedimblock functionality, that is already fixed in 1.12 pre-release code. upcoming 1.12 release will contain fix.
hi george,
thanks for your reply.
here i have an another case which has exploding error both in autocad2004 and dd1.11.01. the attachment two files are the cases. both of this two files are created by my application. the unexplode1.dwg is the unexploded one, and the exploded1.dwg is exploded one in dd1.11.01. firstly, comparing the looks of the ordinate dimension in this two files in autocad2004, you can see that they are mostly different. then if you explode the unexplode1.dwg in auto2004, you can see the look of the ordinate dimension changes.
my code is as follows:
oddbordinatedimensionptr porddim =
oddbordinatedimension::createobject();
porddim->setdimblockid( dimblockid );
porddim->setorigin(odgepoint3d(planept0[0],planept0[1],planept0[2])); // dxf10
porddim->setleaderendpoint(odgepoint3d(extline1end[0],extline1end[1],extline1end[2])); // dxf14
porddim->setdefiningpoint( odgepoint3d( extline1st[0],extline1st[1],extline1st[2] )); // dxf13
// rotation angle
// text rotation
// get textbox orientation
//get the angle of rotation
porddim->sethorizontalrotation( -dextrot );
switch(textorientation)
{
case tridimorienthorizontal: porddim->settextrotation( 0 ); break;
case tridimorientvertical: porddim->settextrotation( pi/2.0 );
break;
case tridimorientparallel: porddim->settextrotation( 0 );
break;
default: porddim->settextrotation( 0 ); break;
}
porddim->setdimensiontext( textstr.getbuffer(textstr.getlength()
+1) );
// set initial location of text ...
porddim->usesettextposition( );
porddim->settextposition( odgepoint3d(textpt[0],textpt[1],textpt
[2]) );
porddim->settextattachment(oddbmtext::kmiddlecenter );
if( !pdimstylerec.isnull() )
porddim->setdimensionstyle( pdimstylerec->objectid() );
porddim->setdimtmove( 0 );
porddim->setdimtofl( true );
porddim->setdimsd1( false );
porddim->setdimsd2( false );
porddim->setdimtoh( true );
porddim->setdimtix( false );
porddim->setdimatfit( 0 );
porddim->setlayer( layerid );
porddim->recordgraphicsmodified(false);
pbtrm->appendoddbentity( porddim );

are some errors in these code? what does cause the change when exploding the unexploded.dwg in my first post in autocad2005?
attached files (8.2 kb, 3 views)
(7.7 kb, 6 views)


hi enigma,
unexploded1.dwg is exploded in 1.12 better then in 1.11.
the common problem (of both dd and your recomputing ordinate dimension block routine) is slanted line. i was not able to fully understand how autocad computes it (maybe autocad contains a bug here). so slanted line in dd and in your files is approximate. this cause difference between original view of unexploded1.dwg and unexploded1.dwg, exploded by autocad. also this fact cause a little difference between original view of unexploded.dwg and unexploded.dwg, exploded by autocad.
sincerely yours,
george udov
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)
回复


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

高级搜索
显示模式

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

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

相似的主题
主题 主题发起者 论坛 回复 最后发表
【转帖】a ordinate dimension problem when exploding yang686526 DirectDWG 0 2009-05-04 03:08 PM
【转帖】a dimension error yang686526 DirectDWG 0 2009-05-04 03:05 PM
【转帖】a diameteric dimension problem when exploding yang686526 DirectDWG 0 2009-05-04 03:05 PM
【转帖】ordinate dimensions to define gdt datum structure yang686526 American standards 0 2009-04-29 09:04 PM


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


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