We value your input!
Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey

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

help with POLY2_A and POLY2_B

Anonymous
Not applicable
Here's my code:

PEN 20
SET FILL "Brick Face "
POLY2_B{2} 5, 2, 20, 0,
0', 0', 0',
0', 0'-4.3750", 1,
0'-3.6250", 0'-4.3750", 1,
0'-3.6250", 0'-8.0000", 1,
0', 0'-8.0000", 1,
0', 0'-4.3750", -1
HOTSPOT2 0', 0'-4.3750"
HOTSPOT2 0'-3.6250", 0'-4.3750"
HOTSPOT2 0'-3.6250", 0'-8.0000"
HOTSPOT2 0', 0'-8.0000"
HOTSPOT2 0', 0'-4.3750"



I want to be able to control the pen colors of the fill. I looked up in the gdl cookbook but couldn't understand how to fix the code above that I saved out of archicad.

I'm not sure what the {2} after POLY2_B does to it but when I erase it it doesn't work.

THanks again for any help,
Michele
2 REPLIES 2
The {2} is a new form of POLY2_B which allows you to set the origin and angle of the hatch pattern, as in the fill tool itself. It is new in 8. It is what you get when you save a fill from the floor plan.

POLY2_B{2} 5, 2, 20, 0,
0', 0', 0', <-- Fill origin stuff
x, y, s,
...

The old POLY2_B, which you need to control the fill pattern and background pens, goes,

POLY2_B n, frame_fill, fill_pen, fill_background_pen,
x, y, s,
...

Take out the {2} and the "0',0',0'" row.

HTH,
James Murray

Archicad 27 • Rill Architects • macOS • OnLand.info
Anonymous
Not applicable
Jamesm,
I don't think I need to
Take out the {2} and the "0',0',0'" row.
I took it out in one spot but left it as is in all the other places and once I changed the fill_pen it worked just fine everywhere.

Thanks for explaining it to me,
Michele