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.

Door/Window Marker - How to tell when mirrored?

Matt Balaam
Advocate
Hi all,

I have made a custom door/window marker for our company which is all working smoothly except for one thing. I am trying to make the marker capable of knowing which orientation the window is facing i.e. North, South etc. This works fine when the window is first placed, but if the wall containing the window is mirrored, the orientation is wrong.

In any other object I would use SYMB_MIRRORED to correct for this, however doors/windows and their associated markers don't seem to have any way of knowing when they are mirrored.

Does anyone know of a way to tell if a marker is mirrored?

Thanks,

Matt

PS I am using the marker with Cadimage Doors+Windows for AC14
AC24 (7000 AUS FULL)| Windows 10 Pro | Intel Core i7-12700 @ 2.1GHz | 32GB RAM | NVidia T1000
12 REPLIES 12
Matt Balaam
Advocate
No definitely not using the same variable for both. This is a new feature I'm attempting to add to a marker that I created previously and has been working fine.

I commented out all code except for...

text2 0,1, WALL_DIRECTION
text2 0,2, SYMB_ROTANGLE

...and still get the same result. I'm stumped on this one.

I have however managed to effectively determine if the wall is mirrored (so to speak) using...

if AC_WIDO_REVEAL_SIDE = SAME_SIDE then
windowMirrored = 0
else
windowMirrored = 1
endif

...which I can then use to correct the direction and everything works


Next problem is I can't get the script to automatically update the orientation parameter without opening the settings dialog to force the master (or parameter) scripts to run. Mirroring the walls doesn't seem to run these scripts meaning the orientation gets outdated. 2D works instantly if I want to display the orientation but not the parameter for scheduling.

Is there a way I can force the parameter to update when the wall is mirrored (or when a new window is inserted)?
AC24 (7000 AUS FULL)| Windows 10 Pro | Intel Core i7-12700 @ 2.1GHz | 32GB RAM | NVidia T1000
Barry Kelly
Moderator
Well I am stumped too but glad you have found a solution.

I too wanted to have a parameter in my windows that showed the orientaion but like you I could not get it to update automatically.
I gave up on that long ago.
I might have to revisit it again though.
I am wondering if this may help.

http://archicad-talk.graphisoft.com/viewtopic.php?t=35697

But I am guessing the settings dialogue still has to be opened to trigger the scripts to 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
Matt Balaam
Advocate
Thanks for your help with this Barry!

My current solution is to calculate the orientation in the 2D script as well as the master script.

In the 2D script I then compare the calculated orientation with the parameter and if they are different I add a * to the window code to let the draftsperson know that the orientation for that window will need to be updated by opening the settings dialog.

I've looked at the linked thread before and agree that the settings would probably have to be opened for the scripts to run.
AC24 (7000 AUS FULL)| Windows 10 Pro | Intel Core i7-12700 @ 2.1GHz | 32GB RAM | NVidia T1000

Didn't find the answer?

Check other topics in this Forum

Back to Forum

Read the latest accepted solutions!

Accepted Solutions

Start a new conversation!