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

yang686526 2009-05-07 05:19 PM

【转帖】rouble With A Custom Entity
 
trouble with a custom entity
trouble with a custom entity
hi,
i need to handle worlddraw of certain types of hatches (solid hatch) myself. in order to do that i created a custom entity myhatch, which was derived from oddbhatch. then whenever i needed to draw the hatch (from inside odgsbasevectorizeview::draw()) i created an instance of myhatch and called odgsbasevectorizeview::draw( ptrmyhatch ).
this worked fine in dwgdirect 1.10, but now i get an exception ("not initialized yet") upon creating the instance:
myhatchptr ptrmyhatch = myhatch::createobject();
does anybody know what is different in 1.11? what do i have to change/add/remove in/to/from my code?
attached is a code with my entity's declarations.
thanks
arnošt
attached files

probably you forgot to call myhatch::rxinit(); (see our excustobjs sample)
sincerely yours,
george udov

that helped. thanks.


所有的时间均为北京时间。 现在的时间是 11:52 PM.