does assertReadEnabled() work?

does assertReadEnabled() work?

Anonymous
Not applicable
429 Views
0 Replies
Message 1 of 1

does assertReadEnabled() work?

Anonymous
Not applicable
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?
0 Likes
430 Views
0 Replies
Replies (0)