高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】odamfcappdll cannot open my dwg
odamfcappdll cannot open my dwg
odamfcappdll cannot open my dwg
hello support,
i could not open the attached dwg file with odamfcappdll 2.4.1.
could you investigate this problem please ?
regards.
attached files
i'm not sure where is the bug (in mfc carchive, or in ole item trying to load), but you may fix it by inserting following line in examples\win\odamfcapp\ole.cpp, 145 (oledwgitem::load()):
code:
}
end_catch
// to avoid incorrect archive closing in some cases
archive.abort();
}
else
vladimir
after some investigation i understand that more correct fix is to add carchive::bnoflushondelete flag to carchive constructor in the oledwgitem::load function. not sure how it worked earlier.
vladimir
indeed it works better.
thank you.
now i have got another problem with this file.
the oddb::visibility value of almost all oddbviewport is oddb::kinvisible.
however if i load the file in odamfcappdll, i can see these viewports.
why ? what is the meaning of the oddb::visibility flag ? i could not find its equivalent in autocad 2004.
thank you in advance for your help.
acdb::visibility in arx has the same meaning as in dd.
visibility of the viewport affects only its border
vladimir
|