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

yang686526 2009-05-06 10:26 PM

【转帖】print to scale
 
print to scale
print to scale
hi,
i'm trying to print to scale with version 1.09, using mfc. i use
setviewheight() and setviewcenter() methods from oddbviewportptr to change the size and position of my output, but i'm finding it hard to understand the values needed to scale the output properly. i follow these changes with a call to the resetdevice() method. they work great when i change the values for display purposes, but the values don't seem to match what i would think makes sense for printing.
i'm working with the following values:
portrait mode
8.5" x 11" paper (7.94" x 10.38" with margins) the drawing has extents of w = 8.4 and h = 6.4.
plot scale: 1" = 1 unit
to get this drawing to print at a 1 inch = 1 drawing unit using the extents plot area, i need to enter a value of 4.6 for the setviewheight() method. i haven't been able to figure out why this value works. is using setviewheight() and resetdevice() the best way to do this or am i just not understanding the value correctly?
thanks for any help you can give me.
john


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