<?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: Why doesn't my 2D poly calculation work? in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/Why-doesn-t-my-2D-poly-calculation-work/m-p/219219#M5258</link>
    <description>Use put and get for polygons instead writing inline.&lt;BR /&gt;
no of nodes will be depending on the command type NSP/3..4..5&lt;BR /&gt;
(how many status type data after coords)&lt;BR /&gt;
and the all points at the end of the _poly like command will be "get(nsp)"&lt;BR /&gt;
&lt;BR /&gt;
Best Regards,&lt;BR /&gt;
Piotr</description>
    <pubDate>Tue, 08 Aug 2017 15:36:18 GMT</pubDate>
    <dc:creator>Piotr Dobrowolski</dc:creator>
    <dc:date>2017-08-08T15:36:18Z</dc:date>
    <item>
      <title>Why doesn't my 2D poly calculation work?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Why-doesn-t-my-2D-poly-calculation-work/m-p/219218#M5257</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;I can't seem to work out why the calculations don't seem to be working as I think I might have used the same sort of calculation previously. Is there any reason why it is not changing the object at all?&lt;/T&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;IMG src="https://community.graphisoft.com/t5/image/serverpage/image-id/15224i155EF06CC91C1737/image-size/large?v=v2&amp;amp;px=999" border="0" alt="Poly2_b help.jpg" title="Poly2_b help.jpg" /&gt;</description>
      <pubDate>Tue, 08 Aug 2017 12:22:47 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Why-doesn-t-my-2D-poly-calculation-work/m-p/219218#M5257</guid>
      <dc:creator>JGoode</dc:creator>
      <dc:date>2017-08-08T12:22:47Z</dc:date>
    </item>
    <item>
      <title>Re: Why doesn't my 2D poly calculation work?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Why-doesn-t-my-2D-poly-calculation-work/m-p/219219#M5258</link>
      <description>Use put and get for polygons instead writing inline.&lt;BR /&gt;
no of nodes will be depending on the command type NSP/3..4..5&lt;BR /&gt;
(how many status type data after coords)&lt;BR /&gt;
and the all points at the end of the _poly like command will be "get(nsp)"&lt;BR /&gt;
&lt;BR /&gt;
Best Regards,&lt;BR /&gt;
Piotr</description>
      <pubDate>Tue, 08 Aug 2017 15:36:18 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Why-doesn-t-my-2D-poly-calculation-work/m-p/219219#M5258</guid>
      <dc:creator>Piotr Dobrowolski</dc:creator>
      <dc:date>2017-08-08T15:36:18Z</dc:date>
    </item>
    <item>
      <title>Re: Why doesn't my 2D poly calculation work?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Why-doesn-t-my-2D-poly-calculation-work/m-p/219220#M5259</link>
      <description>Using PUT and GET for polygon nodes is great when the number of nodes is variable.&lt;BR /&gt;
In a case like this where the number of nodes is fixed it really won't make any difference.&lt;BR /&gt;
&lt;BR /&gt;
Are you saying that when you adjust the value of the 'rail_width' parameter that your object is not changing?&lt;BR /&gt;
If so do a find and select for 'rail_width' in the master parameter and the first part of this 2D script to see if the value for that parameter is being set - overriding the parameter value.&lt;BR /&gt;
&lt;BR /&gt;
Or possibly you are using a value for 'rail_width' that just doesn't make sense for the points you are plotting - i.e. value is too small?&lt;BR /&gt;
&lt;BR /&gt;
Otherwise I don't understand what you mean by 'calculation' as all you have here is a polygon definition.&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
      <pubDate>Wed, 09 Aug 2017 01:31:18 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Why-doesn-t-my-2D-poly-calculation-work/m-p/219220#M5259</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2017-08-09T01:31:18Z</dc:date>
    </item>
    <item>
      <title>Re: Why doesn't my 2D poly calculation work?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Why-doesn-t-my-2D-poly-calculation-work/m-p/219221#M5260</link>
      <description>&lt;BLOCKQUOTE&gt;Barry wrote:&lt;BR /&gt;
Otherwise I don't understand what you mean by 'calculation' as all you have here is a polygon definition.&lt;/BLOCKQUOTE&gt; The calculation that defines the points in the object as in rail_width/2-(rail_width/2-0.49*********)&lt;BR /&gt;
All bits of the definition that included this didn't work so I was wondering if there was a reason why they wouldn't work. I have it working now anyway using a different method.</description>
      <pubDate>Wed, 09 Aug 2017 11:18:52 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Why-doesn-t-my-2D-poly-calculation-work/m-p/219221#M5260</guid>
      <dc:creator>JGoode</dc:creator>
      <dc:date>2017-08-09T11:18:52Z</dc:date>
    </item>
    <item>
      <title>Re: Why doesn't my 2D poly calculation work?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Why-doesn-t-my-2D-poly-calculation-work/m-p/219222#M5261</link>
      <description>Ok what is the error?&lt;BR /&gt;
Polygon does not show? or shows incorrectly? You get error message (what message)?&lt;BR /&gt;
&lt;BR /&gt;
Best Regards,&lt;BR /&gt;
Piotr</description>
      <pubDate>Wed, 09 Aug 2017 13:49:02 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Why-doesn-t-my-2D-poly-calculation-work/m-p/219222#M5261</guid>
      <dc:creator>Piotr Dobrowolski</dc:creator>
      <dc:date>2017-08-09T13:49:02Z</dc:date>
    </item>
    <item>
      <title>Re: Why doesn't my 2D poly calculation work?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Why-doesn-t-my-2D-poly-calculation-work/m-p/219223#M5262</link>
      <description>Have you checked to make sure you haven't accidentally created a 2D symbol, as from memory this will stop the 2D script from running?</description>
      <pubDate>Thu, 10 Aug 2017 01:18:44 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Why-doesn-t-my-2D-poly-calculation-work/m-p/219223#M5262</guid>
      <dc:creator>Bruce</dc:creator>
      <dc:date>2017-08-10T01:18:44Z</dc:date>
    </item>
    <item>
      <title>Re: Why doesn't my 2D poly calculation work?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Why-doesn-t-my-2D-poly-calculation-work/m-p/219224#M5263</link>
      <description>&lt;BLOCKQUOTE&gt;Bruce wrote:&lt;BR /&gt;Have you checked to make sure you haven't accidentally created a 2D symbol, as from memory this will stop the 2D script from running?&lt;/BLOCKQUOTE&gt;

If there is a 2D script this should override anything drawn in the 2D symbol window.&lt;BR /&gt;
Unless it is called as a FRAGMENT.&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
      <pubDate>Thu, 10 Aug 2017 02:00:16 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Why-doesn-t-my-2D-poly-calculation-work/m-p/219224#M5263</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2017-08-10T02:00:16Z</dc:date>
    </item>
    <item>
      <title>Re: Why doesn't my 2D poly calculation work?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Why-doesn-t-my-2D-poly-calculation-work/m-p/219225#M5264</link>
      <description>&lt;BLOCKQUOTE&gt;JGoode wrote:&lt;BR /&gt;&lt;BLOCKQUOTE&gt;Barry wrote:&lt;BR /&gt;
Otherwise I don't understand what you mean by 'calculation' as all you have here is a polygon definition.&lt;/BLOCKQUOTE&gt; The calculation that defines the points in the object as in rail_width/2-(rail_width/2-0.49*********)&lt;BR /&gt;
All bits of the definition that included this didn't work so I was wondering if there was a reason why they wouldn't work. I have it working now anyway using a different method.&lt;/BLOCKQUOTE&gt;

I don't see anything wrong with your script.&lt;BR /&gt;
So long as you are adjusting the parameter for 'rail_width' your object should adjust.&lt;BR /&gt;
But as I said be sure this parameter is not being set to a fixed value before the polygon or in the master or parameter script.&lt;BR /&gt;
&lt;BR /&gt;
It is very hard to tell what is happening without seeing the entire object scripts.&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
      <pubDate>Thu, 10 Aug 2017 02:03:53 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Why-doesn-t-my-2D-poly-calculation-work/m-p/219225#M5264</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2017-08-10T02:03:53Z</dc:date>
    </item>
    <item>
      <title>Re: Why doesn't my 2D poly calculation work?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Why-doesn-t-my-2D-poly-calculation-work/m-p/219226#M5265</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
it appears like you are trying to draw flanges, connections to the wall?&lt;BR /&gt;
&lt;BR /&gt;
assuming that 0.49266 is a big number, or spacing between....that may be where you are going wrong....as you are canceling out your Rail_width/2 by adding it then minusing it at that point you are using that big number...&lt;BR /&gt;
&lt;BR /&gt;
this looks like code from a projection with the facets of a curve turned into code...when it should be just the true size...&lt;BR /&gt;
&lt;BR /&gt;
choosing a simple Poly2_B script(not fill distortions)&lt;BR /&gt;
4 points, plus closing point (5 in total)(-1 to close a poly at end)&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Flange_Depth = 0.012&lt;BR /&gt;
Flange_Diameter = 0.04225&lt;BR /&gt;
&lt;BR /&gt;
for the origin it would be&lt;BR /&gt;
Poly2_b   5,  3,   gs_fill_pen, gs_back_pen,&lt;BR /&gt;
	-Flange_Diameter/2,	0, 	1,&lt;BR /&gt;
	-Flange_Diameter/2,	Flange_Depth, 	1,&lt;BR /&gt;
	Flange_Diameter/2,	Flange_Depth, 	1,&lt;BR /&gt;
	Flange_Diameter/2,	0, 	1,&lt;BR /&gt;
	-Flange_Diameter/2,	0, 	-1&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
for the middle connection it would be...&lt;BR /&gt;
Poly2_b   5,  3,   gs_fill_pen, gs_back_pen,&lt;BR /&gt;
	Rail_width/2-Flange_Diameter/2,	       0, 	1,&lt;BR /&gt;
	Rail_width/2-Flange_Diameter/2,	       Flange_Depth, 	1,&lt;BR /&gt;
	Rail_width/2+Flange_Diameter/2,	Flange_Depth, 	1,&lt;BR /&gt;
	Rail_width/2+Flange_Diameter/2,	0, 	1,&lt;BR /&gt;
	Rail_width/2-Flange_Diameter/2,	        0, 	-1&lt;BR /&gt;
&lt;BR /&gt;
for the far end it would be...&lt;BR /&gt;
Poly2_b   5,  3,   gs_fill_pen, gs_back_pen,&lt;BR /&gt;
	Rail_width-Flange_Diameter/2,	0, 	1,&lt;BR /&gt;
	Rail_width-Flange_Diameter/2,	Flange_Depth, 	1,&lt;BR /&gt;
	Rail_width+Flange_Diameter/2,	Flange_Depth, 	1,&lt;BR /&gt;
	Rail_width+Flange_Diameter/2,	0, 	1,&lt;BR /&gt;
	Rail_width-Flange_Diameter/2,	0, 	-1&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
39 points is a lot for a simple shape....especially when the y-value does not change (only 2 values)</description>
      <pubDate>Fri, 11 Aug 2017 04:54:57 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Why-doesn-t-my-2D-poly-calculation-work/m-p/219226#M5265</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-11T04:54:57Z</dc:date>
    </item>
  </channel>
</rss>

