Service alert: BIMcloud SaaS disruption in the US Read more

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

Create points in Mesh by API C++

Le Tan Kien
Contributor

Hello everyone,
I would like to create points in a mesh using a .txt file that contains x, y, z coordinates.
Is there a way to do this using the C++ API?
Could you please guide me on how to do it? Thank you very much.

2 REPLIES 2
LChen
Graphisoft
Graphisoft

Hi, You can create a mesh and set points using x,y,z coordinates. I'd suggest you to check the API example code 

Do_Mesh_Edit (void) in Element_test\Element_Modify_ModelElements.cpp. It shows you how to modify points (
meshLevelCoords). But you can set meshLevelCoords array with x,y,z values for creating mesh.
HTH.

Yes, thanks Sir