License Delivery maintenance is expected to occur on Saturday, November 30, between 8 AM and 11 AM CET. This may cause a short 3-hours outage in which license-related tasks: license key upload, download, update, SSA validation, access to the license pool and Graphisoft ID authentication may not function properly. We apologize for any inconvenience.
GDL
About building parametric objects with GDL.

File IO in properties script

Anonymous
Not applicable
Properties script of a GDL object tries to write some data into a file.
Activating the script from menu (Listak | Elemlista | ...) works well. However by calling ACAPI_Element_GetComponents from an add-on properties script fails to write into the file. (It creates the file.)
Is there any work around for this problem?

Using: ArchiCAD 8.1R2 HUN (2284) on w2k sp4


Thanks,
Csaba Nagy
3 REPLIES 3
Karl Ottenstein
Moderator
Hi Csaba,

Someone with more experience may know the answer, but I wonder if this thread is related:
http://archicad-talk.graphisoft.com/viewtopic.php?t=4716

Perhaps the API call does not force a full execution of the script...?

Karl
One of the forum moderators
AC 28 USA and earlier   •   macOS Sonoma 14.7.1, MacBook Pro M2 Max 12CPU/30GPU cores, 32GB
Anonymous
Not applicable
If this is the case then full execution of property scripts upon ACAPI_Element_GetComponents is #1 on my API wishlist.
- at least until I get around to rewriting my property scripts in c
Anonymous
Not applicable
I found a work around. Executing an SQL Query runs the script correctly.
(APIAny_ExecuteSQLQueryID "select components from ...")

Csaba