<?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: need help finding script error in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/need-help-finding-script-error/m-p/151839#M27397</link>
    <description>&lt;BLOCKQUOTE&gt;Erika wrote:&lt;BR /&gt;I don't understand what the '3'-3.3701"' is after the x and y start coordinates. &lt;/BLOCKQUOTE&gt;

That's metric for "one". It's one meter converted to feet. I often globally change those to ones for easier editing later.</description>
    <pubDate>Mon, 25 Aug 2008 18:49:51 GMT</pubDate>
    <dc:creator>TomWaltz</dc:creator>
    <dc:date>2008-08-25T18:49:51Z</dc:date>
    <item>
      <title>need help finding script error</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/need-help-finding-script-error/m-p/151835#M27393</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;Hi,&lt;BR /&gt;
I can't find the "missing comma in parameter list" [error message]&lt;BR /&gt;
The error message highlights the last two lines. It's in front of my face, but I just don't see it.&lt;BR /&gt;
&lt;BR /&gt;
poly2_b{3}      13,     gs_frame_fill,     gs_fill_pen,     gs_back_pen, &lt;BR /&gt;
	0'-0.0000", 0'-0.0000", 	0'-0.0000", 0'-0.0000", fill_ang,&lt;BR /&gt;
	!0'-0.0000", 0'-0.0000", 3'-3.3701", 0'-0.0000", 0'-0.0000", 3'-3.3701", &lt;BR /&gt;
		-0.5*h1c,	 o.5*ap,	33,	&lt;BR /&gt;
		 0.5*h1c,	 o.5*ap,	33,	&lt;BR /&gt;
		 0.5*h1c,	 o.5*ap-dp,	33,&lt;BR /&gt;
		 0.5*dw,	 o.5*ap-dp,	33,&lt;BR /&gt;
		 0.5*dw,	-o.5*ap+dp,	33,&lt;BR /&gt;
		 0.5*h1c,	-o.5*ap+dp,	33,&lt;BR /&gt;
		 0.5*h1c,	-o.5*ap,	33,&lt;BR /&gt;
		-0.5*h1c,	-o.5*ap,	33,&lt;BR /&gt;
		-0.5*h1c,	-o.5*ap+dp,	33,&lt;BR /&gt;
		-0.5*dw,	-o.5*ap+dp,	33,&lt;BR /&gt;
		-0.5*dw,	 o.5*ap-dp,	33,&lt;BR /&gt;
		-0.5*h1c,	 o.5*ap-dp,	33,&lt;BR /&gt;
		-0.5*h1c,	 o.5*ap,	33&lt;/T&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 25 Aug 2008 17:50:05 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/need-help-finding-script-error/m-p/151835#M27393</guid>
      <dc:creator>Erika Epstein</dc:creator>
      <dc:date>2008-08-25T17:50:05Z</dc:date>
    </item>
    <item>
      <title>Re: need help finding script error</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/need-help-finding-script-error/m-p/151836#M27394</link>
      <description>for one, using o instead of 0 sometimes a problem.&lt;BR /&gt;
by changing o s to 0 s (see below) will change the error message to a different one (missing parameters), so it needs more fixing, but the mistery is out.&lt;BR /&gt;
&lt;BR /&gt;
poly2_b{3} 13, gs_frame_fill, gs_fill_pen, gs_back_pen,&lt;BR /&gt;
0'-0.0000", 0'-0.0000", 0'-0.0000", 0'-0.0000", fill_ang,&lt;BR /&gt;
!0'-0.0000", 0'-0.0000", 3'-3.3701", 0'-0.0000", 0'-0.0000", 3'-3.3701",&lt;BR /&gt;
-0.5*h1c, 0.5*ap, 33,&lt;BR /&gt;
0.5*h1c, 0.5*ap, 33,&lt;BR /&gt;
0.5*h1c, 0.5*ap-dp, 33,&lt;BR /&gt;
0.5*dw, 0.5*ap-dp, 33,&lt;BR /&gt;
0.5*dw, -0.5*ap+dp, 33,&lt;BR /&gt;
0.5*h1c, -0.5*ap+dp, 33,&lt;BR /&gt;
0.5*h1c, -0.5*ap, 33,&lt;BR /&gt;
-0.5*h1c, -0.5*ap, 33,&lt;BR /&gt;
-0.5*h1c, -0.5*ap+dp, 33,&lt;BR /&gt;
-0.5*dw, -0.5*ap+dp, 33,&lt;BR /&gt;
-0.5*dw, 0.5*ap-dp, 33,&lt;BR /&gt;
-0.5*h1c, 0.5*ap-dp, 33,&lt;BR /&gt;
-0.5*h1c, 0.5*ap, 33</description>
      <pubDate>Mon, 25 Aug 2008 18:15:24 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/need-help-finding-script-error/m-p/151836#M27394</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-08-25T18:15:24Z</dc:date>
    </item>
    <item>
      <title>Re: need help finding script error</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/need-help-finding-script-error/m-p/151837#M27395</link>
      <description>Ferenc,&lt;BR /&gt;
Thanks, I couldn't see the o's. And, yes, now I get a missing parameter error message. &lt;BR /&gt;
&lt;BR /&gt;
I don't understand what the '3'-3.3701"' is after the x and y start coordinates. The commented out line was from the autoscript when I dragged and dropped the column outline into the 2D script window. When I looked up the correct format in the GDL reference guide, it gave only x and y start coordinates and then the angle of the fill. &lt;BR /&gt;
&lt;BR /&gt;
Any hints on the parameter problem?&lt;BR /&gt;
&lt;BR /&gt;
Thanks,</description>
      <pubDate>Mon, 25 Aug 2008 18:31:51 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/need-help-finding-script-error/m-p/151837#M27395</guid>
      <dc:creator>Erika Epstein</dc:creator>
      <dc:date>2008-08-25T18:31:51Z</dc:date>
    </item>
    <item>
      <title>Re: need help finding script error</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/need-help-finding-script-error/m-p/151838#M27396</link>
      <description>"I don't understand what the '3'-3.3701"' is after the x and y start coordinates. The commented out line was from the autoscript when I dragged and dropped the column outline into the 2D script window. When I looked up the correct format in the GDL reference guide, it gave only x and y start coordinates and then the angle of the fill. &lt;BR /&gt;
&lt;BR /&gt;
Any hints on the parameter problem? "&lt;BR /&gt;
&lt;BR /&gt;
That seems to be a bug with the autodrag. I GUESS it supposed to mean 1,0,0,1 for the mxx, mxy, myx, myy for the transform matrix as it says in the gdl reference for poly_b{3} if J8is set to 1 in the framefill...&lt;BR /&gt;
It is interpreted as a length instead of a real number (1m=3'-3.3701")&lt;BR /&gt;
You wouldn't notice if you were working in meters as working units.&lt;BR /&gt;
&lt;BR /&gt;
I would start replacing the poly_2{3} with simpler Poly_2 variants, and see if it fits the bill. This one works:&lt;BR /&gt;
&lt;BR /&gt;
dw=5&lt;BR /&gt;
h1c=6&lt;BR /&gt;
ap=1&lt;BR /&gt;
dp=0.2&lt;BR /&gt;
&lt;BR /&gt;
poly2_b 13, 13, 1, 91,&lt;BR /&gt;
-0.5*h1c, 0.5*ap, 33,&lt;BR /&gt;
0.5*h1c, 0.5*ap, 33,&lt;BR /&gt;
0.5*h1c, 0.5*ap-dp, 33,&lt;BR /&gt;
0.5*dw, 0.5*ap-dp, 33,&lt;BR /&gt;
0.5*dw, -0.5*ap+dp, 33,&lt;BR /&gt;
0.5*h1c, -0.5*ap+dp, 33,&lt;BR /&gt;
0.5*h1c, -0.5*ap, 33,&lt;BR /&gt;
-0.5*h1c, -0.5*ap, 33,&lt;BR /&gt;
-0.5*h1c, -0.5*ap+dp, 33,&lt;BR /&gt;
-0.5*dw, -0.5*ap+dp, 33,&lt;BR /&gt;
-0.5*dw, 0.5*ap-dp, 33,&lt;BR /&gt;
-0.5*h1c, 0.5*ap-dp, 33,&lt;BR /&gt;
-0.5*h1c, 0.5*ap, 33</description>
      <pubDate>Mon, 25 Aug 2008 18:48:37 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/need-help-finding-script-error/m-p/151838#M27396</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-08-25T18:48:37Z</dc:date>
    </item>
    <item>
      <title>Re: need help finding script error</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/need-help-finding-script-error/m-p/151839#M27397</link>
      <description>&lt;BLOCKQUOTE&gt;Erika wrote:&lt;BR /&gt;I don't understand what the '3'-3.3701"' is after the x and y start coordinates. &lt;/BLOCKQUOTE&gt;

That's metric for "one". It's one meter converted to feet. I often globally change those to ones for easier editing later.</description>
      <pubDate>Mon, 25 Aug 2008 18:49:51 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/need-help-finding-script-error/m-p/151839#M27397</guid>
      <dc:creator>TomWaltz</dc:creator>
      <dc:date>2008-08-25T18:49:51Z</dc:date>
    </item>
    <item>
      <title>Re: need help finding script error</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/need-help-finding-script-error/m-p/151840#M27398</link>
      <description>I understand that  '3'-3.3701"= 1 meter, but I'm not clear why it is it there after each  x and  y coordinate start point for the fill origin?</description>
      <pubDate>Mon, 25 Aug 2008 20:14:23 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/need-help-finding-script-error/m-p/151840#M27398</guid>
      <dc:creator>Erika Epstein</dc:creator>
      <dc:date>2008-08-25T20:14:23Z</dc:date>
    </item>
    <item>
      <title>Re: need help finding script error</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/need-help-finding-script-error/m-p/151841#M27399</link>
      <description>The gdl reference says:&lt;BR /&gt;
&lt;BR /&gt;
POLY2_B{3} n, frame_fill, fill_pen, &lt;BR /&gt;
fill_background_pen, &lt;BR /&gt;
fillOrigoX, fillOrigoY, &lt;BR /&gt;
mxx, mxy, myx, myy, x1, y1, s1, ..., xn, yn, sn &lt;BR /&gt;
Advanced version of the POLY2_ command, where the orientation of the fill can be defined using a matrix. &lt;BR /&gt;
frame_fill = j1 + 2*j2 + 4*j3 + 8*j4 + 16*j5 + 32*j6 + 64*j7 +128*j8 &lt;BR /&gt;
where j1, j2, j3, j4, j5, j6, j7, j8 can be 0 or 1. &lt;BR /&gt;
j1-j7: similar as for previous POLY2_ commands &lt;BR /&gt;
j8 (128): use sloped fill &lt;BR /&gt;
mxx, mxy, myx, myy: if j8 is set, this matrix defines the orientation of the fill &lt;BR /&gt;
&lt;BR /&gt;
so, if framefill &amp;gt; 128, it expects a 2x2 matrix of to distort and rotate the fill.  That's four parameters, if undistorted and unrotated then 1.0,0,0,1.0&lt;BR /&gt;
These are the "1-s" which were translated as length units(3'-3.3"), instead of real numbers (1.0)&lt;BR /&gt;
&lt;BR /&gt;
so the coordinates at the x,y will be mapped from the hatch definition xh, yh as&lt;BR /&gt;
&lt;BR /&gt;
x=mxx*xh+mxy*yh&lt;BR /&gt;
y=myx*xh+myy*yh&lt;BR /&gt;
&lt;BR /&gt;
but it also means that gs_framefill has to be 128+... if you want to use the matrix code.&lt;BR /&gt;
&lt;BR /&gt;
"use sloped fill" in this case means rotated orientation with scale factors in x and y directions. I don't think you need it, that's why I suggested using the simpler poly2_B variants</description>
      <pubDate>Mon, 25 Aug 2008 20:59:11 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/need-help-finding-script-error/m-p/151841#M27399</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-08-25T20:59:11Z</dc:date>
    </item>
    <item>
      <title>Re: need help finding script error</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/need-help-finding-script-error/m-p/151842#M27400</link>
      <description>Ferenc &amp;amp; Tom&lt;BR /&gt;
With your help I finally got my script to work. The last correction was to the status code. The autoscript had come through with the 33s. Now this part of the script [finally] is visible.&lt;BR /&gt;
&lt;BR /&gt;
All this so now in the plan view of the Double Slope 11, my version, you see the cross-section of the columns with the rest dashed above.</description>
      <pubDate>Mon, 25 Aug 2008 21:54:16 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/need-help-finding-script-error/m-p/151842#M27400</guid>
      <dc:creator>Erika Epstein</dc:creator>
      <dc:date>2008-08-25T21:54:16Z</dc:date>
    </item>
  </channel>
</rss>

