几何尺寸与公差论坛------致力于产品几何量公差标准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 export nested xrefs (http://www.dimcax.com/hust/showthread.php?t=15818)

yang686526 2009-05-04 08:17 PM

【转帖】dwf export nested xrefs
 
dwf export nested xrefs
dwf export nested xrefs
first, thanks for an outstandig toolkit!
i'm trying to export to dwf and it works "almost". i don't get
nested xrefs in the output.
i have the following files:
1) house (root file) referencing a door and a window
2) the door is referencing a door-knob
3) the window
the output contains the house with a door and a window but
the door doesn't have the knob, so i can't get in...
i copied the mfc sample code:
oddbdatabaseptr pdb;
// create a database and load the drawing into it.
pdb = svcs.readfile( spath );
void onexport( oddbdatabaseptr pdb, const tstring& ssavefilename, long nfilterindex = 1 )
{
dwexportparams params;
params.pdb = pdb;
params.sdwffilename = ssavefilename;
params.background = 0;
//params.ppalette = 0;
//params.ssourcefilename = ssourcefilename;
dwfpagedata pagedata;
switch( nfilterindex )
{
case 1:
params.format = dw_uncompressed_binary;
params.version = ndwf_v60;
pagedata.slayout = pdb->findactivelayout(true);
params.arpagedata.append(pagedata);
break;
am i missing something or is it a feature?
thanks in advance!
/jonas
ignore prevoius post
the xref not being displayed contained only text, after adding
other content the xref was rendered (and the text).
/jonas
can you send a file?
misha kuzinets


所有的时间均为北京时间。 现在的时间是 02:55 AM.