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

Set Solid Fill for Circle2

derekjackson
Expert
Hi,
I'm having trouble specifying a solid fill for a simple 2D Circle script.

The code I'm using is:

PEN 1
SET FILL "Solid Fill"
CIRCLE2 0,0,0.03
Unfortunately all I get is the outline of the circle - I'm hoping for it to be filled black, but from what I can tell, the only way to achieve that is by using POLY2_B?

What am I doing wrong?

Thanks,

Derek
http://www.lsiarchitects.co.uk
http://derekjackson.artstation.com
AC19 / 21 / 23 / 27
Windows 7 Intel Xeon 18Gb
3 REPLIES 3
Anonymous
Not applicable
Circle2 only draws the outline of the circle. You are correct in that you need to use POLY2_B command.

Try this

PEN outline_pen_parameter
FILL fill_type_parameter

POLY2_B 2, 3, fill_pen_parameter, fill_background_pen_parameter,
0, 0, 900,
.03, 360, 4001
derekjackson
Expert
Thanks for that! Any chance you could quickly explain the 900 and 4001?

Cheers,

Derek
http://www.lsiarchitects.co.uk
http://derekjackson.artstation.com
AC19 / 21 / 23 / 27
Windows 7 Intel Xeon 18Gb
Anonymous
Not applicable
Check out page 141 and onward in the GDL Reference Manual.

They are status codes, where 900 defines the centerpoint of a Circle. 4000 has 2 variations, one is an arc using a centerpoint (defined by 900) and angle, and the other is a full circle using a centerpoint and radius. The one used here is full circle. .03 deifnes the radius, 360 a full circle in degrees.