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

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 26 USA and earlier   •   macOS Ventura 13.2, iMac Pro 10-Core, Radeon Pro Vega 64

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

Still looking?

Browse more topics

Back to forum

See latest solutions

Accepted solutions

Start a new discussion!