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

2024 Technology Preview Program:
Master powerful new features and shape the latest BIM-enabled innovations

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 27 USA and earlier   •   macOS Ventura 13.6.9, 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