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