<?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: Poly2_B and Solid Fills in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/Poly2-B-and-Solid-Fills/m-p/212727#M13468</link>
    <description>I'm glad to hear it's working for you as well:)</description>
    <pubDate>Wed, 05 Feb 2014 16:10:50 GMT</pubDate>
    <dc:creator>Dominika Bobaly</dc:creator>
    <dc:date>2014-02-05T16:10:50Z</dc:date>
    <item>
      <title>Poly2_B and Solid Fills</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Poly2-B-and-Solid-Fills/m-p/212720#M13461</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;R&gt;Weird one well tis to me.&lt;BR /&gt;
&lt;BR /&gt;
It seems that you can't use a Solid fill with Poly2_B as it doesn't show the fill but just the contour. Does this happen with the other Poly2_ commands?&lt;BR /&gt;
&lt;BR /&gt;
Below is an illustration showing what I get using Solid, Vectorial and Symbolic fills&lt;BR /&gt;
&lt;BR /&gt;
&lt;IMG src="https://dl.dropboxusercontent.com/u/399074/sites/trapdoor/solidfillprob.jpg" /&gt;&lt;/R&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 13 Nov 2013 16:51:00 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Poly2-B-and-Solid-Fills/m-p/212720#M13461</guid>
      <dc:creator>fuzzytnth3</dc:creator>
      <dc:date>2013-11-13T16:51:00Z</dc:date>
    </item>
    <item>
      <title>Re: Poly2_B and Solid Fills</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Poly2-B-and-Solid-Fills/m-p/212721#M13462</link>
      <description>One workaround would be to set both pens to white / 91 that way you can't see the pattern. &lt;BR /&gt;
&lt;BR /&gt;
I've tried stealing the code from an Archicad generated object but that didn't work although the object does. I must be missing something&lt;BR /&gt;

&lt;PRE&gt;!=====================•••Frame Fill•••==================
IF shwfrafil = 1 THEN
SET FILL frmfil

PEN 251
	POLY2_B{5} 	9,		frmfil, 	0, 		3,  frmfilptpen , frmfilbkgdpen, 
                   0, 0, 1, 0, 0, 1, 0, 
		-frmsz,		-strucszbot, 		1,	!1
		0,			-strucszbot, 		1,	!2
		0,			b, 					1,	!3
		a,			b, 					1,	!4
		a,			-strucszbot,		1,	!5
		a+frmsz,	-strucszbot, 		1,	!6	
		a+frmsz,	b+frmsz, 			1,	!7
		-frmsz, 	b+frmsz, 			1,	!8
		-frmsz,		-strucszbot,		1	!9
ENDIF&lt;/PRE&gt;</description>
      <pubDate>Wed, 13 Nov 2013 17:16:53 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Poly2-B-and-Solid-Fills/m-p/212721#M13462</guid>
      <dc:creator>fuzzytnth3</dc:creator>
      <dc:date>2013-11-13T17:16:53Z</dc:date>
    </item>
    <item>
      <title>Re: Poly2_B and Solid Fills</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Poly2-B-and-Solid-Fills/m-p/212722#M13463</link>
      <description>The second parameter is the frame fill - it controls whether the edge lines, the fill or both are displayed. The only options for POLY2_B{5} are 1, 2 or 4. (*see note below) &lt;BR /&gt;
 &lt;BR /&gt;
Change frmfil to 1+2 and it should work. &lt;BR /&gt;
 &lt;BR /&gt;
--------------------------- &lt;BR /&gt;
 &lt;BR /&gt;
*While looking at this I noticed (in AC15 at least) that the manual says 1,2,or 4 are the only options, but dragging in a fill from the plan with the fill set to cut or cover, it adds 32 or 64 to this figure - &lt;BR /&gt;
 &lt;BR /&gt;
poly2_b{5}       5,     &lt;B&gt;35&lt;/B&gt;,      1,      3,    110,    130,  &lt;BR /&gt;
 &lt;BR /&gt;
poly2_b{5}       5,     &lt;B&gt;67&lt;/B&gt;,      1,      3,    110,    130, &lt;BR /&gt;
 &lt;BR /&gt;
...which is how the other poly2_b{x} should behave, and specifically not poly2_b{5}! Although this doesn't stop the object from working, it doesn't control the cut or cover properties at all; the next parameter does (set at 1 in my examples). &lt;BR /&gt;
 &lt;BR /&gt;
The manual is also incorrect about the value this should be set to. It says fillcategory: 0 - Draft 1 - Cut 2- Cover, but it appears actually 0&amp;amp;1 are Draft, 2&amp;amp;3 are Cut, and 4&amp;amp;5 are Cover! &lt;BR /&gt;
 &lt;BR /&gt;
Don't trust the auto-scripted fills - they are incorrect! &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_eek.gif" style="display : inline;" /&gt; &lt;BR /&gt;
 &lt;BR /&gt;
I hope this has been corrected in AC17! (I can't check I'm afraid)</description>
      <pubDate>Thu, 14 Nov 2013 00:51:18 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Poly2-B-and-Solid-Fills/m-p/212722#M13463</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-11-14T00:51:18Z</dc:date>
    </item>
    <item>
      <title>Re: Poly2_B and Solid Fills</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Poly2-B-and-Solid-Fills/m-p/212723#M13464</link>
      <description>Manual says:&lt;BR /&gt;
frame_fill = j1	+ 2*j2	+ 4*j3	+ 8*j4	+ 16*j5	+ 32*j6	+ 64*j7, where each j can be 0 or 1. &lt;BR /&gt;
j1: draw contour &lt;BR /&gt;
j2: draw fill &lt;BR /&gt;
j3: close an open polygon&lt;BR /&gt;
...&lt;BR /&gt;
&lt;BR /&gt;
So I think you must use: 1 + 2 + 4 = 7 for frame_fill</description>
      <pubDate>Thu, 14 Nov 2013 07:20:19 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Poly2-B-and-Solid-Fills/m-p/212723#M13464</guid>
      <dc:creator>Jochen Suehlo</dc:creator>
      <dc:date>2013-11-14T07:20:19Z</dc:date>
    </item>
    <item>
      <title>Re: Poly2_B and Solid Fills</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Poly2-B-and-Solid-Fills/m-p/212724#M13465</link>
      <description>What you are both missing is I'm not having a problem getting the &lt;B&gt;Poly2_B&lt;/B&gt; type polygon to display but that it only displays certain types of fill. &lt;BR /&gt;
&lt;BR /&gt;
ArchiCAD has 4 categories of Fill ie &lt;B&gt;Solid, Gradient, Vectorial&lt;/B&gt; and &lt;B&gt;Symbolic&lt;/B&gt;. For whatever reason &lt;B&gt;Poly2_B&lt;/B&gt; seems to only display certain &lt;U&gt;&lt;/U&gt;&lt;S&gt;&lt;U&gt;&lt;U&gt;&lt;/U&gt;&lt;/U&gt;&lt;/S&gt;Fill types&lt;E&gt;&lt;/E&gt; and what is even more puzzling is that with &lt;B&gt;Vectorial Fills&lt;/B&gt; it displays some but not all, weird!&lt;BR /&gt;
&lt;BR /&gt;
Anyway to get round the problem I have regressed back to &lt;B&gt;Poly2_&lt;/B&gt; type polygon and it plays nicely with &lt;B&gt;Solid Fills&lt;/B&gt;&lt;BR /&gt;
&lt;BR /&gt;

&lt;PRE&gt;POLY2_ 9, 3,		!Working fill for white
		-frmsz,		-strucszbot, 		15,	!1
		0,			-strucszbot, 		15,	!2
		0,			b, 					15,	!3
		a,			b, 					15,	!4
		a,			-strucszbot,		15,	!5
		a+frmsz,	-strucszbot, 		15,	!6	
		a+frmsz,	b+frmsz, 			15,	!7
		-frmsz, 	b+frmsz, 			15,	!8
		-frmsz,		-strucszbot,		-1	!9&lt;/PRE&gt;</description>
      <pubDate>Fri, 15 Nov 2013 10:42:23 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Poly2-B-and-Solid-Fills/m-p/212724#M13465</guid>
      <dc:creator>fuzzytnth3</dc:creator>
      <dc:date>2013-11-15T10:42:23Z</dc:date>
    </item>
    <item>
      <title>Re: Poly2_B and Solid Fills</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Poly2-B-and-Solid-Fills/m-p/212725#M13466</link>
      <description>fuzzytnth3,&lt;BR /&gt;
&lt;BR /&gt;
I have tried to look into your case, with a simple scripted test object:&lt;BR /&gt;

&lt;PRE&gt;&lt;I&gt;
&lt;/I&gt;! Comments:
! boolean type parameters: bDrawFillBit, bCutFillBit, bCoverFillBit
! pen type parameters: fillContPen, fillPen, fillBgPen
! fill type parameter: fillTypePoly
! variables: recess, frame_fill

pen fillContPen
fill fillTypePoly

recess = 0.22
frame_fill = 1 + bDrawFillBit*2 + 4 + 32*bCutFillBit + 64*bCoverFillBit

poly2_B 10, frame_fill,
		fillPen, fillBgPen,
		0, 0, 1,
		A, 0, 1,
		A, B, 1,
		0, B, 1,
		0, 0, -1,

		recess, recess, 1, 
		A-recess, recess, 1,
		A-recess, B-recess, 1,
		recess, B-recess, 1,
		recess, recess, -1

nameFill = ""
n = REQUEST ("Name_of_fill", fillTypePoly, nameFill)

define style "textStyle" "Helvetica", 3, 1, 0
set style "textStyle"

text2 0, 0, nameFill
&lt;/PRE&gt;

I wasn't able to reproduce the missing function, worked fine for me (same AC version you have).&lt;BR /&gt;
Please give it another go with the test object.&lt;BR /&gt;
&lt;BR /&gt;
Change the "fillTypePoly" parameter to any fill you wish to try( I have tried several from Solid/Vectorial/Symbolic types, all working).&lt;BR /&gt;
There are booleans to turn certain fill attributes on/off inside the frame_fill variable, depending on your needs. If you want an empty fill, set "bDrawFillBit" to zero. Turning off this bit hides the fill completely, leaving only the contours of the polygon (this looks a lot like your first example). The 1 before that controls the visibility of the contours. If you set that to 0, no contours will be visible. Bit 4 closes the open polygon. With 32 and 64 you can make your poly behave like a cut or a cover fill (only turn on one of those at a time, and when both is off, your fill acts like a draft fill).&lt;BR /&gt;
This way you can create a matrix of draft/cut/cover and solid/Vectorial/Symbolic fill objects.&lt;BR /&gt;
&lt;BR /&gt;
If the above does not solve the problem, please review your Model View Options settings in Document/Set Model View menu. There are certain possibilities to override different filltype's attributes in your plan on the "Override Fill Display" tab.&lt;BR /&gt;
&lt;BR /&gt;
Give these a try. Falling back to poly2_ should be your last option:)&lt;BR /&gt;
If the problem is still visible, please contact our Support Team or your Reseller, and send us a plan (preferably .pla) with your scripted objects.&lt;BR /&gt;
&lt;BR /&gt;
-----------------------------------------------------&lt;BR /&gt;
Software Engineer&lt;BR /&gt;
ArchiCAD Development - Library Team</description>
      <pubDate>Mon, 20 Jan 2014 15:47:14 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Poly2-B-and-Solid-Fills/m-p/212725#M13466</guid>
      <dc:creator>Dominika Bobaly</dc:creator>
      <dc:date>2014-01-20T15:47:14Z</dc:date>
    </item>
    <item>
      <title>Re: Poly2_B and Solid Fills</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Poly2-B-and-Solid-Fills/m-p/212726#M13467</link>
      <description>Thanks for taking a look at this. I made the fill test object as per your script and instructions and it worked as you said. &lt;BR /&gt;
&lt;BR /&gt;
I then tried to apply it to my object and I found that it worked when I used the frame_fill parameter the way you did in the test object.&lt;BR /&gt;
&lt;BR /&gt;
So thank you again it is working nicely now.&lt;BR /&gt;

&lt;PRE&gt;frame_fill = 1 + bDrawFillBit*2 + 4 + 32*bCutFillBit + 64*bCoverFillBit &lt;/PRE&gt;</description>
      <pubDate>Wed, 05 Feb 2014 16:02:02 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Poly2-B-and-Solid-Fills/m-p/212726#M13467</guid>
      <dc:creator>fuzzytnth3</dc:creator>
      <dc:date>2014-02-05T16:02:02Z</dc:date>
    </item>
    <item>
      <title>Re: Poly2_B and Solid Fills</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Poly2-B-and-Solid-Fills/m-p/212727#M13468</link>
      <description>I'm glad to hear it's working for you as well:)</description>
      <pubDate>Wed, 05 Feb 2014 16:10:50 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Poly2-B-and-Solid-Fills/m-p/212727#M13468</guid>
      <dc:creator>Dominika Bobaly</dc:creator>
      <dc:date>2014-02-05T16:10:50Z</dc:date>
    </item>
  </channel>
</rss>

