Libraries & objects
About Archicad and BIMcloud libraries, their management and migration, objects and other library parts, etc.

need help finding script error

Erika Epstein
Booster
Hi,
I can't find the "missing comma in parameter list" [error message]
The error message highlights the last two lines. It's in front of my face, but I just don't see it.

poly2_b{3} 13, gs_frame_fill, gs_fill_pen, gs_back_pen,
0'-0.0000", 0'-0.0000", 0'-0.0000", 0'-0.0000", fill_ang,
!0'-0.0000", 0'-0.0000", 3'-3.3701", 0'-0.0000", 0'-0.0000", 3'-3.3701",
-0.5*h1c, o.5*ap, 33,
0.5*h1c, o.5*ap, 33,
0.5*h1c, o.5*ap-dp, 33,
0.5*dw, o.5*ap-dp, 33,
0.5*dw, -o.5*ap+dp, 33,
0.5*h1c, -o.5*ap+dp, 33,
0.5*h1c, -o.5*ap, 33,
-0.5*h1c, -o.5*ap, 33,
-0.5*h1c, -o.5*ap+dp, 33,
-0.5*dw, -o.5*ap+dp, 33,
-0.5*dw, o.5*ap-dp, 33,
-0.5*h1c, o.5*ap-dp, 33,
-0.5*h1c, o.5*ap, 33
Erika
Architect, Consultant
MacBook Pro Retina, 15-inch Yosemite 2.8 GHz Intel Core i7 16 GB 1600 MHz DDR3
Mac OSX 10.11.1
AC5-18
Onuma System

"Implementing Successful Building Information Modeling"
7 REPLIES 7
Anonymous
Not applicable
for one, using o instead of 0 sometimes a problem.
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.

poly2_b{3} 13, gs_frame_fill, gs_fill_pen, gs_back_pen,
0'-0.0000", 0'-0.0000", 0'-0.0000", 0'-0.0000", fill_ang,
!0'-0.0000", 0'-0.0000", 3'-3.3701", 0'-0.0000", 0'-0.0000", 3'-3.3701",
-0.5*h1c, 0.5*ap, 33,
0.5*h1c, 0.5*ap, 33,
0.5*h1c, 0.5*ap-dp, 33,
0.5*dw, 0.5*ap-dp, 33,
0.5*dw, -0.5*ap+dp, 33,
0.5*h1c, -0.5*ap+dp, 33,
0.5*h1c, -0.5*ap, 33,
-0.5*h1c, -0.5*ap, 33,
-0.5*h1c, -0.5*ap+dp, 33,
-0.5*dw, -0.5*ap+dp, 33,
-0.5*dw, 0.5*ap-dp, 33,
-0.5*h1c, 0.5*ap-dp, 33,
-0.5*h1c, 0.5*ap, 33
Erika Epstein
Booster
Ferenc,
Thanks, I couldn't see the o's. And, yes, now I get a missing parameter error message.

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.

Any hints on the parameter problem?

Thanks,
Erika
Architect, Consultant
MacBook Pro Retina, 15-inch Yosemite 2.8 GHz Intel Core i7 16 GB 1600 MHz DDR3
Mac OSX 10.11.1
AC5-18
Onuma System

"Implementing Successful Building Information Modeling"
Anonymous
Not applicable
"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.

Any hints on the parameter problem? "

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...
It is interpreted as a length instead of a real number (1m=3'-3.3701")
You wouldn't notice if you were working in meters as working units.

I would start replacing the poly_2{3} with simpler Poly_2 variants, and see if it fits the bill. This one works:

dw=5
h1c=6
ap=1
dp=0.2

poly2_b 13, 13, 1, 91,
-0.5*h1c, 0.5*ap, 33,
0.5*h1c, 0.5*ap, 33,
0.5*h1c, 0.5*ap-dp, 33,
0.5*dw, 0.5*ap-dp, 33,
0.5*dw, -0.5*ap+dp, 33,
0.5*h1c, -0.5*ap+dp, 33,
0.5*h1c, -0.5*ap, 33,
-0.5*h1c, -0.5*ap, 33,
-0.5*h1c, -0.5*ap+dp, 33,
-0.5*dw, -0.5*ap+dp, 33,
-0.5*dw, 0.5*ap-dp, 33,
-0.5*h1c, 0.5*ap-dp, 33,
-0.5*h1c, 0.5*ap, 33
TomWaltz
Participant
Erika wrote:
I don't understand what the '3'-3.3701"' is after the x and y start coordinates.
That's metric for "one". It's one meter converted to feet. I often globally change those to ones for easier editing later.
Tom Waltz
Erika Epstein
Booster
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?
Erika
Architect, Consultant
MacBook Pro Retina, 15-inch Yosemite 2.8 GHz Intel Core i7 16 GB 1600 MHz DDR3
Mac OSX 10.11.1
AC5-18
Onuma System

"Implementing Successful Building Information Modeling"
Anonymous
Not applicable
The gdl reference says:

POLY2_B{3} n, frame_fill, fill_pen,
fill_background_pen,
fillOrigoX, fillOrigoY,
mxx, mxy, myx, myy, x1, y1, s1, ..., xn, yn, sn
Advanced version of the POLY2_ command, where the orientation of the fill can be defined using a matrix.
frame_fill = j1 + 2*j2 + 4*j3 + 8*j4 + 16*j5 + 32*j6 + 64*j7 +128*j8
where j1, j2, j3, j4, j5, j6, j7, j8 can be 0 or 1.
j1-j7: similar as for previous POLY2_ commands
j8 (128): use sloped fill
mxx, mxy, myx, myy: if j8 is set, this matrix defines the orientation of the fill

so, if framefill > 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
These are the "1-s" which were translated as length units(3'-3.3"), instead of real numbers (1.0)

so the coordinates at the x,y will be mapped from the hatch definition xh, yh as

x=mxx*xh+mxy*yh
y=myx*xh+myy*yh

but it also means that gs_framefill has to be 128+... if you want to use the matrix code.

"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
Erika Epstein
Booster
Ferenc & Tom
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.

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.
Erika
Architect, Consultant
MacBook Pro Retina, 15-inch Yosemite 2.8 GHz Intel Core i7 16 GB 1600 MHz DDR3
Mac OSX 10.11.1
AC5-18
Onuma System

"Implementing Successful Building Information Modeling"