Message 1 of 1
does assertReadEnabled() work?
Not applicable
12-24-2004
08:10 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi!
some code:
if (acdbOpenAcDbObject((AcDbObject *&)pCalcList, dataListID,
AcDb::kForRead) == Acad::eOk) {
a = pCalcList->CalcList();
pCalcList->close();
};
it's work fine. let's exchange two lines:
if (acdbOpenAcDbObject((AcDbObject *&)pCalcList, dataListID,
AcDb::kForRead) == Acad::eOk) {
pCalcList->close();
a = pCalcList->CalcList();
};
it's work the same way!?.
the method CalcList():
AcDbObjectIdArray CalcList() {assertReadEnabled(); return mCalcList;};
assertReadEnabled() don't work...?
method isReadEnabled() return right result.
does assertReadEnabled() work?
You can try this on any object (entity) - just open for read, close,
then call some method that read closed object property - all work fine.
I had try it on AutoCAD 2004 (and ObjectARX 2004) and 2005(2005).
Any ideas?