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

yang686526 2009-05-07 06:34 PM

【转帖】viewport Transformation
 
viewport transformation
viewport transformation
hi,
i want to get coordinates of all vertices of entities currently drawed (eg. in current layout). when current layout is modelspace, and entity belongs directly to modelspace, i simply get it's coordinates and that's all. when entity is in block reference, i use block reference transformation.
but what when i have a layout, with specified viewport? when i iterate through entities, i get some number of viewports, i use the one which is oddblayout::activeviewportid (is this correct?), but oddbviewport doesn't provide any method like transform() to get it's relationship to modelspace.
i tried to use method presented in
the correct link:
will our vectorization functionality meet your needs (see odvectorizeex)? this method would be simpler than what you are currently doing.


所有的时间均为北京时间。 现在的时间是 02:23 AM.