<?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 PRISM_ status codes are confusing in GDL</title>
    <link>https://community.graphisoft.com/t5/GDL/PRISM-status-codes-are-confusing/m-p/577100#M5902</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm trying to understand how status codes work and in general they seem easy enough in principle.&lt;/P&gt;
&lt;P&gt;Yet when applying them to a PRISM_ they seem to work in a very non-intuitive way.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is a small test that I have made.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Firstly, we have a small circle.&lt;/P&gt;
&lt;P&gt;I wanted to test how changing the status codes influences the edge visibility.&lt;/P&gt;
&lt;P&gt;I quickly discovered that changing the status code from line 6 (the one where the circle is defined) doesn't do anything for the edges. Instead I have to change the status code at line 5, which should only define the centerpoint.&lt;/P&gt;
&lt;P&gt;The &lt;A href="https://gdl.graphisoft.com/reference-guide/additional-status-codes" target="_self"&gt;reference guide&lt;/A&gt;&amp;nbsp;(at Full circle using centerpoint and radius chapter) also suggests that the second SC is the one that refers to the whole circle, so I would assume that this is the one that influences the edge visibility.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So shouldn't it be the the other way around? The centerpoint status code shouldn't do anything and only the second status code should change the edge visibility?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ok so secondly, even more confusing, is trying to cut out a circle out of a small prism.&lt;/P&gt;
&lt;P&gt;In this case, neither of the two lines of code that actually deal with the circle don't influence it's visibility.&lt;/P&gt;
&lt;P&gt;Instead, only the status code for the last edge of the prism (line 18) is that one that actually influences the edge visibility for the circle.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It feels like I am missing something about the way cutouts should be defined.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can someone elighen me on how all of this works?&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="LaurentiuC_1-1700737204417.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/49489i94A4A5015730134A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LaurentiuC_1-1700737204417.png" alt="LaurentiuC_1-1700737204417.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LaurentiuC_2-1700738009332.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/49490i512B96C62FAFC26E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LaurentiuC_2-1700738009332.png" alt="LaurentiuC_2-1700738009332.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 24 Sep 2024 08:22:20 GMT</pubDate>
    <dc:creator>Laurentiu</dc:creator>
    <dc:date>2024-09-24T08:22:20Z</dc:date>
    <item>
      <title>PRISM_ status codes are confusing</title>
      <link>https://community.graphisoft.com/t5/GDL/PRISM-status-codes-are-confusing/m-p/577100#M5902</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm trying to understand how status codes work and in general they seem easy enough in principle.&lt;/P&gt;
&lt;P&gt;Yet when applying them to a PRISM_ they seem to work in a very non-intuitive way.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is a small test that I have made.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Firstly, we have a small circle.&lt;/P&gt;
&lt;P&gt;I wanted to test how changing the status codes influences the edge visibility.&lt;/P&gt;
&lt;P&gt;I quickly discovered that changing the status code from line 6 (the one where the circle is defined) doesn't do anything for the edges. Instead I have to change the status code at line 5, which should only define the centerpoint.&lt;/P&gt;
&lt;P&gt;The &lt;A href="https://gdl.graphisoft.com/reference-guide/additional-status-codes" target="_self"&gt;reference guide&lt;/A&gt;&amp;nbsp;(at Full circle using centerpoint and radius chapter) also suggests that the second SC is the one that refers to the whole circle, so I would assume that this is the one that influences the edge visibility.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So shouldn't it be the the other way around? The centerpoint status code shouldn't do anything and only the second status code should change the edge visibility?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ok so secondly, even more confusing, is trying to cut out a circle out of a small prism.&lt;/P&gt;
&lt;P&gt;In this case, neither of the two lines of code that actually deal with the circle don't influence it's visibility.&lt;/P&gt;
&lt;P&gt;Instead, only the status code for the last edge of the prism (line 18) is that one that actually influences the edge visibility for the circle.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It feels like I am missing something about the way cutouts should be defined.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can someone elighen me on how all of this works?&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="LaurentiuC_1-1700737204417.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/49489i94A4A5015730134A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LaurentiuC_1-1700737204417.png" alt="LaurentiuC_1-1700737204417.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LaurentiuC_2-1700738009332.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/49490i512B96C62FAFC26E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LaurentiuC_2-1700738009332.png" alt="LaurentiuC_2-1700738009332.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2024 08:22:20 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/PRISM-status-codes-are-confusing/m-p/577100#M5902</guid>
      <dc:creator>Laurentiu</dc:creator>
      <dc:date>2024-09-24T08:22:20Z</dc:date>
    </item>
    <item>
      <title>Re: PRISM_ status codes are confusing</title>
      <link>https://community.graphisoft.com/t5/GDL/PRISM-status-codes-are-confusing/m-p/577121#M5903</link>
      <description>&lt;P&gt;It's not so easy with round things, as you already saw.&lt;/P&gt;
&lt;P&gt;It gets even more complex if you have a round hole in a round plate:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="c"&gt;put \
	rad_, 0, 79,
	0, 0, 900,
	0, 180, 4000+79,
	0, 180, 4000+79,
	rad_, 0, -1,           !// end of round base plate
	rad_inner, 0, 600+79,  !// start of hole
	0, 180, 4000+79,
	0, 180, 4000+79,
	rad_inner, 0, -1

prism_ nsp/3, ZZYZX,
	get(nsp)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The trick is to not use full circles but arcs (half circles).&lt;/P&gt;
&lt;P&gt;This allows us to define start and end points, which are necessary to put in all the status codes in right order affecting the right things.&lt;/P&gt;
&lt;P&gt;Hope that helps!&lt;/P&gt;</description>
      <pubDate>Thu, 23 Nov 2023 21:34:22 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/PRISM-status-codes-are-confusing/m-p/577121#M5903</guid>
      <dc:creator>runxel</dc:creator>
      <dc:date>2023-11-23T21:34:22Z</dc:date>
    </item>
    <item>
      <title>Re: PRISM_ status codes are confusing</title>
      <link>https://community.graphisoft.com/t5/GDL/PRISM-status-codes-are-confusing/m-p/598009#M6495</link>
      <description>&lt;P&gt;It took a while, but I did find my answers after watching &lt;A href="https://www.youtube.com/watch?v=WUIEbwpwrQk&amp;amp;t=116s" target="_self"&gt;this video&lt;/A&gt; from&amp;nbsp;&lt;A class="" href="https://www.youtube.com/@BarkingDogBIM" target="_blank" rel="noopener"&gt;Barking Dog BIM.&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So the answer to my question is that the previous coordinate line changes the way the hole is displayed, not the actual line that describes the hole. It's still a bit unintuitive for me, but that's how it works. Bruce explains it at about 7:50 in his video.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Another weird thing that I found hard to figure out is how to change the display of the first hole when multiple holes are defined in a prism_. You basically have to apply the same logic of changing the status code of the previous lines before each hole. He also explains and exemplifies it at about 18:35.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Lastly, because of fiddling with so many status codes you'll inevitably end up with a missing corner edge of the prism that can be restored by simply adding a dummy coordinate line that won't interfere with the prism's contour. Go to 20:30 for at the video for that explanation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this helps anyone else in the future that might also find status codes confusing for prism_ .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2024 21:00:16 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/PRISM-status-codes-are-confusing/m-p/598009#M6495</guid>
      <dc:creator>Laurentiu</dc:creator>
      <dc:date>2024-04-05T21:00:16Z</dc:date>
    </item>
  </channel>
</rss>

