![]() |
【转帖】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 |
所有的时间均为北京时间。 现在的时间是 11:32 AM. |