<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Door/Window Marker - How to tell when mirrored? in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/Door-Window-Marker-How-to-tell-when-mirrored/m-p/120415#M16632</link>
    <description>I have just used for a door marker the following script part:&lt;BR /&gt;
&lt;BR /&gt;
IF SYMB_ROTANGLE &amp;gt; 90 AND SYMB_ROTANGLE &amp;lt; 270 THEN textAngle = 180 ELSE textAngle = 0</description>
    <pubDate>Tue, 31 May 2011 12:38:18 GMT</pubDate>
    <dc:creator>Jochen Suehlo</dc:creator>
    <dc:date>2011-05-31T12:38:18Z</dc:date>
    <item>
      <title>Door/Window Marker - How to tell when mirrored?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Door-Window-Marker-How-to-tell-when-mirrored/m-p/120414#M16631</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;Hi all,&lt;BR /&gt;
&lt;BR /&gt;
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.&lt;BR /&gt;
&lt;BR /&gt;
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.&lt;BR /&gt;
&lt;BR /&gt;
Does anyone know of a way to tell if a marker is mirrored?&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
&lt;BR /&gt;
Matt&lt;BR /&gt;
&lt;BR /&gt;
PS I am using the marker with Cadimage Doors+Windows for AC14&lt;/T&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 24 May 2023 10:36:54 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Door-Window-Marker-How-to-tell-when-mirrored/m-p/120414#M16631</guid>
      <dc:creator>Matt Balaam</dc:creator>
      <dc:date>2023-05-24T10:36:54Z</dc:date>
    </item>
    <item>
      <title>Re: Door/Window Marker - How to tell when mirrored?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Door-Window-Marker-How-to-tell-when-mirrored/m-p/120415#M16632</link>
      <description>I have just used for a door marker the following script part:&lt;BR /&gt;
&lt;BR /&gt;
IF SYMB_ROTANGLE &amp;gt; 90 AND SYMB_ROTANGLE &amp;lt; 270 THEN textAngle = 180 ELSE textAngle = 0</description>
      <pubDate>Tue, 31 May 2011 12:38:18 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Door-Window-Marker-How-to-tell-when-mirrored/m-p/120415#M16632</guid>
      <dc:creator>Jochen Suehlo</dc:creator>
      <dc:date>2011-05-31T12:38:18Z</dc:date>
    </item>
    <item>
      <title>Re: Door/Window Marker - How to tell when mirrored?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Door-Window-Marker-How-to-tell-when-mirrored/m-p/120416#M16633</link>
      <description>Thanks Joachim, I am already using similar code for text rotation.&lt;BR /&gt;
&lt;BR /&gt;
The problem I am having is to do with the orientation relative to project north which becomes incorrect as soon as the wall containing the door/window is mirrored.&lt;BR /&gt;

&lt;BLOCKQUOTE&gt;Joachim wrote:&lt;BR /&gt;I have just used for a door marker the following script part:&lt;BR /&gt;
&lt;BR /&gt;
IF SYMB_ROTANGLE &amp;gt; 90 AND SYMB_ROTANGLE &amp;lt; 270 THEN textAngle = 180 ELSE textAngle = 0&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Tue, 31 May 2011 22:28:00 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Door-Window-Marker-How-to-tell-when-mirrored/m-p/120416#M16633</guid>
      <dc:creator>Matt Balaam</dc:creator>
      <dc:date>2011-05-31T22:28:00Z</dc:date>
    </item>
    <item>
      <title>Re: Door/Window Marker - How to tell when mirrored?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Door-Window-Marker-How-to-tell-when-mirrored/m-p/120417#M16634</link>
      <description>You also need to take into account the direction the wall was drawn.&lt;BR /&gt;
So you will need to use ... WALL_DIRECTION ... as well.&lt;BR /&gt;
The mirroring of the window shouldn't have any affect.&lt;BR /&gt;
SYMB_MIRROR has no value with doors/windows.&lt;BR /&gt;
&lt;BR /&gt;
Add this script to the beginning of the 2D script of you window and you will see the values change as you rotate and flip the direction of the wall.&lt;BR /&gt;
&lt;BR /&gt;
text2 0,1, WALL_DIRECTION&lt;BR /&gt;
text2 0,2, SYMB_ROTANGLE&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
      <pubDate>Wed, 01 Jun 2011 04:46:57 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Door-Window-Marker-How-to-tell-when-mirrored/m-p/120417#M16634</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2011-06-01T04:46:57Z</dc:date>
    </item>
    <item>
      <title>Re: Door/Window Marker - How to tell when mirrored?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Door-Window-Marker-How-to-tell-when-mirrored/m-p/120418#M16635</link>
      <description>Thanks Barry, now I understand why they were changing, I didn't think about the construction method of the wall changing.&lt;BR /&gt;
&lt;BR /&gt;
That creates the next question however, it seems there is no way to determine the construction method of the wall (left, centre, right) and as such the WALL_DIRECTION is useless.&lt;BR /&gt;
&lt;BR /&gt;
In the attached image you can see my problem. The wall on the left is drawn in our usual method and the window direction works properly, if the wall is mirrored (which we commonly do to an entire house) the direction does not change, only the construction method of the wall, which from what I can tell can't be determined and therefore can't be corrected for.&lt;BR /&gt;
&lt;BR /&gt;
Can anyone think of a way around this?</description>
      <pubDate>Thu, 02 Jun 2011 00:47:40 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Door-Window-Marker-How-to-tell-when-mirrored/m-p/120418#M16635</guid>
      <dc:creator>Matt Balaam</dc:creator>
      <dc:date>2011-06-02T00:47:40Z</dc:date>
    </item>
    <item>
      <title>Re: Door/Window Marker - How to tell when mirrored?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Door-Window-Marker-How-to-tell-when-mirrored/m-p/120419#M16636</link>
      <description>You need to add the &lt;FONT color="#ff0024"&gt;SYMB_ROTANGLE+WALL_DIRECTION &lt;/FONT&gt;together.&lt;BR /&gt;
The window will only ever be 0 or 180 depending on whether the wall was drawn left to right or right to left.&lt;BR /&gt;
But the wall can be any angle.&lt;BR /&gt;
&lt;BR /&gt;
I add both together and add anothe 90 so the anle matches the archicad bearings (ie 90 = north).&lt;BR /&gt;
&lt;BR /&gt;
The if greater than 360 then subtract 360 so you are left with a figure between 0 and 360 which will match you compass bearings.&lt;BR /&gt;
&lt;BR /&gt;
Now you just match the angle with the direction you want to show in you marker (I think you have that sorted).&lt;BR /&gt;
&lt;BR /&gt;
&lt;FONT color="#ff0012"&gt;win_dir = (SYMB_ROTANGLE+WALL_DIRECTION+90)&lt;BR /&gt;
IF win_dir&amp;gt;=360 THEN win_dir=win_dir-360&lt;/FONT&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
      <pubDate>Thu, 02 Jun 2011 03:49:15 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Door-Window-Marker-How-to-tell-when-mirrored/m-p/120419#M16636</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2011-06-02T03:49:15Z</dc:date>
    </item>
    <item>
      <title>Re: Door/Window Marker - How to tell when mirrored?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Door-Window-Marker-How-to-tell-when-mirrored/m-p/120420#M16637</link>
      <description>Interesting...I must be doing something differently because my SYMB_ROTANGLE always matches the wall direction. If I can get it to be 0 or 180 it would solve the problem.&lt;BR /&gt;
&lt;BR /&gt;
How are you getting the SYMB_ROTANGLE to always be 0 or 180°?</description>
      <pubDate>Thu, 02 Jun 2011 04:19:04 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Door-Window-Marker-How-to-tell-when-mirrored/m-p/120420#M16637</guid>
      <dc:creator>Matt Balaam</dc:creator>
      <dc:date>2011-06-02T04:19:04Z</dc:date>
    </item>
    <item>
      <title>Re: Door/Window Marker - How to tell when mirrored?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Door-Window-Marker-How-to-tell-when-mirrored/m-p/120421#M16638</link>
      <description>&lt;BLOCKQUOTE&gt;mcjh_matt wrote:&lt;BR /&gt;Interesting...I must be doing something differently because my SYMB_ROTANGLE always matches the wall direction. If I can get it to be 0 or 180 it would solve the problem.&lt;BR /&gt;
&lt;BR /&gt;
How are you getting the SYMB_ROTANGLE to always be 0 or 180°?&lt;/BLOCKQUOTE&gt;

Nothing special.&lt;BR /&gt;
As I mentioned before I just added this script to the beginning of the 2D script.&lt;BR /&gt;
&lt;BR /&gt;
text2 0,1, WALL_DIRECTION &lt;BR /&gt;
text2 0,2, SYMB_ROTANGLE&lt;BR /&gt;
&lt;BR /&gt;
Are you using a standard Archicad window - if so which one?&lt;BR /&gt;
What is the snippet of code you are using to write the text for wall direction and symbol rotation?&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
      <pubDate>Thu, 02 Jun 2011 04:52:35 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Door-Window-Marker-How-to-tell-when-mirrored/m-p/120421#M16638</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2011-06-02T04:52:35Z</dc:date>
    </item>
    <item>
      <title>Re: Door/Window Marker - How to tell when mirrored?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Door-Window-Marker-How-to-tell-when-mirrored/m-p/120422#M16639</link>
      <description>If I use this code to generate the text for my marker...&lt;BR /&gt;
&lt;BR /&gt;
codetext_1	 = str(SYMB_ROTANGLE, 1, 0)&lt;BR /&gt;
codetext_2	 = str(WALL_DIRECTION, 1, 0)&lt;BR /&gt;
&lt;BR /&gt;
...then the SYMB_ROTANGLE matches the WALL_DIRECTION every time.&lt;BR /&gt;
&lt;BR /&gt;
I am using the Cadimage window for AC14 however I just tried it on a standard AC window and had the same result.</description>
      <pubDate>Thu, 02 Jun 2011 05:05:13 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Door-Window-Marker-How-to-tell-when-mirrored/m-p/120422#M16639</guid>
      <dc:creator>Matt Balaam</dc:creator>
      <dc:date>2011-06-02T05:05:13Z</dc:date>
    </item>
    <item>
      <title>Re: Door/Window Marker - How to tell when mirrored?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Door-Window-Marker-How-to-tell-when-mirrored/m-p/120423#M16640</link>
      <description>Sorry you mentioned cadimage windows earlier.&lt;BR /&gt;
&lt;BR /&gt;
Definitely different values for me.&lt;BR /&gt;
You are not accidentally using the &lt;FONT color="#ff0012"&gt;codetext_2&lt;/FONT&gt; variable for both bits of text are you?&lt;BR /&gt;
&lt;BR /&gt;
Using your code I got the same result as before so I don't know what the difference is if you didn't use the same variable for both.&lt;BR /&gt;
&lt;BR /&gt;
This is the exact code I used.&lt;BR /&gt;
&lt;BR /&gt;
&lt;FONT color="#ff0012"&gt;codetext_1 = str(SYMB_ROTANGLE, 1, 0) &lt;BR /&gt;
codetext_2 = str(WALL_DIRECTION, 1, 0) &lt;BR /&gt;
&lt;BR /&gt;
text2 0,1, "WALL_DIRECTION = " + codetext_2&lt;BR /&gt;
text2 0,2, "SYMB_ROTANGLE = " + codetext_1&lt;/FONT&gt;&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
      <pubDate>Thu, 02 Jun 2011 05:39:59 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Door-Window-Marker-How-to-tell-when-mirrored/m-p/120423#M16640</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2011-06-02T05:39:59Z</dc:date>
    </item>
    <item>
      <title>Re: Door/Window Marker - How to tell when mirrored?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Door-Window-Marker-How-to-tell-when-mirrored/m-p/120424#M16641</link>
      <description>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.&lt;BR /&gt;
&lt;BR /&gt;
I commented out all code except for...&lt;BR /&gt;
&lt;BR /&gt;
text2 0,1, WALL_DIRECTION &lt;BR /&gt;
text2 0,2, SYMB_ROTANGLE&lt;BR /&gt;
&lt;BR /&gt;
...and still get the same result. I'm stumped on this one.&lt;BR /&gt;
&lt;BR /&gt;
I have however managed to effectively determine if the wall is mirrored (so to speak) using...&lt;BR /&gt;
&lt;BR /&gt;
if AC_WIDO_REVEAL_SIDE = SAME_SIDE then&lt;BR /&gt;
     windowMirrored = 0&lt;BR /&gt;
else&lt;BR /&gt;
     windowMirrored = 1&lt;BR /&gt;
endif&lt;BR /&gt;
&lt;BR /&gt;
...which I can then use to correct the direction and everything works &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_smile.gif" style="display : inline;" /&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
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.&lt;BR /&gt;
&lt;BR /&gt;
Is there a way I can force the parameter to update when the wall is mirrored (or when a new window is inserted)?</description>
      <pubDate>Thu, 02 Jun 2011 06:00:19 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Door-Window-Marker-How-to-tell-when-mirrored/m-p/120424#M16641</guid>
      <dc:creator>Matt Balaam</dc:creator>
      <dc:date>2011-06-02T06:00:19Z</dc:date>
    </item>
    <item>
      <title>Re: Door/Window Marker - How to tell when mirrored?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Door-Window-Marker-How-to-tell-when-mirrored/m-p/120425#M16642</link>
      <description>Well I am stumped too but glad you have found a solution.&lt;BR /&gt;
&lt;BR /&gt;
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.&lt;BR /&gt;
I gave up on that long ago.&lt;BR /&gt;
I might have to revisit it again though.&lt;BR /&gt;
I am wondering if this may help.&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://archicad-talk.graphisoft.com/viewtopic.php?t=35697" target="_blank"&gt;&lt;LINK_TEXT text="http://archicad-talk.graphisoft.com/vie ... hp?t=35697"&gt;http://archicad-talk.graphisoft.com/viewtopic.php?t=35697&lt;/LINK_TEXT&gt;&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
But I am guessing the settings dialogue still has to be opened to trigger the scripts to run.&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
      <pubDate>Thu, 02 Jun 2011 06:32:35 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Door-Window-Marker-How-to-tell-when-mirrored/m-p/120425#M16642</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2011-06-02T06:32:35Z</dc:date>
    </item>
    <item>
      <title>Re: Door/Window Marker - How to tell when mirrored?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Door-Window-Marker-How-to-tell-when-mirrored/m-p/120426#M16643</link>
      <description>Thanks for your help with this Barry!&lt;BR /&gt;
&lt;BR /&gt;
My current solution is to calculate the orientation in the 2D script as well as the master script.&lt;BR /&gt;
&lt;BR /&gt;
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.&lt;BR /&gt;
&lt;BR /&gt;
I've looked at the linked thread before and agree that the settings would probably have to be opened for the scripts to run.</description>
      <pubDate>Thu, 02 Jun 2011 06:44:16 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Door-Window-Marker-How-to-tell-when-mirrored/m-p/120426#M16643</guid>
      <dc:creator>Matt Balaam</dc:creator>
      <dc:date>2011-06-02T06:44:16Z</dc:date>
    </item>
  </channel>
</rss>

