cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

2024 Technology Preview Program:
Master powerful new features and shape the latest BIM-enabled innovations

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

Set binary 3D data to library part

Martin Walter
Enthusiast
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?
AC22-27, Windows 11, i7-1355U, 32GB RAM, 2TB SSD
2 REPLIES 2
akomporday
Graphisoft Alumni
Graphisoft Alumni
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:
http://archicadapi.graphisoft.com/documentation/acapi_libpart_updatesection?s=ACAPI_LibPart_UpdateSe...
Martin Walter
Enthusiast
Thanks! But is there some specification for the format of the 3D Binary section?
AC22-27, Windows 11, i7-1355U, 32GB RAM, 2TB SSD