We value your input!
Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey

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

Run part of script on placement only

Lachlan Green
Enthusiast
Hi all,

As the subject says, I'm looking for a way to have part of the script run only when the object is placed. If it is edited, moved, rotated etc that section should not run again. I thought I saw something like this a long time ago in regards to a rock object that generated a random shape and some wanted it to only generate the shape when first placed. I can't remember the outcome tho.

The object I'm creating is a label. I want it to rotate to the view orientation so that when placed it appears horizontal. However, from there it needs to be able to be rotated and stay on that angle. I could make it so that if it has a rotation value it doesn't run the view orientation rotation. But that would mean if it is left horizontal it will rotate with the view orientation. Not the end of the world but it would be nice to have it consistent across the board.

Thanks in advance for any suggestions.
Lachlan Green | Wilson Architects | BIM Manager, Architect
Started on AC9 | Currently AC27 & AC28 | BIMCloud | GDL
Mac Studio (14,13) M2 Max, 64GB, 1TB SSD | MacOS 14.7
1 REPLY 1
Pertti Paasky
Expert
Try glob_intquid. When the object is placed, it gets glob_intquid. When placing the object, it has no glob_intquid.
for example: if glob_intquid#"" then blabla...
- AC-24 FIN - WIN 10 - HP Zbook -
“A winner is just a loser who tried one more time.”
George M. Moore, Jr.