![]() |
【转帖】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. |