ObjectARX
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

odd acdbGetObjectId() return type

1 REPLY 1
Reply
Message 1 of 2
dnlo
244 Views, 1 Reply

odd acdbGetObjectId() return type

Hello everybody,

 

acdbGetObjectId() function's fails when checking for return value  - it returns like as the return value wouldn't Acad::eOk, its int value however is 0 i.e. Acad::eOk. What's wrong?

 

if((es =acdbGetObjectId(oID, ent1))!= Acad::eOk);//doesn't work!
//return (es);
acutPrintf(_T("\nError nr (Acad::ErrorStatus enum): %u."), es);//es= i.e. Acad::eOk, bug??
acedSSFree(ssname);//must free selection set

 

 

1 REPLY 1
Message 2 of 2
owenwengerd
in reply to: dnlo

It is returning Acad::eOk, but you probably got confused because you have an unwanted semicolon at the end of the line containing your if statement.

--

Owen Wengerd

ManuSoft

 

--
Owen Wengerd
ManuSoft

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost