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

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

Trapping first time a script is run

Barry Kelly
Moderator
Is there a way to trap the first time a script is run for an object (ie the master script)?

I am sure I have read something in this forum but searching has not been successful.

If I remember correctly it might be a "Request ..." but I have had no luck with the help file either.

Basically I want to be able to set an new parameter value based on the value of an existing parameter the first time the object is opened in an existing plan.
But then I need to have the new value completely independent of the original value - which is why I need to trap the first time the master or parameter script is run.

Barry.
One of the forum moderators.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11
2 REPLIES 2
Anonymous
Not applicable
Hello,

n = APPLICATION_QUERY ("PARAMETER_SCRIPT", "FIRSTOCCASION_IN_PROGRESS", isFirstRun)

Discussed here;
http://archicad-talk.graphisoft.com/viewtopic.php?t=34828&start=0&postdays=0&postorder=asc&highlight=isfirstrun
Barry Kelly
Moderator
Thanks Juha,
I was on the wrong track with the "request" side of things which was throwing me a bit.
I did search for "First" but must have skipped over this post.
I'll be sure to write this one down for future reference.
Thanks again,
Barry.
One of the forum moderators.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11