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

Reading parameters in GDL from a TXT file

jakubc7
Booster
I am looking at making an object with some simple parameter combinations however due to over 100+ variations of 10+ parameters using GDL code would be too time consuming and not manageable.
What I need:
BLOCK shape (or similar)
Preset sizes for Height and Width
10 or so text values that adjust with presets

I tried seeing what others have done using the OPEN command within their objects. I also tried the GDL Cookbook 3.1 which touches on the subject and the Graphisoft article with sample files in the link below. However it seems to be way more advanced than my GDL knowledge can handle.

I suppose my question is whether there is a simpler way to do what I want:

I love the new AC23 beam too (which would be perfect for this) but it still lacks ability to create preset values ... something I queried when v22 came out. I still do not see any way of going this?:
https://archicad-talk.graphisoft.com/viewtopic.php?t=61952

I'd be happy to put this to bed if there is no other way but I'd hate to give up if there is a more streamlined way to achieve what I need. Any feedback much appreciated. Thanks.

Graphisoft article:
http://gdl.graphisoft.com/tips-and-tricks/how-to-read-and-write-text-files
ArchiCAD 10 - 25 | Windows 10

ARCHIcreate | Perth, Western Australia
archicad solutions | content creation | training | software implementation
3 REPLIES 3

Hi,

I think the best example for such purpose would be the steel profile objects - beam and columns - they exist in the standard library - and they utilize the size presets in txt files.

I managed to use similar systems for changing the language in couple of objects (however this may be troublesome due to the lack of "unicodeness" of the input texts using the text in-out gdl addons.

Piotr

jakubc7
Booster
Thanks Piotr. I did refer to other objects but couldn't make sense of the code. Turns out I was misunderstanding the commands. I finally got it right - however very much by accident ... mainly using GDL Reference Guide PDF as the most useful reference.
ArchiCAD 10 - 25 | Windows 10

ARCHIcreate | Perth, Western Australia
archicad solutions | content creation | training | software implementation

There is also an example (more or less the same complexity) on:
http://gdl.graphisoft.com/tips-and-tricks/how-to-read-and-write-text-files

Piotr

PS. I mainly use the above page as a manual rather than pdf. (I refer to pdf only when the certain GDL version must be used)

Didn't find the answer? Start a new discussion

Labels

Still looking?

Browse more topics

Back to forum

See latest solutions

Accepted solutions

Start a new discussion!