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

yang686526 2009-05-05 11:58 AM

【转帖】hatch vectorization - viewport - paperspace
 
hatch vectorization - viewport - paperspace
hatch vectorization - viewport - paperspace
hi.
i have problem with getting hatch coordinate in layout( paperspace or viewport)
i use code like that.
in method
code:
shellfaceout( odint32 facelistsize, const odint32* pfacelist, const odgevector3d* pnormal )
{
oddbobjectid hatchid = getobjectid();
oddbobjectptr pobject = hatchid.safeopenobject( oddb::kforread );
if( ((oddbhatchptr)pobject)->issolidfill() )
{
//iterate to outline ,and get coordinate
//transform ocs to wcs
//how to get current viewport for current drawable ?
//can i determinate that current drawable is on viewport ?
}
}summary ,how can i get viewport coordinate for current drawable ?,or how can i get which viewport is associative to current drawable ,when i layout vectorize?
if anyone know ,please reply for my message.thanks
last edited by bigos; 14th december 2007 at 01:39 amfff">.
there is giviewport() member of odgibasevectorizer. is that enough?
what are you trying to do anyway?
vladimir


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