几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   -   【转帖】newbe question need accurate heigh (http://www.dimcax.com/hust/showthread.php?t=17325)

yang686526 2009-05-06 06:30 PM

【转帖】newbe question need accurate heigh
 
newbe question: need accurate height
newbe question: need accurate height
hi,
i'm new to dwg files, and only need to extract some simple data from them: basically, i need to get the (x, y, z) values of the outlines as they are displayed in cad software. working from the odreadex sample, i have been able to get the (x, y) outlines from the block table, but have not been able to get z. in the case of a polyline, it looks like z should be available, but it is either 0 or a constant for the entire polyline. in the case of a 2dpolyline, i can get an elevation, but it tends to be 0.
i have seen that there is a full 3d mesh available, but i have no idea how to get the z (height) value from all the (x, y) points i have. any help would be greatly appreciated.
thanks,
peter


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