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

Create a Drawing from a file?

Erenford
Booster
How do you link a drawing to an external file? On ArchiCAD you just click on "an external source" -> click "Browse" -> choose the file. How do you do this with the API?

What are the requirements? Creating a drawing from a view is simply by copying the view's guid to drawing.drawingGuid and you're done, is it the same with a file? I've looked into API_DrawingLinkInfo but it seems there is only a "Get" function and no "Set".

Thanks.
Archicad 25 5010 INT FULL
Archicad 26 5002 INT FULL
Visual Studio Professional 2019
Win 10 Pro 64-bit
1 REPLY 1
Hoa Tu
Newcomer
Erenford wrote:
How do you link a drawing to an external file? On ArchiCAD you just click on "an external source" -> click "Browse" -> choose the file. How do you do this with the API?

What are the requirements? Creating a drawing from a view is simply by copying the view's guid to drawing.drawingGuid and you're done, is it the same with a file? I've looked into API_DrawingLinkInfo but it seems there is only a "Get" function and no "Set".

Thanks.
Hi All,

I am also interested to know if there is anyway to set/relink an external file of a drawing using API.
I am using ArchiCAD 21.

Thanks,
Hoa