Another thing...it seems when the block properties are changed via the properties box (scale/rotation), that an attsync needs to be done in order to 'reposition' them.
But even then, blocks that have either a negative xscale or a negative yscale the attributes are backwards.
So in my code, I am performing an attsync, setting rotation to zero, and then checking for negative scales and setting the backwards property to true.
So far this seems to be working.
Another question, I plan on building this into a reactor of some sort in order to keep the door tags at a rotation of zero, and in the future update door schedules based on the door tag values.
I'm very new at reactors so I am wondering which reactor type would be best suited for this? Command reactor triggered with a 'regen', when the drawing is saved? I am trying to think ahead, because if I end up using a command reactor, then I can't use any (command) commands in this code (which eliminates my use of attsync)...
I've attached the code and block.