高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】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.
|