Message 1 of 5
custom objects: iterator through modelspace
Not applicable
10-19-2003
10:01 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
It seems not to be possible to get an iterator to modelspace from within
a method of a custom object. I always get an undocumented
"Acad::eCreateFailed" when I request the iterator.
I want to do a comparision of my actual custom object to every other
instance of my custom objects in modelspace. Do someone know a
workaround for this task?
Mille thanks in advance,
Michael
p.s.
I m using objectARX 2000
the code:
...
ee=
acdbHostApplicationServices()->workingDatabase()->getSymbolTable(pBT,
AcDb::kForRead);
ee= pBT->getAt(ACDB_MODEL_SPACE, pBTR, AcDb::kForRead);
pBT->close(); pBT= NULL;
ee= pBTR->newIterator(pBTRI); //always returns Acad::eCreateFailed,
WHY?
...
a method of a custom object. I always get an undocumented
"Acad::eCreateFailed" when I request the iterator.
I want to do a comparision of my actual custom object to every other
instance of my custom objects in modelspace. Do someone know a
workaround for this task?
Mille thanks in advance,
Michael
p.s.
I m using objectARX 2000
the code:
...
ee=
acdbHostApplicationServices()->workingDatabase()->getSymbolTable(pBT,
AcDb::kForRead);
ee= pBT->getAt(ACDB_MODEL_SPACE, pBTR, AcDb::kForRead);
pBT->close(); pBT= NULL;
ee= pBTR->newIterator(pBTRI); //always returns Acad::eCreateFailed,
WHY?
...