高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】i cant use enablegsmodel9true0
i can't use enablegsmodel(true)
i can't use enablegsmodel(true)
i use my device and view like below
class cdwgvectorizedeviceublic odgsbasevectorizedevice,public odgigeometrysimplifier,public odrxdispatchimpl<>
{
...
};
class cdwgvectorizeviewublic odgsbasevectorizeview
{
...
};
i add enablegsmodel(true) to my code,it break when regeneration.
void cdwgfile::init()
{
pdwgcontext = odgicontextfordbdatabase::createobject();
pdwgcontext->enablegsmodel(true);
m_pdevice = cdwgvectorizedevice::createobject();
pdwgcontext->setdatabase(pdatabase);
try
{
m_pdevice=oddbgsmanager::setupactivelayoutviews(m_ pdevice, pdwgcontext);
}
catch(oderror &e)
{
trace("%s\n",e.description());
}
((cdwgvectorizedevice*)(m_pdevice.get()))->setdwgfile(this);
}
where i need to check ?
thank,s
1) did you implement following functions, declared in odgsbasevectorizeview?
code:
virtual odrxobjectptr newgsmetafile();
virtual void beginmetafile(odrxobject* pmetafile);
virtual void endmetafile(odrxobject* pmetafile);
virtual void playmetafile(const odrxobject* pmetafile);
2) how does it break? exception? what kind of exception?
sincerely yours,
george udov
|