查看单个帖子
旧 2009-05-06, 10:48 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】problem in saving dimension in a z-x plane

problem in saving dimension in a z-x plane
problem in saving dimension in a z-x plane
the code is like this
.......................
-------------------------
pdimension->setdimensionstyle(dimstyleid);
pdimension->setxline1point(10, 10, 20);
pdimension->setxline2point(20, 40, 20);
pdimension->setdimlinepoint(20, 40, 20);
pdimension->usedefaulttextposition();
---------------------------------------
each point set above is having z-coordinate = 20 but
in saved dwg file z-cordinate of xline1 and xline2 is coming out to be zero(0). (i.e. dimension is in x-y plane)
can anyone assist me in solving the problem?
thanks & regards!
if you need a dimension in plane parallel to xy but with non-zero z use setelevation() method.
for dimension in plane other than parallel to xy you also need to use setnormal().
sergey slezkin
thanks sergey its working properly now.
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)