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

yang686526 2009-05-05 07:48 AM

【转帖】dwf import then vectorized wrong
 
dwf import then vectorized wrong
dwf import then vectorized wrong
i am using the dwf importer and then running it through the dwg vectorization routines. unfortunately i am losing the left portion ofthe drawing. any idea what i am doing wrong?
pdb = svcs.createdatabase(true, oddb::kmetric);
oddwfimportptr importer = createimporter();
if ( importer.isnull() )
return false;
importer->properties()->putat( "database", pdb );
importer->properties()->putat( "dwfpath", odrxvariantvalue( odstring(inf) ) );
importer->properties()->putat( "password", odrxvariantvalue( odstring("") ) );
importer->properties()->putat( "paperwidth", odrxvariantvalue( 297. ) );
importer->properties()->putat( "paperheight", odrxvariantvalue( 210. ) );
importer->import();
importer.release;
// begin vectorization.
oddbobjectid layout;
// create the custom rendering device and set the output stream for the device.
odgsdeviceptr pdevice = exgssimpledevice::createobject(exgssimpledevice::k 2ddevice, inf, outf);
// prepare the device to render the active layout in this database.
pdevice = oddbgsmanager::setupactivelayoutviews(pdevice, pdwgcontext);
// set the screen size for the generated geometry.
odgsdcrect screenrect(odgsdcpoint(0, 0), odgsdcpoint(max, max));
pdevice->onsize(screenrect);
// initiate vectorization.
pdevice->update();
if you import the file in odamfcapp sample - is it shown correct?
quote:
originally posted by wvk
if you import the file in odamfcapp sample - is it shown correct?
yep.
also, it doesn't matter what dwf file i import. they all are losing the left side.
attached images (32.0 kb, 10 views)

i cannot reproduce this behaviour in 12.04
could you attach some sample dwf,
to reproduce the error?
you can also wait for 1.13 and check if error persists.
1.13 will be probably shipped this monday.


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