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

yang686526 2009-05-07 04:32 PM

【转帖】svg Problem
 
svg problem
svg problem
hi,
if i try to convert the attached dwg file to svg, using the example application, the svg result does not look like expected (see test.svg) i think there is some problem with the viewbox or coordinate system. is there any way to adjust the view box to my dwg model? the same dwg file converted with opendwg works fine, but with dwgdirect 1.12 i don't get the complete model. i tried changing the onsize-parameters, but without any success.
thanks for any hint.
attached files
svgexport does not interact with display, it exports current viewport of current layout in database.
zooming/ panning in display window does not affect database. to set overall extents to be current in db you may call "edit/zoom extents" menu command in odamfcapp. then all the model will be exported.
see \examples\win\odamfcapp\odamfcappdoc.cpp, codamfcappdoc::oneditzoomextents() for details.
vladimir
hi,
this works excellent, thanks a lot.


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