hi YongAn,
I run into the similar trouble when i debug the sample code imodelvistor in v8i ss4 sdk.
To the function imodelVisitor_scanForItemSet ,once we call status = mdlNamedGroup_fromElementDescr (&sourceGrp,namedGrpEdP, namedGrpEdP->h.dgnModelRef,namedGrpEdP->h.dgnModelRef);
successfully, we get the NameGroupP we traverse now. And then we can get the NamedGrp elemRef with the call to ElementRef eGroupRef;
eGroupRef = mdlNamedGroup_getElementRef(sourceGrp);
and then with eGroupRef, I call slHandle = apiRef.ReadInstances(iStatus,eGroupRef); but i can not slHandle is empty...
any idea? thank you in advance
I run into the similar trouble when i debug the sample code imodelvistor in v8i ss4 sdk.
To the function imodelVisitor_scanForItemSet ,once we call status = mdlNamedGroup_fromElementDescr (&sourceGrp,namedGrpEdP, namedGrpEdP->h.dgnModelRef,namedGrpEdP->h.dgnModelRef);
successfully, we get the NameGroupP we traverse now. And then we can get the NamedGrp elemRef with the call to ElementRef eGroupRef;
eGroupRef = mdlNamedGroup_getElementRef(sourceGrp);
and then with eGroupRef, I call slHandle = apiRef.ReadInstances(iStatus,eGroupRef); but i can not slHandle is empty...
any idea? thank you in advance