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

yang686526 2009-05-04 03:09 PM

【转帖】a problem about model and layou
 
a problem about model and layout
a problem about model and layout
hi, i am a beginner. i am developing a program that uses dwgdirect1.12.04 to dump the dwg file. there is a dwg file which have three layout: model, layout1 and layout2, and have many entities reside in model. some of these entities are displayed in layout1 and layout2. when my program open such a file, it prompts user to make a choice among model, layout1 and layout2, and then dump and display the choied layout.
the problem is that i don't konw how to acquire the information(such as position, scale and so on) of these entities that reside in model, but are displayed in layout1 or layout2.
model space entities which you see in paper layouts (layout1 and layout2) are dispayed via viewport (oddbviewport) entities in paper space.
oddbviewport has methods to access information like view target, view direction, width, height etc.
sergey slezkin
thanks, i'll try it!


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