Hi,
does someone know how to configure and use ObjectARX (and ObjectDBX) functions given in Section M of the AutoCAD Electrical API Help?
Where is "acepmclientapp.lib" located?
Can someone explain me instructions given below?
To use the the Project Database Service client you need to:
To use the the ObjectDBX classes you need to:
Regards,
Vladimir
Solved! Go to Solution.
Solved by daniel_cadext. Go to Solution.
I know mechanical has its own SDK, but I didn't see a download for electrical. I assume you searched your install dir?
I'd start by looking through the code samples, look in the ObjectARX and C# for Electrical specific code.
looks like an ultra fun resbuf party
I tried all that but no luck.
Maybe I missed something because I don't have experience with ObjectARX.
Generally I use AutoLISP and want to move to ObjectARX.
But this is not about programming, it's about Help documentation.
Someone from AutoCAD Electrical team or from Autodesk should give an explanation, they wrote ACADE API Help.
Regards,
Vladimir
Dear Autodesk,
I don't think that anyone can answer my question except Autodesk.
I hope you will do that instead of sending me a noreply e-mail.
Regards,
Vladimir
Hi,
I think if you download AutoCAD Electrical 2023, things might become a bit clearer as it defines acepmclientapi.h
I couldn't find the .lib file, so I made one using a .def file
LIBRARY "AcePmClientApp.arx"
EXPORTS
PmGetApiName
PmGetActive
lib /def:AcePmClientApp.def /out:AcePmClientApp.lib /machine:x64
then as a quick test I ran:
extern "C" __declspec(dllimport) const TCHAR * PmGetApiName();
extern "C" __declspec(dllimport) bool PmGetActive(TCHAR*, size_t);
#pragma comment(lib, "AcePmClientApp.lib")
static void ArxTest_doit()
{
acutPrintf( _T("\nPmGetApiName = %ls"), PmGetApiName());
std::array<TCHAR, MAX_PATH> activeProject = { 0 };
if(PmGetActive(activeProject.data(), activeProject.size()))
acutPrintf(_T("\nActiveProject = %ls"), activeProject.data());
else
acutPrintf(_T("\nActiveProject = FAIL"));
}
Thanks a lot, Daniel! This is a great help!
It looked like there was something missing in their instructions, but I suspected it was my ignorance.
After your reply I see that they should really explain their instructions!
I don't understand why they even mentioned ObjectARX if they don't want to give a valid guide. Especially for beginners. ACADE is used by people who do schematic drawings, not programming.
I'm happy to accept your answer as a solution, I'm just afraid that's one more reason for them not to give an explanation.
Much appreciated,
Vladimir
Can't find what you're looking for? Ask the community or share your knowledge.