Acad::ErrorStatus ArxDbgPersistentObjReactor::dwgInFields(AcDbDwgFiler* filer) { Acad::ErrorStatus es; if ((es = AcDbObject::dwgInFields(filer)) != Acad::eOk) return es; Adesk::Int16 version; filer->readItem(&version); if (version > m_version) return Acad::eMakeMeProxy; AcDbSoftPointerId tmpId; Adesk::Int32 count; filer->readItem(&count); m_attachedToObjs.setLogicalLength(0); for (int i=0; i<count; i++) { filer->readItem(&tmpId); if (tmpId.isNull() == false) m_attachedToObjs.append(tmpId); } return filer->filerStatus(); }
Acad::ErrorStatus ArxDbgReferenceFiler::writeSoftPointerId(const AcDbSoftPointerId& id) { if (id.isNull() == false) m_softPointerIds.append(id); return Acad::eOk; }