I have created an object which reads the zone number it relates to. I have then populated a parameter that picks up the home story and combines it with the zone number.
Ie. I have a zone called '02' placed on level '3'
My outputted parameter reads 3-02
Works well, so I can schedule it. My problem is, if I want to update the zone number, the object parameter doesn't update until I open the object and then close it.
Is there a way I can include some sort of refresh code in my script when the zone is changed?
By "if I want to update the zone number" do you mean that you change the number of a placed zone or did you issue the "Update Zones" command?
If you just changed the zone number I do not think that a GDL object will pick up the change. It might with the "Update Zones" command but as I do not use or have such an object, you will need to test this.
AC 19 6006 & AC 20
Mac OS 10.11.5
15" Retina MacBook Pro 2.6
27" iMac Retina 5K
Zone stamps are the only objects that will adjust as you alter a zone.
Standard objects can get information from a zone but as you have discovered you must force the object to run its scripts for the zone info to update.
This can be done by opening and closing the object settings, or a simple screen zoom or pan should do it or a 're-build and regenerate' command (CTRL+ALT+SHIFT+R).
Note: 're-build' command (CTRL+SHIFT+R) will not work as this does not regenerate the model.
One of the forum moderators. Versions 6.5 to 27 Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), Windows 10 Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11