<?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: Label in mirrored hotlink in GDL</title>
    <link>https://community.graphisoft.com/t5/GDL/Label-in-mirrored-hotlink/m-p/250033#M4191</link>
    <description>Thanks Peter.  Yes, I've added a 'Used in Hotlink' parameter.  Haven't got the logic working yet, but so far it's promising.</description>
    <pubDate>Tue, 01 Jun 2021 20:52:03 GMT</pubDate>
    <dc:creator>Bruce</dc:creator>
    <dc:date>2021-06-01T20:52:03Z</dc:date>
    <item>
      <title>Label in mirrored hotlink</title>
      <link>https://community.graphisoft.com/t5/GDL/Label-in-mirrored-hotlink/m-p/250025#M4183</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;Hello,&lt;BR /&gt;I would like to ask if there is a function in gdl to check if hotlink in which the object is located has been mirrored. To be more specific I am using wall labels in modules. Without this function, hotlinks are almost useless.&lt;BR /&gt;Best regards,&lt;BR /&gt;Rafał.&lt;/DIV&gt;</description>
      <pubDate>Tue, 14 Sep 2021 07:48:37 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Label-in-mirrored-hotlink/m-p/250025#M4183</guid>
      <dc:creator>rav668</dc:creator>
      <dc:date>2021-09-14T07:48:37Z</dc:date>
    </item>
    <item>
      <title>Re: Label in mirrored hotlink</title>
      <link>https://community.graphisoft.com/t5/GDL/Label-in-mirrored-hotlink/m-p/250026#M4184</link>
      <description>No, I don't think there is such a function or command in GDL. A Library Part can know whether it itself is mirrored, but there is no command that would give information about the Hotlinked Module file the Library Part is located in.&lt;BR /&gt;
I looked through the GDL Reference Guide but I have not found anything that could accomplish this.</description>
      <pubDate>Wed, 10 Mar 2021 10:33:44 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Label-in-mirrored-hotlink/m-p/250026#M4184</guid>
      <dc:creator>Laszlo Nagy</dc:creator>
      <dc:date>2021-03-10T10:33:44Z</dc:date>
    </item>
    <item>
      <title>Re: Label in mirrored hotlink</title>
      <link>https://community.graphisoft.com/t5/GDL/Label-in-mirrored-hotlink/m-p/250027#M4185</link>
      <description>Thank you for your reply. Unfortunately, I have to label each module manually  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_sad.gif" style="display : inline;" /&gt; I suggest Graphisoft creating this function in GDL. It seems very easy to do taking into account the fact, that there is a parameter of hotlink which describes if it is mirrored or not.</description>
      <pubDate>Tue, 16 Mar 2021 12:01:44 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Label-in-mirrored-hotlink/m-p/250027#M4185</guid>
      <dc:creator>rav668</dc:creator>
      <dc:date>2021-03-16T12:01:44Z</dc:date>
    </item>
    <item>
      <title>Re: Label in mirrored hotlink</title>
      <link>https://community.graphisoft.com/t5/GDL/Label-in-mirrored-hotlink/m-p/250028#M4186</link>
      <description>SYMB_MIRRORED combines hotlink mirroring and element mirroring. As a result, it doesn't matter if an object is shown via a hotlink or placed directly into the plan.&lt;BR /&gt;
Do you need only one component of the mirroring?</description>
      <pubDate>Tue, 16 Mar 2021 18:36:22 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Label-in-mirrored-hotlink/m-p/250028#M4186</guid>
      <dc:creator>Peter Baksa</dc:creator>
      <dc:date>2021-03-16T18:36:22Z</dc:date>
    </item>
    <item>
      <title>Re: Label in mirrored hotlink</title>
      <link>https://community.graphisoft.com/t5/GDL/Label-in-mirrored-hotlink/m-p/250029#M4187</link>
      <description>&lt;BLOCKQUOTE&gt;Peter wrote:&lt;BR /&gt;
SYMB_MIRRORED combines hotlink mirroring and element mirroring. As a result, it doesn't matter if an object is shown via a hotlink or placed directly into the plan.&lt;BR /&gt;
Do you need only one component of the mirroring?
&lt;/BLOCKQUOTE&gt;

I have used this in my labels and they work perfectly with hotlinked modules in any position</description>
      <pubDate>Wed, 17 Mar 2021 21:58:43 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Label-in-mirrored-hotlink/m-p/250029#M4187</guid>
      <dc:creator>Kristian Bursell</dc:creator>
      <dc:date>2021-03-17T21:58:43Z</dc:date>
    </item>
    <item>
      <title>Re: Label in mirrored hotlink</title>
      <link>https://community.graphisoft.com/t5/GDL/Label-in-mirrored-hotlink/m-p/250030#M4188</link>
      <description>Kristian,&lt;BR /&gt;
&lt;BR /&gt;
Can you expand on that?  The GDL reference guide under SYMB_MIRRORED says: &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;The mirrored state of a hotlink is not included&lt;E&gt;&lt;/E&gt;&lt;BR /&gt;
&lt;BR /&gt;
Also, I tried using this in a wall label I'm looking at, and it returns 0 regardless of mirrored state.</description>
      <pubDate>Mon, 31 May 2021 07:07:31 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Label-in-mirrored-hotlink/m-p/250030#M4188</guid>
      <dc:creator>Bruce</dc:creator>
      <dc:date>2021-05-31T07:07:31Z</dc:date>
    </item>
    <item>
      <title>Re: Label in mirrored hotlink</title>
      <link>https://community.graphisoft.com/t5/GDL/Label-in-mirrored-hotlink/m-p/250031#M4189</link>
      <description>This is the current result of the label:&lt;BR /&gt;</description>
      <pubDate>Mon, 31 May 2021 07:08:26 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Label-in-mirrored-hotlink/m-p/250031#M4189</guid>
      <dc:creator>Bruce</dc:creator>
      <dc:date>2021-05-31T07:08:26Z</dc:date>
    </item>
    <item>
      <title>Re: Label in mirrored hotlink</title>
      <link>https://community.graphisoft.com/t5/GDL/Label-in-mirrored-hotlink/m-p/250032#M4190</link>
      <description>Hi Bruce,&lt;BR /&gt;
&lt;BR /&gt;
I might have overlooked that that you are labelling a wall. Walls don't have a SYMB_MIRRORED state, they use WALL_FLIPPED. This also gets flipped when the hotlink is mirrored.&lt;BR /&gt;
Also labels don't know which side of the labelled element they are at - I have a feeling that is also missing information you would need. You could try something with LABEL_POSITION and assuming a fixed parallel or perpendicular label orientation. But maybe it is easier to solve with a parameter instead.</description>
      <pubDate>Tue, 01 Jun 2021 16:56:05 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Label-in-mirrored-hotlink/m-p/250032#M4190</guid>
      <dc:creator>Peter Baksa</dc:creator>
      <dc:date>2021-06-01T16:56:05Z</dc:date>
    </item>
    <item>
      <title>Re: Label in mirrored hotlink</title>
      <link>https://community.graphisoft.com/t5/GDL/Label-in-mirrored-hotlink/m-p/250033#M4191</link>
      <description>Thanks Peter.  Yes, I've added a 'Used in Hotlink' parameter.  Haven't got the logic working yet, but so far it's promising.</description>
      <pubDate>Tue, 01 Jun 2021 20:52:03 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Label-in-mirrored-hotlink/m-p/250033#M4191</guid>
      <dc:creator>Bruce</dc:creator>
      <dc:date>2021-06-01T20:52:03Z</dc:date>
    </item>
    <item>
      <title>Re: Label in mirrored hotlink</title>
      <link>https://community.graphisoft.com/t5/GDL/Label-in-mirrored-hotlink/m-p/307514#M4192</link>
      <description>&lt;P&gt;Anybody got a fix for this problem, with the same label or any other one? This is what I get with NCS Wall Label 24. Right is module placed with no mirroring; left is mirrored, with all wall labels flipped making the whole thing unusable. &lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2021-09-27 at 10.42.21 AM.png" style="width: 999px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/5341i962B8B849036ED87/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2021-09-27 at 10.42.21 AM.png" alt="Screen Shot 2021-09-27 at 10.42.21 AM.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Sep 2021 13:48:59 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Label-in-mirrored-hotlink/m-p/307514#M4192</guid>
      <dc:creator>Ignacio Azpiazu</dc:creator>
      <dc:date>2021-09-27T13:48:59Z</dc:date>
    </item>
    <item>
      <title>Re: Label in mirrored hotlink</title>
      <link>https://community.graphisoft.com/t5/GDL/Label-in-mirrored-hotlink/m-p/307583#M4193</link>
      <description>&lt;P&gt;Hi all, I cant remember exactly how I got it to work and I don't have time to look into it right now but I will play around with it later this week. From memory I used the the wall_direction parameter in conjunction with symb_mirrored.&lt;/P&gt;&lt;P&gt;Sorry&amp;nbsp;&lt;a href="https://community.graphisoft.com/t5/user/viewprofilepage/user-id/8946"&gt;@Bruce&lt;/a&gt;&amp;nbsp;I didn't see your question earlier, I must have missed the notification some how. I will get a solution for you ASAP as I know I did get it working.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Sep 2021 22:39:30 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Label-in-mirrored-hotlink/m-p/307583#M4193</guid>
      <dc:creator>Kristian Bursell</dc:creator>
      <dc:date>2021-09-27T22:39:30Z</dc:date>
    </item>
    <item>
      <title>Re: Label in mirrored hotlink</title>
      <link>https://community.graphisoft.com/t5/GDL/Label-in-mirrored-hotlink/m-p/308268#M4194</link>
      <description>&lt;P&gt;I used a user-set parameter (hotlink_use) combined with the WALL_FLIPPED AC parameter to get the label to behave correctly:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;flip = 1&lt;BR /&gt;IF hotlink_use &amp;amp; WALL_FLIPPED THEN flip = NOT(flip)&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Oct 2021 00:12:07 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Label-in-mirrored-hotlink/m-p/308268#M4194</guid>
      <dc:creator>Bruce</dc:creator>
      <dc:date>2021-10-05T00:12:07Z</dc:date>
    </item>
    <item>
      <title>Re: Label in mirrored hotlink</title>
      <link>https://community.graphisoft.com/t5/GDL/Label-in-mirrored-hotlink/m-p/308279#M4195</link>
      <description>&lt;P&gt;Bruce, could you post that fixed label? I can't understand how that fits into the script, and I don't know whether it is missing lines that should be obvious to anybody but me, or just different parameter or variable names in your label (I would try to fix a USA library label).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Oct 2021 01:43:35 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Label-in-mirrored-hotlink/m-p/308279#M4195</guid>
      <dc:creator>Ignacio Azpiazu</dc:creator>
      <dc:date>2021-10-05T01:43:35Z</dc:date>
    </item>
    <item>
      <title>Re: Label in mirrored hotlink</title>
      <link>https://community.graphisoft.com/t5/GDL/Label-in-mirrored-hotlink/m-p/308289#M4196</link>
      <description>&lt;P&gt;&amp;nbsp;I will try to post more info when I have some more time...&lt;/P&gt;</description>
      <pubDate>Tue, 05 Oct 2021 02:08:14 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Label-in-mirrored-hotlink/m-p/308289#M4196</guid>
      <dc:creator>Bruce</dc:creator>
      <dc:date>2021-10-05T02:08:14Z</dc:date>
    </item>
    <item>
      <title>Re: Label in mirrored hotlink</title>
      <link>https://community.graphisoft.com/t5/GDL/Label-in-mirrored-hotlink/m-p/308317#M4197</link>
      <description>&lt;P&gt;So, as stated earlier, what you need to do is add a boolean parameter that the user sets.&amp;nbsp; I have called this "hotlink_use" with the description of "Flip in mirrored hotlink".&amp;nbsp; Default OFF.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With a wall label, you also will probably have a parameter already where the user can choose which side of the wall the label appears.&amp;nbsp; In my part, this is a length parameter is called "flipmark1" (forgive the naming...I inherited the part), and can have a positive or negative value (a hard-coded distance for the label).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the 2D script, I have a flag variable to use in my ADD2 statements depending on whether the label should be flipped or not.&amp;nbsp; This is named 'flip'.&amp;nbsp; I then run a series of tests to offset the label to the correct side of the wall.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the below sample script, "hdepth" is the offset Y coordinate of the label.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;flip = (flipmark1 &amp;gt;= 0)&amp;nbsp; ! Set flip to 1 or 0&lt;BR /&gt;&lt;BR /&gt;IF hotlink_use &amp;amp; WALL_FLIPPED THEN&lt;BR /&gt;&amp;nbsp; &amp;nbsp;flip = NOT(flip) ! Adjust for mirrored hotlinks (selected by user)&lt;BR /&gt;ENDIF&lt;/P&gt;&lt;P&gt;flip = flip-1*NOT(flip)&amp;nbsp; ! change 0 and 1 to -1 or 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;hdepth = A*(GLOB_SCALE/100) * flip&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ADD2 0, hdepth&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There will be more to your script, but this is the fundamentals of the transformations I've used.&amp;nbsp; I hope this has helped.&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Current.jpg" style="width: 999px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/5581i49A05B1F5D5EB16C/image-size/large?v=v2&amp;amp;px=999" role="button" title="Current.jpg" alt="Current.jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="New.jpg" style="width: 999px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/5582i8DF4F868636FAA5D/image-size/large?v=v2&amp;amp;px=999" role="button" title="New.jpg" alt="New.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Oct 2021 10:12:29 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Label-in-mirrored-hotlink/m-p/308317#M4197</guid>
      <dc:creator>Bruce</dc:creator>
      <dc:date>2021-10-05T10:12:29Z</dc:date>
    </item>
  </channel>
</rss>

