Archicad C++ API
About Archicad add-on development using the C++ API.

Set binary 3D data to library part

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?
AC23, Windows 10, i7-6700HQ, 8Gb RAM, 500Gb SSD

You can update a libpart section using ACAPI_LibPart_UpdateSection.

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:

Martin Walter
Thanks! But is there some specification for the format of the 3D Binary section?
AC23, Windows 10, i7-6700HQ, 8Gb RAM, 500Gb SSD

Didn't find the answer?

Check other topics in this Forum

Back to Forum

Read the latest accepted solutions!

Accepted Solutions

Start a new conversation!