<?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 CYLIND negative value is there a workaround? in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/CYLIND-negative-value-is-there-a-workaround/m-p/695311#M52231</link>
    <description>&lt;P&gt;I have an object that has worked fine for years until I have come across this Project where the ground level is mostly below the flood plane ie. it is a negative number. Problem is my simple little Inspection Chamber object doesn't like a negative number when creating the Chamber.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So for example my Basement is&amp;nbsp; -1.750 and my Ground Floor is 0.000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So my object uses the&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;CLIL = SYMB_POS_Z - IL&lt;/LI-CODE&gt;&lt;P&gt;CLIL (Cover Level to Invert Level) is what height the object was inserted at (with Gravity used when placing the object on the topo mesh). However GDL can't make the Cylinder shape&amp;nbsp; because in this case its trying to use a negative value.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;!==========================
1:
MATERIAL "Paint - Dark Gray"
CYLIND CLIL,icdia/2
MATERIAL "C01"
ADD 0,0,CLIL -0.060
CYLIND CLIL,icdia/2
DEL 1

RETURN
!==========================&lt;/LI-CODE&gt;&lt;P&gt;Any suggestions or strategies on how I can work around this issue? Nothing is jumping out at me by way of a Function to temporarily make the negative number into a positive number. TIA&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" color="grey"&gt;Operating system used: &lt;EM&gt;Windows 11 25H2 26200.7840&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 09 Mar 2026 09:19:56 GMT</pubDate>
    <dc:creator>Graeme</dc:creator>
    <dc:date>2026-03-09T09:19:56Z</dc:date>
    <item>
      <title>CYLIND negative value is there a workaround?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/CYLIND-negative-value-is-there-a-workaround/m-p/695311#M52231</link>
      <description>&lt;P&gt;I have an object that has worked fine for years until I have come across this Project where the ground level is mostly below the flood plane ie. it is a negative number. Problem is my simple little Inspection Chamber object doesn't like a negative number when creating the Chamber.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So for example my Basement is&amp;nbsp; -1.750 and my Ground Floor is 0.000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So my object uses the&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;CLIL = SYMB_POS_Z - IL&lt;/LI-CODE&gt;&lt;P&gt;CLIL (Cover Level to Invert Level) is what height the object was inserted at (with Gravity used when placing the object on the topo mesh). However GDL can't make the Cylinder shape&amp;nbsp; because in this case its trying to use a negative value.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;!==========================
1:
MATERIAL "Paint - Dark Gray"
CYLIND CLIL,icdia/2
MATERIAL "C01"
ADD 0,0,CLIL -0.060
CYLIND CLIL,icdia/2
DEL 1

RETURN
!==========================&lt;/LI-CODE&gt;&lt;P&gt;Any suggestions or strategies on how I can work around this issue? Nothing is jumping out at me by way of a Function to temporarily make the negative number into a positive number. TIA&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" color="grey"&gt;Operating system used: &lt;EM&gt;Windows 11 25H2 26200.7840&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Mar 2026 09:19:56 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/CYLIND-negative-value-is-there-a-workaround/m-p/695311#M52231</guid>
      <dc:creator>Graeme</dc:creator>
      <dc:date>2026-03-09T09:19:56Z</dc:date>
    </item>
    <item>
      <title>Re: CYLIND negative value is there a workaround?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/CYLIND-negative-value-is-there-a-workaround/m-p/695318#M52232</link>
      <description>&lt;LI-CODE lang="markup"&gt;CYLIND ABS(CLIL),icdia/2&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 09 Mar 2026 10:11:36 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/CYLIND-negative-value-is-there-a-workaround/m-p/695318#M52232</guid>
      <dc:creator>Yves</dc:creator>
      <dc:date>2026-03-09T10:11:36Z</dc:date>
    </item>
    <item>
      <title>Re: CYLIND negative value is there a workaround?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/CYLIND-negative-value-is-there-a-workaround/m-p/695323#M52233</link>
      <description>&lt;P&gt;Magic thank you that sorted it.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Mar 2026 10:26:56 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/CYLIND-negative-value-is-there-a-workaround/m-p/695323#M52233</guid>
      <dc:creator>Graeme</dc:creator>
      <dc:date>2026-03-09T10:26:56Z</dc:date>
    </item>
    <item>
      <title>Re: CYLIND negative value is there a workaround?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/CYLIND-negative-value-is-there-a-workaround/m-p/695383#M52238</link>
      <description>&lt;P&gt;I see you caught a solution... and Im not a GDL wizard, but any time I need a length parameter to never be negative, I set a master script:&lt;BR /&gt;IF&amp;nbsp;&lt;EM&gt;lengthparametername&amp;nbsp;&lt;/EM&gt;&amp;lt; .001 THEN&amp;nbsp;&lt;EM&gt;lengthparametername&amp;nbsp;&lt;/EM&gt;= .001 ELSE ENDIF&lt;/P&gt;</description>
      <pubDate>Tue, 10 Mar 2026 00:45:49 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/CYLIND-negative-value-is-there-a-workaround/m-p/695383#M52238</guid>
      <dc:creator>Patrick M</dc:creator>
      <dc:date>2026-03-10T00:45:49Z</dc:date>
    </item>
  </channel>
</rss>

