<?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: Mirror objects boolean in GDL in GDL</title>
    <link>https://community.graphisoft.com/t5/GDL/Mirror-objects-boolean-in-GDL/m-p/222149#M3522</link>
    <description>&lt;BLOCKQUOTE&gt;jeronimoHill wrote:&lt;BR /&gt;
I was looking for how to create a mirror parameter in existing AC library parts through GDL scripting, so the object can be mirrored with a simple click, rather than mirror the geometry manually (for instance, a sink but with the door turning the other way).
&lt;/BLOCKQUOTE&gt;

&lt;BR /&gt;
All objects already have a 'mirror' option - one click and the entire object is mirrored.&lt;BR /&gt;
This sets the SYMB_MIRRORED value.&lt;BR /&gt;
No need to do anything in GDL.&lt;BR /&gt;
&lt;BR /&gt;
If you want to mirror the sink but not the door in a single object, then yes, you need to use MUL commands flip the part of the object in the direction you want (both 2D and 3D scripts).&lt;BR /&gt;
Create a boolean parameter 'flip_sink'.&lt;BR /&gt;
&lt;BR /&gt;
2D script...
&lt;PRE&gt;IF flip_sink = 1 then
MUL2 -1,1
sink script here
DEL 1
ENDIF&lt;/PRE&gt;

3D script...
&lt;PRE&gt;IF flip_sink = 1 then
MULx -1
sink script here
DEL 1
ENDIF&lt;/PRE&gt;

&lt;BR /&gt;
Barry.</description>
    <pubDate>Mon, 16 Aug 2021 16:18:03 GMT</pubDate>
    <dc:creator>Barry Kelly</dc:creator>
    <dc:date>2021-08-16T16:18:03Z</dc:date>
    <item>
      <title>Mirror objects boolean in GDL</title>
      <link>https://community.graphisoft.com/t5/GDL/Mirror-objects-boolean-in-GDL/m-p/222148#M3521</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;Hi all,&lt;BR /&gt;&lt;BR /&gt;I'm relatively new in GDL and creating scripts. &lt;BR /&gt;I was looking for how to create a mirror parameter in existing AC library parts through GDL scripting, so the object can be mirrored with a simple click, rather than mirror the geometry manually (for instance, a sink but with the door turning the other way).&lt;BR /&gt;I came across commands and variables like MULX, SYMB_MIRRORED, but I can't really put together how to create a checkbox parameter to mirror the object.&lt;BR /&gt;&lt;BR /&gt;Is there a simple GDL script for this?&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;/DIV&gt;</description>
      <pubDate>Tue, 14 Sep 2021 06:52:53 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Mirror-objects-boolean-in-GDL/m-p/222148#M3521</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-09-14T06:52:53Z</dc:date>
    </item>
    <item>
      <title>Re: Mirror objects boolean in GDL</title>
      <link>https://community.graphisoft.com/t5/GDL/Mirror-objects-boolean-in-GDL/m-p/222149#M3522</link>
      <description>&lt;BLOCKQUOTE&gt;jeronimoHill wrote:&lt;BR /&gt;
I was looking for how to create a mirror parameter in existing AC library parts through GDL scripting, so the object can be mirrored with a simple click, rather than mirror the geometry manually (for instance, a sink but with the door turning the other way).
&lt;/BLOCKQUOTE&gt;

&lt;BR /&gt;
All objects already have a 'mirror' option - one click and the entire object is mirrored.&lt;BR /&gt;
This sets the SYMB_MIRRORED value.&lt;BR /&gt;
No need to do anything in GDL.&lt;BR /&gt;
&lt;BR /&gt;
If you want to mirror the sink but not the door in a single object, then yes, you need to use MUL commands flip the part of the object in the direction you want (both 2D and 3D scripts).&lt;BR /&gt;
Create a boolean parameter 'flip_sink'.&lt;BR /&gt;
&lt;BR /&gt;
2D script...
&lt;PRE&gt;IF flip_sink = 1 then
MUL2 -1,1
sink script here
DEL 1
ENDIF&lt;/PRE&gt;

3D script...
&lt;PRE&gt;IF flip_sink = 1 then
MULx -1
sink script here
DEL 1
ENDIF&lt;/PRE&gt;

&lt;BR /&gt;
Barry.</description>
      <pubDate>Mon, 16 Aug 2021 16:18:03 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Mirror-objects-boolean-in-GDL/m-p/222149#M3522</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2021-08-16T16:18:03Z</dc:date>
    </item>
  </channel>
</rss>

