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

几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 (http://www.dimcax.com/hust/index.php)
-   DirectDWG (http://www.dimcax.com/hust/forumdisplay.php?f=89)
-   -   【转帖】problem in saving dimension in a z-x plane (http://www.dimcax.com/hust/showthread.php?t=18038)

yang686526 2009-05-06 10:48 PM

【转帖】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.


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