查看单个帖子
旧 2009-05-07, 04:32 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】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:neditzoomextents() for details.
vladimir
hi,
this works excellent, thanks a lot.
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)