2011-01-12 05:43 AM - last edited on 2023-08-03 10:30 AM by Doreena Deng
GSErrCode __ACENV_CALL Initialize (void) { GSErrCode err = ACAPI_Install_MenuHandler (32500, MenuCommandHandler); if (err != NoError) DBPrintf ("LibPart Test:: Initialize() ACAPI_Install_MenuHandler failed\n"); IO::Location rab("E:/ArchiCAD Phase/Present ArchiCAD/Phase_9 16 พ.ย. - 31 ธ.ค. 53/All HRC OK/HRC_Object/"); ACAPI_Environment (APIEnv_AddLibrariesID, reinterpret_cast<void *>(&rab), NULL); return NoError; } // Initialize
CHANSI2Unicode("เข็มหกเหลี่ยมกลวง 15cm ยาว 3 เมตร.gsm", strlen("เข็มหกเหลี่ยมกลวง 15cm ยาว 3 เมตร.gsm"), part.file_UName, API_UniLongNameLen); if((err = ACAPI_LibPart_Search(&part, false)) == NoError) { ... }And it return no error
2011-01-12 05:45 AM
2011-01-12 05:46 AM
2011-01-12 05:48 AM
2011-01-12 10:10 AM
Paodekcal wrote:I don't fully understand what you are trying to do. I assume you want to be sure a specific library is loaded when your add-on carries out its primary function. I have 2 suggestions:
Do you have any idea? to fix code to work correctly at picture 2 That I don't want to run Libpart Function before.
2011-01-12 10:25 AM
2011-01-12 10:29 AM
Paodekcal wrote:OK. I suggest using
I want to "Auto Link my folder library every time I create new project or open ArchiCAD"
So the users don't have to link library folder by themself.
Like the roofmaker or truss maker
2011-01-12 10:45 AM
2011-01-12 10:54 AM
it may be called before a project has been opened.Thank you.