几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   -   【转帖】i cant use enablegsmodel9true0 (http://www.dimcax.com/hust/showthread.php?t=16818)

yang686526 2009-05-06 03:31 PM

【转帖】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.