BIM Coordinator Program (INT) April 22, 2024
Find the next step in your career as a Graphisoft Certified BIM Coordinator!
Archicad C++ API
About Archicad add-on development using the C++ API.

Link in gdl script

Vladislav V
Booster

Hello) Maybe you know how I can automatically insert a value into a script parameter from an Excel or txt file. For example, I have an area parameter in the script, and I need this value to be taken automatically from an Excel or txt file.

Is there any command in the script to do this?

I will be grateful for the answer).

5 REPLIES 5
runxel
Legend

You can use the GDL Text Add-on to read in arbitrary data.

But bear in mind that the type of the variable will be auto casted. So if it looks like a number it will be treated as one. This might lead to problems with e.g. room lists.

 

Lucas Becker | AC 27 on Mac | Author of Runxel's Archicad Wiki | Editor at SelfGDL | Developer of the GDL plugin for Sublime Text |
«Furthermore, I consider that Carth... yearly releases must be destroyed»

Thank you!

This is a GDL TEXT I/O extension need to download?

Have you read the link?

In short: No. It's named "Add-on" since you could actually write you own extensions in C++ which would be callable from GDL. But this is one of the default OOTB ones (:

Lucas Becker | AC 27 on Mac | Author of Runxel's Archicad Wiki | Editor at SelfGDL | Developer of the GDL plugin for Sublime Text |
«Furthermore, I consider that Carth... yearly releases must be destroyed»

Sorry for the inattention.

Learn and get certified!