<?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 Define Image Fill - errors in GDL manual in GDL</title>
    <link>https://community.graphisoft.com/t5/GDL/Define-Image-Fill-errors-in-GDL-manual/m-p/681221#M8075</link>
    <description>&lt;P&gt;I was trying to make a material legend with GDL and I have come across some errors in the manual regarding the&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;DEFINE&lt;/SPAN&gt; &lt;SPAN&gt;&lt;SPAN&gt;IMAGE_FILL definition. Showed below is the form in which is written in the GDL manual, but it should be the horizontal size first and then the vertical one.&amp;nbsp;Moreover I was having trouble with the angle which didn't seem to work properly; I tested the request in the Master script but the request seemed to be ok, it was returning the correct angle. The problem was with the define image fill parameter which required the angle in radians not in degrees, so i wrote the formula:&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;angle&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;-&lt;/SPAN&gt;&lt;SPAN&gt; angle&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;*&lt;/SPAN&gt; &lt;SPAN&gt;PI&lt;/SPAN&gt; &lt;SPAN&gt;/&lt;/SPAN&gt; &lt;SPAN&gt;180&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;which is working fine.&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;STRONG&gt;&lt;SPAN class=""&gt;DEFINE&lt;/SPAN&gt; IMAGE_FILL&lt;/STRONG&gt; name imageName&lt;SPAN class=""&gt; [[,] &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN class=""&gt;FILLTYPES_MASK&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN class=""&gt; fillTypes]&lt;/SPAN&gt;
        &lt;SPAN class=""&gt;part1&lt;/SPAN&gt;, part2, part3, part4, part5, part6, part7, part8,
        &lt;SPAN class=""&gt;height&lt;/SPAN&gt;, width, mask, angle&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Thu, 23 Oct 2025 07:19:18 GMT</pubDate>
    <dc:creator>Alex Potra</dc:creator>
    <dc:date>2025-10-23T07:19:18Z</dc:date>
    <item>
      <title>Define Image Fill - errors in GDL manual</title>
      <link>https://community.graphisoft.com/t5/GDL/Define-Image-Fill-errors-in-GDL-manual/m-p/681221#M8075</link>
      <description>&lt;P&gt;I was trying to make a material legend with GDL and I have come across some errors in the manual regarding the&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;DEFINE&lt;/SPAN&gt; &lt;SPAN&gt;&lt;SPAN&gt;IMAGE_FILL definition. Showed below is the form in which is written in the GDL manual, but it should be the horizontal size first and then the vertical one.&amp;nbsp;Moreover I was having trouble with the angle which didn't seem to work properly; I tested the request in the Master script but the request seemed to be ok, it was returning the correct angle. The problem was with the define image fill parameter which required the angle in radians not in degrees, so i wrote the formula:&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;angle&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;-&lt;/SPAN&gt;&lt;SPAN&gt; angle&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;*&lt;/SPAN&gt; &lt;SPAN&gt;PI&lt;/SPAN&gt; &lt;SPAN&gt;/&lt;/SPAN&gt; &lt;SPAN&gt;180&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;which is working fine.&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;STRONG&gt;&lt;SPAN class=""&gt;DEFINE&lt;/SPAN&gt; IMAGE_FILL&lt;/STRONG&gt; name imageName&lt;SPAN class=""&gt; [[,] &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN class=""&gt;FILLTYPES_MASK&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN class=""&gt; fillTypes]&lt;/SPAN&gt;
        &lt;SPAN class=""&gt;part1&lt;/SPAN&gt;, part2, part3, part4, part5, part6, part7, part8,
        &lt;SPAN class=""&gt;height&lt;/SPAN&gt;, width, mask, angle&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 23 Oct 2025 07:19:18 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Define-Image-Fill-errors-in-GDL-manual/m-p/681221#M8075</guid>
      <dc:creator>Alex Potra</dc:creator>
      <dc:date>2025-10-23T07:19:18Z</dc:date>
    </item>
  </channel>
</rss>

