Libraries & objects
About Archicad and BIMcloud libraries, their management and migration, objects and other library parts, etc.

scripting autotext

Anonymous
Not applicable
We're in the process of making a part to then create schedules for room finishes etc. (we don't use zones so it may be in there somehow) We've found a way to call in the "Custom 1" from project info, but any new custom auto texts that we create do not work in the scripting. Basically the intent of this part is to have 'paint type 1' and the custom auto text can have the spec and only need to be changed one time.

Thanks for any help.
3 REPLIES 3
Laszlo Nagy
Community Admin
Community Admin
I don't think that Project Info field were ever intended for such a purpose. Those are Project level data which are usually displayed on Layouts. You want to display room-specific information in schedules.

In GDL you can read from and write to TXT (and I think also XML) files. Maybe you should store those value in such a file and all your object would read from there. So then you would only need to change it in the file and update the objects to read the new value. I think this could work.
Loving Archicad since 1995 - Find Archicad Tips at x.com/laszlonagy
AMD Ryzen9 5900X CPU, 64 GB RAM 3600 MHz, Nvidia GTX 1060 6GB, 500 GB NVMe SSD
2x28" (2560x1440), Windows 10 PRO ENG, Ac20-Ac28
Erwin Edel
Rockstar
If you create a new library part and drag a text element with the autotext inside it into the 2d script, you will get a funky autotext value such as
<autotext-B4A088D7-5B40-4D6D-BCFD-2D7F726D37E1>
this will work. Beyond the first 3 custom text entries the numbering seems a bit different.

However, if it is just a finish from a predefined set of values, you might just want to consider using the parameter script to define a range of values that you could pick from the object parameter dialog and use in schedules.

For example:
values "paintfinish" 		"white","blue","red"
For your created custom parameter called paintfinish you will now have a pulldown list of white, blue and red. Make sure the parameter is of the "text" type.

And yes, I'm sure this could also be scripted into a zone stamp.
Erwin Edel, Project Lead, Leloup Architecten
www.leloup.nl

ArchiCAD 9-26NED FULL
Windows 10 Pro
Adobe Design Premium CS5
Nader Belal
Mentor
@Erwin

Thank you
A good friend of mine have once told me that I´m so brute that I´m capable of creating a GDL script capable of creating GDLs.