<?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: Archicad's GDL lamp is duplicating an element when adding &amp;quot;ROTY&amp;quot; in GDL</title>
    <link>https://community.graphisoft.com/t5/GDL/Archicad-s-GDL-lamp-is-duplicating-an-element-when-adding-quot/m-p/330874#M2598</link>
    <description>&lt;P&gt;The code section just above your highlighted bit looks the same? Is that the original part that you copied? Should you not just be adding the Y rotation to the start of that section rather than copying it? What are the goSUBs (I do not have access to 25...)? My guess is that "Mount" are the various rail options, so since you have copied the section, you have one being generated by the previous, and one from your rotation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ling.&lt;/P&gt;</description>
    <pubDate>Thu, 24 Feb 2022 01:22:14 GMT</pubDate>
    <dc:creator>Lingwisyer</dc:creator>
    <dc:date>2022-02-24T01:22:14Z</dc:date>
    <item>
      <title>Archicad's GDL lamp is duplicating an element when adding "ROTY"</title>
      <link>https://community.graphisoft.com/t5/GDL/Archicad-s-GDL-lamp-is-duplicating-an-element-when-adding-quot/m-p/330814#M2597</link>
      <description>&lt;P&gt;Help please! I've modified Archicad's "Spotlight Kit 25" Lamp object to rotate along its "Y" axis. But when I rotate it, one of its original elements gets duplicated, as if I made a copy as I was rotating.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The object from the screenshot has been rotated 15deg around its "y" axis and 15deg around its "x" axis.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;FYI: I'm not a programer but I managed to add the new parameter to the interface and all, I just can't get this "duplicated" element to disappear, I'm sure I copy-pasted some code line without really understanding what it does and that is generating this issue.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On a separate note, why can't I rotate around the Y axis by default?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2022-02-23 at 12.48.23.png" style="width: 997px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/19297i66D34ED2B3D818B0/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2022-02-23 at 12.48.23.png" alt="Screen Shot 2022-02-23 at 12.48.23.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2022-02-23 at 12.54.31.png" style="width: 999px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/19298iC71B3C7BEDAE945E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2022-02-23 at 12.54.31.png" alt="Screen Shot 2022-02-23 at 12.54.31.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2022-02-23 at 12.48.47.png" style="width: 999px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/19299i76C7A4E5DEEFCAFF/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2022-02-23 at 12.48.47.png" alt="Screen Shot 2022-02-23 at 12.48.47.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Feb 2022 18:59:36 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Archicad-s-GDL-lamp-is-duplicating-an-element-when-adding-quot/m-p/330814#M2597</guid>
      <dc:creator>mendezarcediego</dc:creator>
      <dc:date>2022-02-23T18:59:36Z</dc:date>
    </item>
    <item>
      <title>Re: Archicad's GDL lamp is duplicating an element when adding "ROTY"</title>
      <link>https://community.graphisoft.com/t5/GDL/Archicad-s-GDL-lamp-is-duplicating-an-element-when-adding-quot/m-p/330874#M2598</link>
      <description>&lt;P&gt;The code section just above your highlighted bit looks the same? Is that the original part that you copied? Should you not just be adding the Y rotation to the start of that section rather than copying it? What are the goSUBs (I do not have access to 25...)? My guess is that "Mount" are the various rail options, so since you have copied the section, you have one being generated by the previous, and one from your rotation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ling.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Feb 2022 01:22:14 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Archicad-s-GDL-lamp-is-duplicating-an-element-when-adding-quot/m-p/330874#M2598</guid>
      <dc:creator>Lingwisyer</dc:creator>
      <dc:date>2022-02-24T01:22:14Z</dc:date>
    </item>
    <item>
      <title>Re: Archicad's GDL lamp is duplicating an element when adding "ROTY"</title>
      <link>https://community.graphisoft.com/t5/GDL/Archicad-s-GDL-lamp-is-duplicating-an-element-when-adding-quot/m-p/330879#M2599</link>
      <description>&lt;P&gt;I did change the Y rotation on that new section, I have no idea what "goSUB" does. I don't know how to save as an earlier version. Let's see if I can paste all the code in several attachments. Here's that section of that added code meanwhile, along with the section I copied it from:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;! --- Rotación en el eje X (original section I copied from)---

rotx rotAngleX

if bProject2D &amp;amp; ABS(rotAngleX) &amp;lt; EPS then
mulz -1
endif

if iMountType &amp;lt;&amp;gt; 3 and iMountType &amp;lt;&amp;gt; 4 and iMountType &amp;lt;&amp;gt; 5 then
if iMountCover = 3 then
mount_cover_h = 0
else
mount_cover_h = 0.04
if iMountCover = 1 then gosub "MOUNTCOVER_1"
if iMountCover = 2 then gosub "MOUNTCOVER_2"
endif
endif

if iMountType = 1 then
gosub "MOUNT_1"
endif
if iMountType = 2 then
gosub "MOUNT_2"
endif
if iMountType = 3 then
gosub "MOUNT_3"
endif
if iMountType = 4 then
gosub "MOUNT_4"
endif
if iMountType = 5 then
gosub "MOUNT_5"
endif
if iMountType = 6 then
gosub "MOUNT_6"
endif
if iMountType = 7 then
gosub "MOUNT_7"
endif
if iMountType = 8 then
gosub "MOUNT_8"
endif
if iMountType = 9 then
gosub "MOUNT_9"
endif
if iMountType = 10 then
gosub "MOUNT_10"
endif
if iMountType = 11 then
gosub "MOUNT_11"
endif

if bProject2D &amp;amp; ABS(rotAngleX) &amp;lt; EPS then
del 1
endif

actrot_x = 90

! --- Rotación en el eje Y (added code)---

roty rotAngleY

if bProject2D &amp;amp; ABS(rotAngleY) &amp;lt; EPS then
mulz -1
endif

if iMountType &amp;lt;&amp;gt; 3 and iMountType &amp;lt;&amp;gt; 4 and iMountType &amp;lt;&amp;gt; 5 then
if iMountCover = 3 then
mount_cover_h = 0
else
mount_cover_h = 0.04
if iMountCover = 1 then gosub "MOUNTCOVER_1"
if iMountCover = 2 then gosub "MOUNTCOVER_2"
endif
endif

if iMountType = 1 then
gosub "MOUNT_1"
endif
if iMountType = 2 then
gosub "MOUNT_2"
endif
if iMountType = 3 then
gosub "MOUNT_3"
endif
if iMountType = 4 then
gosub "MOUNT_4"
endif
if iMountType = 5 then
gosub "MOUNT_5"
endif
if iMountType = 6 then
gosub "MOUNT_6"
endif
if iMountType = 7 then
gosub "MOUNT_7"
endif
if iMountType = 8 then
gosub "MOUNT_8"
endif
if iMountType = 9 then
gosub "MOUNT_9"
endif
if iMountType = 10 then
gosub "MOUNT_10"
endif
if iMountType = 11 then
gosub "MOUNT_11"
endif

if bProject2D &amp;amp; ABS(rotAngleY) &amp;lt; EPS then
del 1
endif

actrot_y = 90&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Feb 2022 21:31:16 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Archicad-s-GDL-lamp-is-duplicating-an-element-when-adding-quot/m-p/330879#M2599</guid>
      <dc:creator>mendezarcediego</dc:creator>
      <dc:date>2022-02-28T21:31:16Z</dc:date>
    </item>
    <item>
      <title>Re: Archicad's GDL lamp is duplicating an element when adding "ROTY"</title>
      <link>https://community.graphisoft.com/t5/GDL/Archicad-s-GDL-lamp-is-duplicating-an-element-when-adding-quot/m-p/330882#M2600</link>
      <description>&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;&lt;STRONG&gt;goSUB&lt;/STRONG&gt; is a command that links a secondary portion of script. These are usually found at the bottom after the&amp;nbsp;&lt;STRONG&gt;END &lt;/STRONG&gt;command.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Any clue what bProject2D is? Not quite sure what the following is doing...&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-60px"&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;&lt;EM&gt;if bProject2D &amp;amp; ABS(rotAngleY) &amp;lt; EPS then...&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;but your &lt;STRONG&gt;ROTy&lt;/STRONG&gt; should just go after the original &lt;STRONG&gt;ROTx&lt;/STRONG&gt;. This could also be written as&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-60px"&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;&lt;EM&gt;&lt;STRONG&gt;ROT&lt;/STRONG&gt;&amp;nbsp;rotAngleX,&amp;nbsp;rotAngleY, 0&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Same with your closing additions.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;There is no need to duplicate all of the &lt;STRONG&gt;goSUB&lt;/STRONG&gt; commands.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Ling.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Feb 2022 02:36:41 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Archicad-s-GDL-lamp-is-duplicating-an-element-when-adding-quot/m-p/330882#M2600</guid>
      <dc:creator>Lingwisyer</dc:creator>
      <dc:date>2022-02-24T02:36:41Z</dc:date>
    </item>
    <item>
      <title>Re: Archicad's GDL lamp is duplicating an element when adding "ROTY"</title>
      <link>https://community.graphisoft.com/t5/GDL/Archicad-s-GDL-lamp-is-duplicating-an-element-when-adding-quot/m-p/330885#M2601</link>
      <description>&lt;P&gt;Looking at this quickly, you have duplicated a whole section of code.&lt;/P&gt;
&lt;P&gt;That is why it is creating a second lamp (or part of the lamp).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just add the ROTy next to the ROTx and then an extra DEL 1 at the end of the script that next to the one undoing the ROTx.&lt;/P&gt;
&lt;P&gt;Don't duplicate all of the GOSUBs which are placing the mount.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Depending on whether you have ROTx first or ROTy first will depend on how it rotates in 3D if you use bot parameters.&lt;/P&gt;
&lt;P&gt;If you only set a value for one it will only rotate in that one axis.&lt;/P&gt;
&lt;P&gt;But if you set values for both, then it will rotate one axis first and then rotate the second axis taking into account the rotation of the first axis - if that makes sense.&lt;/P&gt;
&lt;P&gt;This may or not be what you are trying to achieve.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Barry.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Feb 2022 02:13:41 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Archicad-s-GDL-lamp-is-duplicating-an-element-when-adding-quot/m-p/330885#M2601</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2022-02-24T02:13:41Z</dc:date>
    </item>
    <item>
      <title>Re: Archicad's GDL lamp is duplicating an element when adding "ROTY"</title>
      <link>https://community.graphisoft.com/t5/GDL/Archicad-s-GDL-lamp-is-duplicating-an-element-when-adding-quot/m-p/330951#M2602</link>
      <description>&lt;P&gt;You are duplicating the code that generates the geometry. All you need to add is the additional transformation. Add/edit these 5 lines in the original code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;roty rotAngleY                           !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
rotx rotAngleX


if bProject2D &amp;amp; ABS(rotAngleX)&amp;amp; ABS(rotAngleY) &amp;lt; EPS then   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
mulz -1
endif

if iMountType &amp;lt;&amp;gt; 3 and iMountType &amp;lt;&amp;gt; 4 and iMountType &amp;lt;&amp;gt; 5 then
if iMountCover = 3 then
mount_cover_h = 0
else
mount_cover_h = 0.04
if iMountCover = 1 then gosub "MOUNTCOVER_1"
if iMountCover = 2 then gosub "MOUNTCOVER_2"
endif
endif

if iMountType = 1 then
gosub "MOUNT_1"
endif
if iMountType = 2 then
gosub "MOUNT_2"
endif
if iMountType = 3 then
gosub "MOUNT_3"
endif
if iMountType = 4 then
gosub "MOUNT_4"
endif
if iMountType = 5 then
gosub "MOUNT_5"
endif
if iMountType = 6 then
gosub "MOUNT_6"
endif
if iMountType = 7 then
gosub "MOUNT_7"
endif
if iMountType = 8 then
gosub "MOUNT_8"
endif
if iMountType = 9 then
gosub "MOUNT_9"
endif
if iMountType = 10 then
gosub "MOUNT_10"
endif
if iMountType = 11 then
gosub "MOUNT_11"
endif

if bProject2D &amp;amp; ABS(rotAngleX)&amp;amp; ABS(rotAngleY) &amp;lt; EPS then     !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
del 1
endif



actrot_x = 90

! ==============================================================================
! Spots &amp;amp; Light Cone
! ==============================================================================

_sumDistZ = 0

for actsp=1 to numSpots

actspotangle_h = spotangle_h[actsp]
actspotangle_v = spotangle_v[actsp]

add xSpotPos[actsp], ySpotPos[actsp], zSpotPos[actsp]
if GLOB_CONTEXT = 23 or GLOB_CONTEXT = 24 then
if (iSpotOrientation = 3) or (iSpotOrientation = 2 and actsp = 1) then
resol 32
pen penSpotPosition
model wire
circle hotspotdist
rotz -actspotangle_h
roty 90
arc hotspot2dist, 0, 90
del 2
model solid
resol gs_resol
endif
endif

pen gs_cont_pen

rotx actrot_x

if bProject2D &amp;amp; ABS(rotAngleX)&amp;amp; ABS(rotAngleY) &amp;lt; EPS then   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
addy 0.5
muly -1
endif
gosub actspot
if bProject2D &amp;amp; ABS(rotAngleX)&amp;amp; ABS(rotAngleY) &amp;lt; EPS then     !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
del 2
endif

gosub "LIGHTCONE"
del 2&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Feb 2022 21:31:48 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Archicad-s-GDL-lamp-is-duplicating-an-element-when-adding-quot/m-p/330951#M2602</guid>
      <dc:creator>julienK</dc:creator>
      <dc:date>2022-02-28T21:31:48Z</dc:date>
    </item>
    <item>
      <title>Re: Archicad's GDL lamp is duplicating an element when adding "ROTY"</title>
      <link>https://community.graphisoft.com/t5/GDL/Archicad-s-GDL-lamp-is-duplicating-an-element-when-adding-quot/m-p/330971#M2603</link>
      <description>&lt;P&gt;Thanks a lot for the help!, in deed that was the problem. One last question, I used your code but I now get a minor warning saying that "&lt;STRONG&gt;Use of real types can result in precision problems&lt;/STRONG&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;STRONG&gt;at line 295/343/381/386 in the 3D script of file Spotlight Kit 25 Y.gsm."&amp;nbsp;&lt;/STRONG&gt;Should I worry about it? and Can it be fixed? ( I'm not a programmer as you can tell) I read in some other conversation this that when the if statement is correct it shouldn't be a problem but this this was all dealing with numbers.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Feb 2022 17:56:13 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Archicad-s-GDL-lamp-is-duplicating-an-element-when-adding-quot/m-p/330971#M2603</guid>
      <dc:creator>mendezarcediego</dc:creator>
      <dc:date>2022-02-24T17:56:13Z</dc:date>
    </item>
    <item>
      <title>Re: Archicad's GDL lamp is duplicating an element when adding "ROTY"</title>
      <link>https://community.graphisoft.com/t5/GDL/Archicad-s-GDL-lamp-is-duplicating-an-element-when-adding-quot/m-p/331011#M2604</link>
      <description>&lt;P&gt;I can't be sure&amp;nbsp; but since you get 4 errors i'm gonna assume the lines refered to in the error message are the one where you added &lt;STRONG&gt;&amp;amp; ABS(rotAngleY)&lt;/STRONG&gt; .&lt;/P&gt;&lt;P&gt;To fix this error make sure on the parameter definition page that the rotAngleY parameter you created is&amp;nbsp; of type &lt;STRONG&gt;angle&lt;/STRONG&gt;.&amp;nbsp; !changed length to angle (thx barry)&lt;/P&gt;&lt;P&gt;The error is normal and won't have any&amp;nbsp; incidence outside of the gdl editor,&amp;nbsp; it won't show anything when you use the objet&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture d’écran 2022-02-25 085115.jpg" style="width: 766px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/19361i88DAFA178FD18A23/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture d’écran 2022-02-25 085115.jpg" alt="Capture d’écran 2022-02-25 085115.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Feb 2022 12:14:12 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Archicad-s-GDL-lamp-is-duplicating-an-element-when-adding-quot/m-p/331011#M2604</guid>
      <dc:creator>julienK</dc:creator>
      <dc:date>2022-02-25T12:14:12Z</dc:date>
    </item>
    <item>
      <title>Re: Archicad's GDL lamp is duplicating an element when adding "ROTY"</title>
      <link>https://community.graphisoft.com/t5/GDL/Archicad-s-GDL-lamp-is-duplicating-an-element-when-adding-quot/m-p/331018#M2605</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.graphisoft.com/t5/user/viewprofilepage/user-id/11677"&gt;@julienK&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I can't be sure&amp;nbsp; but since you get 4 errors i'm gonna assume the lines refered to in the error message are the one where you added &lt;STRONG&gt;&amp;amp; ABS(rotAngleY)&lt;/STRONG&gt; .&lt;/P&gt;
&lt;P&gt;To fix this error make sure on the parameter definition page that the rotAngleY parameter you created is&amp;nbsp; of type length.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;No the angle parameter needs to be an 'angle' type - not length.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The error seems to be these lines I think ...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if bProject2D &amp;amp; ABS(rotAngleX)&lt;STRONG&gt;&amp;amp; ABS(rotAngleY)&lt;/STRONG&gt; &amp;lt; EPS then&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have no idea what 'bProject2D' and I assume 'EPS' is a very small decimal number.&lt;/P&gt;
&lt;P&gt;I assume 'bProject2D' is a boolean parameter - i.e. 1 or 0&lt;/P&gt;
&lt;P&gt;I think the warning is just saying you are trying to compare a real number and angles that could have any decimal precision with the value of 'EPS".&lt;/P&gt;
&lt;P&gt;The probably is not problem - just a warning.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See here for one explanation ...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.graphisoft.com/t5/Design-forum/Errors-when-loading-objects-from-8-1/m-p/48630?p=24377#24377" target="_blank"&gt;https://community.graphisoft.com/t5/Design-forum/Errors-when-loading-objects-from-8-1/m-p/48630?p=24377#24377&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Search for ... Use of real types can result in precision problems&lt;/P&gt;
&lt;P&gt;and you will see more posts.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Barry.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Feb 2022 08:31:33 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Archicad-s-GDL-lamp-is-duplicating-an-element-when-adding-quot/m-p/331018#M2605</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2022-02-25T08:31:33Z</dc:date>
    </item>
    <item>
      <title>Re: Archicad's GDL lamp is duplicating an element when adding "ROTY"</title>
      <link>https://community.graphisoft.com/t5/GDL/Archicad-s-GDL-lamp-is-duplicating-an-element-when-adding-quot/m-p/331019#M2606</link>
      <description>&lt;P&gt;Oops... didn't have my coffee yet when I typed this.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Feb 2022 08:33:31 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Archicad-s-GDL-lamp-is-duplicating-an-element-when-adding-quot/m-p/331019#M2606</guid>
      <dc:creator>julienK</dc:creator>
      <dc:date>2022-02-25T08:33:31Z</dc:date>
    </item>
    <item>
      <title>Re: Archicad's GDL lamp is duplicating an element when adding "ROTY"</title>
      <link>https://community.graphisoft.com/t5/GDL/Archicad-s-GDL-lamp-is-duplicating-an-element-when-adding-quot/m-p/331023#M2607</link>
      <description>&lt;P&gt;From my understanding, the EPS lines will not be the ones giving you the precision error as it only turns up when you use equals. Rounded, it might be equal, but in reality it may not. Hence &amp;lt; EPS is used as it is essentially zero without actually being zero.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Feb 2022 09:10:01 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Archicad-s-GDL-lamp-is-duplicating-an-element-when-adding-quot/m-p/331023#M2607</guid>
      <dc:creator>Lingwisyer</dc:creator>
      <dc:date>2022-02-25T09:10:01Z</dc:date>
    </item>
    <item>
      <title>Re: Archicad's GDL lamp is duplicating an element when adding "ROTY"</title>
      <link>https://community.graphisoft.com/t5/GDL/Archicad-s-GDL-lamp-is-duplicating-an-element-when-adding-quot/m-p/331030#M2608</link>
      <description>&lt;P&gt;I checked on my pc&amp;nbsp; and it is indeed the lines with if bProject2D &amp;amp; ABS(rotAngleX)&lt;STRONG&gt;&amp;amp; ABS(rotAngleY)&lt;/STRONG&gt; &amp;lt; EPS then that are generating the error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My guess is that since bProject2D is a boolean&amp;nbsp; and it is evaluated as a number as its value is checked against EPS Archicad treats is as a real number.&lt;/P&gt;&lt;P&gt;and since this line compares a real to a float you get this warning.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Feb 2022 12:10:16 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Archicad-s-GDL-lamp-is-duplicating-an-element-when-adding-quot/m-p/331030#M2608</guid>
      <dc:creator>julienK</dc:creator>
      <dc:date>2022-02-25T12:10:16Z</dc:date>
    </item>
    <item>
      <title>Re: Archicad's GDL lamp is duplicating an element when adding "ROTY"</title>
      <link>https://community.graphisoft.com/t5/GDL/Archicad-s-GDL-lamp-is-duplicating-an-element-when-adding-quot/m-p/331131#M2609</link>
      <description>&lt;P&gt;So the opposite problem? So to get rid of it you would have to split out the bProject2D = 0?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Feb 2022 01:15:47 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Archicad-s-GDL-lamp-is-duplicating-an-element-when-adding-quot/m-p/331131#M2609</guid>
      <dc:creator>Lingwisyer</dc:creator>
      <dc:date>2022-02-28T01:15:47Z</dc:date>
    </item>
    <item>
      <title>Re: Archicad's GDL lamp is duplicating an element when adding "ROTY"</title>
      <link>https://community.graphisoft.com/t5/GDL/Archicad-s-GDL-lamp-is-duplicating-an-element-when-adding-quot/m-p/331147#M2610</link>
      <description>&lt;P&gt;There is no problem.&lt;/P&gt;&lt;P&gt;The error message is a generic one, it just points out that you use different types at the same time, it's just a warning. In this case it doesn't matter and won't cause any problem.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Feb 2022 07:41:46 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Archicad-s-GDL-lamp-is-duplicating-an-element-when-adding-quot/m-p/331147#M2610</guid>
      <dc:creator>julienK</dc:creator>
      <dc:date>2022-02-28T07:41:46Z</dc:date>
    </item>
    <item>
      <title>Re: Archicad's GDL lamp is duplicating an element when adding "ROTY"</title>
      <link>https://community.graphisoft.com/t5/GDL/Archicad-s-GDL-lamp-is-duplicating-an-element-when-adding-quot/m-p/331154#M2611</link>
      <description>&lt;P&gt;Generic and annoying as hell... In one of my objects, the only way I have figured out how to get rid of it is to change all of my A = B to B - EPS &amp;lt; A &amp;lt; B + EPS... What is more annoying is that A and B are defined by condition statements earlier in the script, defining them as equal or not so that I can use a single SUB. Just fills my error report with junk...&lt;/P&gt;</description>
      <pubDate>Mon, 28 Feb 2022 09:27:51 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Archicad-s-GDL-lamp-is-duplicating-an-element-when-adding-quot/m-p/331154#M2611</guid>
      <dc:creator>Lingwisyer</dc:creator>
      <dc:date>2022-02-28T09:27:51Z</dc:date>
    </item>
    <item>
      <title>Re: Archicad's GDL lamp is duplicating an element when adding "ROTY"</title>
      <link>https://community.graphisoft.com/t5/GDL/Archicad-s-GDL-lamp-is-duplicating-an-element-when-adding-quot/m-p/331273#M2612</link>
      <description>&lt;P&gt;Probably you wanted to write&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;... ABS(rotAngleX) &amp;lt; EPS &amp;amp; ABS(rotAngleY) &amp;lt; EPS ...&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;amp; has lower precedence than &amp;lt; so&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;ABS(rotAngleX) &amp;amp; ABS(rotAngleY) &amp;lt; EPS&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;is really&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;(ABS(rotAngleX)) &amp;amp; (ABS(rotAngleY) &amp;lt; EPS)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;where ABS(rotAngleX) is a real number tested as a boolean, so the warning is legitimate.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Mar 2022 09:03:37 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Archicad-s-GDL-lamp-is-duplicating-an-element-when-adding-quot/m-p/331273#M2612</guid>
      <dc:creator>Peter Baksa</dc:creator>
      <dc:date>2022-03-02T09:03:37Z</dc:date>
    </item>
    <item>
      <title>Re: Archicad's GDL lamp is duplicating an element when adding "ROTY"</title>
      <link>https://community.graphisoft.com/t5/GDL/Archicad-s-GDL-lamp-is-duplicating-an-element-when-adding-quot/m-p/331275#M2613</link>
      <description>&lt;P&gt;Hi Peter, yes I thought it would be evaluated as the first line you wrote.&lt;/P&gt;&lt;P&gt;Since it worked written like this I didn't think twice about it.&lt;/P&gt;&lt;P&gt;Thanks for the clarification.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Mar 2022 09:22:50 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Archicad-s-GDL-lamp-is-duplicating-an-element-when-adding-quot/m-p/331275#M2613</guid>
      <dc:creator>julienK</dc:creator>
      <dc:date>2022-03-02T09:22:50Z</dc:date>
    </item>
    <item>
      <title>Re: Archicad's GDL lamp is duplicating an element when adding "ROTY"</title>
      <link>https://community.graphisoft.com/t5/GDL/Archicad-s-GDL-lamp-is-duplicating-an-element-when-adding-quot/m-p/331276#M2614</link>
      <description>&lt;P&gt;The parameters of &lt;A href="https://gdl.graphisoft.com/reference-guide/3d-transformations#ROT_gdlcommand" target="_self"&gt;ROT&lt;/A&gt; are&lt;/P&gt;
&lt;PRE class="programlisting" style="white-space: pre-wrap; color: var(--vscode-editor-foreground); font-family: 'Courier New', Courier, monospace; font-size: 13.2px;"&gt;&lt;STRONG id="ROT_keyword_2.6.7.18.4.1"&gt;ROT&lt;/STRONG&gt; x, y, z, alpha&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/PRE&gt;
&lt;P&gt;a vector to rotate around, not angles in order, and it is an error if you omit some.&lt;/P&gt;
&lt;P&gt;Do you know about some legacy command that isn't in the reference guide?&lt;/P&gt;</description>
      <pubDate>Wed, 02 Mar 2022 09:24:38 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Archicad-s-GDL-lamp-is-duplicating-an-element-when-adding-quot/m-p/331276#M2614</guid>
      <dc:creator>Peter Baksa</dc:creator>
      <dc:date>2022-03-02T09:24:38Z</dc:date>
    </item>
    <item>
      <title>Re: Archicad's GDL lamp is duplicating an element when adding "ROTY"</title>
      <link>https://community.graphisoft.com/t5/GDL/Archicad-s-GDL-lamp-is-duplicating-an-element-when-adding-quot/m-p/332996#M2615</link>
      <description>&lt;P&gt;Sorry for my late response. Thanks for all the help from everyone. I tried your suggestion of using &lt;EM&gt;&amp;lt; if bProject2D &amp;amp; (ABS(rotAngleX)) &amp;amp; (ABS(rotAngleY) &amp;lt; EPS) then &amp;gt;&amp;nbsp;&lt;/EM&gt;but I still get that minor warning, I wonder if I inserted the code incorrectly.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2022 15:01:50 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Archicad-s-GDL-lamp-is-duplicating-an-element-when-adding-quot/m-p/332996#M2615</guid>
      <dc:creator>mendezarcediego</dc:creator>
      <dc:date>2022-03-22T15:01:50Z</dc:date>
    </item>
    <item>
      <title>Re: Archicad's GDL lamp is duplicating an element when adding "ROTY"</title>
      <link>https://community.graphisoft.com/t5/GDL/Archicad-s-GDL-lamp-is-duplicating-an-element-when-adding-quot/m-p/333064#M2616</link>
      <description>&lt;P&gt;What you have written above is still wrong. You need to check both rotAngleX &amp;amp; rotAngleY against EPS separately. Effectively what you have is three arguments you want to test against so you should split it into three lines (using the line continue character "\") so its easier to see the logic.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your current logic looks like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; if bProject2D \&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;amp;&amp;nbsp;ABS(rotAngleX)&amp;nbsp; \&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;amp;&amp;nbsp;ABS(rotAngleY)&amp;nbsp; &amp;lt; EPS then...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in extended form this reads as:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; if bProject2D = 1 \&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;amp;&amp;nbsp;ABS(rotAngleX) = 1&amp;nbsp; \&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;amp;&amp;nbsp;ABS(rotAngleY)&amp;nbsp; &amp;lt; EPS then...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So the "real value" error is coming from the second line.&lt;/P&gt;&lt;P&gt;You need to write this:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; if bProject2D \&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;amp;&amp;nbsp;ABS(rotAngleX)&amp;nbsp; &amp;lt; EPS&amp;nbsp; \&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;amp;&amp;nbsp;ABS(rotAngleY)&amp;nbsp; &amp;lt; EPS then...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Which is what Peter described above.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2022 23:08:42 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Archicad-s-GDL-lamp-is-duplicating-an-element-when-adding-quot/m-p/333064#M2616</guid>
      <dc:creator>Kristian Bursell</dc:creator>
      <dc:date>2022-03-22T23:08:42Z</dc:date>
    </item>
  </channel>
</rss>

