A smoking fast sds_ssget to OdDbSelectionSet

An order of magnitude faster than iterating through with sds_ssname

// OdDbDatabase *pDb = odapDocManager()->curDocument()->database(); OdDbSelectionSetPtr pSSSet = OdDbSelectionSet::createObject(pDb); if (sds_ssget(m_mode,m_point1,m_point2,m_filter,m_ss) == RTNORM) { OdDbObjectId objId; drx_getObjectId(objId, m_ss); if(!objId.isNull()) pSSSet->append(reinterpret_cast((OdDbStub*)objId)); } //

Comments

  • something went wrong, lets see if this works

    OdDbDatabase *pDb = odapDocManager()->curDocument()->database(); OdDbSelectionSetPtr pSSSet = OdDbSelectionSet::createObject(pDb); if (sds_ssget(m_mode,m_point1,m_point2,m_filter,m_ss) == RTNORM) { OdDbObjectId objId; drx_getObjectId(objId, m_ss); if(!objId.isNull()) pSSSet->append(reinterpret_cast<OdDbSelectionSet*>((OdDbStub*)objId)); }
This discussion has been closed.