The Global ARCHICAD Community

Stay informed. Get help. Share your knowledge.

Discussions about using GRAPHISOFT's tools (API DevKit) for independent software developers

Moderators: ejrolon, Barry Kelly, Karl Ottenstein, LaszloNagy, gkmethy, MOREH Tamas, Akos Somorjai, Ed Brown, Mihály Palenik, Tibor Lorántfy, rmasaki

By Martin Walter
For performance reasons I would like to add binary 3D data instead of scripted 3D data in the section API_Sect3DScript to a libraray part. The section API_Sect3DBinData seems to be what I need. But how can I use it?
User avatar
By akomporday
You can update a libpart section using ACAPI_LibPart_UpdateSection.
Code: Select all
API_LibPart			libPart = {};
API_LibPartSection 	section = {};
GSHandle			sectionHdl = nullptr;
libPart.typeID = APILib_ObjectID;
libpart.index = someLibPartIndex;
libPart.docu_UName = "MyLibPart";
section.sectType = API_Sect3DBinData;
section.subIdent = APISubIdent_Any;
err = ACAPI_LibPart_UpdateSection( libPart.index, &section, sect3DBinaryHandle, nullptr );
where sect3DBinaryHandle is a handle to your binary data.

For more info, see: ... ateSection