<?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 Define Image Fill HELP!? in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/Define-Image-Fill-HELP/m-p/292360#M5690</link>
    <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;Hi, I need to script an image fill into my object but I am not sure how to use the define image fill code. Any examples would be very helpful!&lt;BR /&gt;
&lt;BR /&gt;
Thanks&lt;/T&gt;&lt;/DIV&gt;</description>
    <pubDate>Tue, 20 Jun 2017 14:44:47 GMT</pubDate>
    <dc:creator>JGoode</dc:creator>
    <dc:date>2017-06-20T14:44:47Z</dc:date>
    <item>
      <title>Define Image Fill HELP!?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Define-Image-Fill-HELP/m-p/292360#M5690</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;Hi, I need to script an image fill into my object but I am not sure how to use the define image fill code. Any examples would be very helpful!&lt;BR /&gt;
&lt;BR /&gt;
Thanks&lt;/T&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 20 Jun 2017 14:44:47 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Define-Image-Fill-HELP/m-p/292360#M5690</guid>
      <dc:creator>JGoode</dc:creator>
      <dc:date>2017-06-20T14:44:47Z</dc:date>
    </item>
    <item>
      <title>Re: Define Image Fill HELP!?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Define-Image-Fill-HELP/m-p/292361#M5691</link>
      <description>I have removed you other post asking basically the same thing.&lt;BR /&gt;
I don't have a working example for you at the moment.&lt;BR /&gt;
If I get a few moment later tonight I will see if I can help - unless someone else has an example in the mean time.&lt;BR /&gt;
&lt;BR /&gt;
I would just copy and paste the command from the GDL manual and fill in all the variables.&lt;BR /&gt;
I see it shows "part1, part2, ... etc" where in the other fill commands it shows "pat1, pat2, ... etc" or  "pattern1, pattern2, ... etc" .&lt;BR /&gt;
This I assume is just a typo - it is the bitmap pattern for the fill - nothing like consistency in the examples to avoid confusion.&lt;BR /&gt;
&lt;BR /&gt;
8 positions for a dot in each of the 8 lines for the bitmap pattern.&lt;BR /&gt;
Add these figures for each dot you want on (zero is off).&lt;BR /&gt;
So a solid line would be ...&lt;BR /&gt;
128+64+32+16+8+4+2+1 = 255&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
      <pubDate>Wed, 21 Jun 2017 01:59:04 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Define-Image-Fill-HELP/m-p/292361#M5691</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2017-06-21T01:59:04Z</dc:date>
    </item>
    <item>
      <title>Re: Define Image Fill HELP!?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Define-Image-Fill-HELP/m-p/292362#M5692</link>
      <description>&lt;BLOCKQUOTE&gt;Barry wrote:&lt;BR /&gt;
&lt;BR /&gt;
8 positions for a dot in each of the 8 lines for the bitmap pattern.&lt;BR /&gt;
Add these figures for each dot you want on (zero is off).&lt;BR /&gt;
So a solid line would be ...&lt;BR /&gt;
128+64+32+16+8+4+2+1 = 255
&lt;/BLOCKQUOTE&gt; Thanks for the reply. What my goal is, is to use my 1x1 pixel to cover the entire fill space. I am not sure how manipulate those numbers to make the fill completely solid... any ideas?&lt;BR /&gt;
&lt;BR /&gt;
Thanks</description>
      <pubDate>Wed, 21 Jun 2017 08:51:59 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Define-Image-Fill-HELP/m-p/292362#M5692</guid>
      <dc:creator>JGoode</dc:creator>
      <dc:date>2017-06-21T08:51:59Z</dc:date>
    </item>
    <item>
      <title>Re: Define Image Fill HELP!?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Define-Image-Fill-HELP/m-p/292363#M5693</link>
      <description>So you have an image file that is 1x1 pixel?&lt;BR /&gt;
Why do you want an image fill for that - it will just be a single colour?&lt;BR /&gt;
&lt;BR /&gt;
Those numbers (pattern) are for the bitmap fill that you will only see if you turn the vectorial fills off.&lt;BR /&gt;
I think it may also be the icon you will see in the fills dialogue - but I am not sure about that.&lt;BR /&gt;
If you look at the example for the DEFINE FILLA command you should see what I mean.&lt;BR /&gt;
The bitmap fill is a very basic 8x8 pixel representation of the vectorial fill.&lt;BR /&gt;
If you want that to be solid it would be 255,255,255,255,255,255,255,255&lt;BR /&gt;
8 x solid lines.&lt;BR /&gt;
&lt;BR /&gt;
But this bitmap fill will not affect your image fill.&lt;BR /&gt;
&lt;BR /&gt;
With an image fill you do not have a vectorial fill because you have an image (picture) instead.&lt;BR /&gt;
&lt;BR /&gt;
I just gave it a quick try but I am not getting the image.&lt;BR /&gt;
It is creating the fill and it even appears in my fill list as an image fill - but no image.&lt;BR /&gt;
I will see if I can suss it out tonight.&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
      <pubDate>Wed, 21 Jun 2017 09:40:39 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Define-Image-Fill-HELP/m-p/292363#M5693</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2017-06-21T09:40:39Z</dc:date>
    </item>
    <item>
      <title>Re: Define Image Fill HELP!?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Define-Image-Fill-HELP/m-p/292364#M5694</link>
      <description>The image needs to be in your (embedded?) library for it to load, I think.&lt;BR /&gt;
&lt;BR /&gt;
I suppose if you want exact RGB value for a fill, this is an interesting approach.&lt;BR /&gt;
&lt;BR /&gt;
Zones can have any RGB value as a fill, but if you explode these and drag them into 2D script, you just get some funky pennumber that it doesn't recognise.&lt;BR /&gt;
&lt;BR /&gt;
I used a similar trick for a while for 'true' RAL colours to export properly to some other software by having 1x1 pixel textures in the surface settings. Using the RGB values resulted in them changing to something else related to all the other parameters. A bit back though, haven't been exporting much since cinerender got added in.&lt;BR /&gt;
&lt;BR /&gt;
If you keep struggling, it is quite easy to set up a graphic override for a specific fill to an image fill. You could just make some specific vectorial fill and swap it out with your desired image fill that way for a single project.</description>
      <pubDate>Wed, 21 Jun 2017 10:21:07 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Define-Image-Fill-HELP/m-p/292364#M5694</guid>
      <dc:creator>Erwin Edel</dc:creator>
      <dc:date>2017-06-21T10:21:07Z</dc:date>
    </item>
    <item>
      <title>Re: Define Image Fill HELP!?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Define-Image-Fill-HELP/m-p/292365#M5695</link>
      <description>Sorry I am not having much luck with any defined fills (image or vectorial).&lt;BR /&gt;
They are all just coming out as black (pen 1) fills.&lt;BR /&gt;
As far as I know this code should work for an image fill.&lt;BR /&gt;

&lt;PRE&gt;DEFINE IMAGE_FILL "test" "Flowers.jpg",
255, 255, 255, 255, 255, 255, 255, 255,
0.321, 0.485, 0, 0
&lt;/PRE&gt;

Substitute the image name for one you have in your loaded or embedded library.&lt;BR /&gt;
&lt;BR /&gt;
At work this image fill was showing up in my list of fills, but here at home it is not.&lt;BR /&gt;
I don't know why this would be like this.&lt;BR /&gt;
If I get a chance at work tomorrow I will give it another try.&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
      <pubDate>Wed, 21 Jun 2017 14:33:05 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Define-Image-Fill-HELP/m-p/292365#M5695</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2017-06-21T14:33:05Z</dc:date>
    </item>
    <item>
      <title>Re: Define Image Fill HELP!?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Define-Image-Fill-HELP/m-p/292366#M5696</link>
      <description>&lt;BLOCKQUOTE&gt;Barry wrote:&lt;BR /&gt;Sorry I am not having much luck with any defined fills (image or vectorial).&lt;BR /&gt;
They are all just coming out as black (pen 1) fills.&lt;BR /&gt;
As far as I know this code should work for an image fill.&lt;BR /&gt;

&lt;PRE&gt;DEFINE IMAGE_FILL "test" "Flowers.jpg",
255, 255, 255, 255, 255, 255, 255, 255,
0.321, 0.485, 0, 0
&lt;/PRE&gt;

&lt;BR /&gt;
Barry.&lt;/BLOCKQUOTE&gt; Thank you very much for your help! Finally got it working correctly!</description>
      <pubDate>Wed, 21 Jun 2017 14:47:22 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Define-Image-Fill-HELP/m-p/292366#M5696</guid>
      <dc:creator>JGoode</dc:creator>
      <dc:date>2017-06-21T14:47:22Z</dc:date>
    </item>
    <item>
      <title>Re: Define Image Fill HELP!?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Define-Image-Fill-HELP/m-p/292367#M5697</link>
      <description>It is best to define these image fills in a MASTER_GDL object.&lt;BR /&gt;
This way they will be created when the library loads and will be available as a regular fill wherever you can use fills.&lt;BR /&gt;
It's name will be in italics in the material dialogue and attribute manager so you know it is defined via GDL.&lt;BR /&gt;
&lt;BR /&gt;
Defining it in an object doesn't seem to work with image fills - at least for me.&lt;BR /&gt;
I need to open the fills dialogue, select that image fill and press OK.&lt;BR /&gt;
It then shows in plan but will go blank again after a re-build.&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
      <pubDate>Thu, 22 Jun 2017 06:54:02 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Define-Image-Fill-HELP/m-p/292367#M5697</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2017-06-22T06:54:02Z</dc:date>
    </item>
    <item>
      <title>Re: Define Image Fill HELP!?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Define-Image-Fill-HELP/m-p/292368#M5698</link>
      <description>&lt;BLOCKQUOTE&gt;Barry wrote:&lt;BR /&gt;It is best to define these image fills in a MASTER_GDL object.&lt;BR /&gt;
This way they will be created when the library loads and will be available as a regular fill wherever you can use fills.&lt;BR /&gt;
It's name will be in italics in the material dialogue and attribute manager so you know it is defined via GDL.&lt;BR /&gt;
&lt;BR /&gt;
Defining it in an object doesn't seem to work with image fills - at least for me.&lt;BR /&gt;
I need to open the fills dialogue, select that image fill and press OK.&lt;BR /&gt;
It then shows in plan but will go blank again after a re-build.&lt;BR /&gt;
&lt;BR /&gt;
Barry.&lt;/BLOCKQUOTE&gt;

Okay so it works when I place it...however in the preview it shows white dashed horizontal lines which are only visible in the object selection. This may not seem like a problem but it could potentially confuse the user so i'd like to get rid of it. &lt;BR /&gt;
&lt;BR /&gt;
Here is a piece of example script;&lt;BR /&gt;
&lt;BR /&gt;
	fill "pink"&lt;BR /&gt;
	poly2_b{5}      12,      3,      0,      3,     60,    0, &lt;BR /&gt;
					   0,            0,            1,            0,            0,            1,            0, &lt;BR /&gt;
				   0.003, 0.005999992562067,      1, &lt;BR /&gt;
				   0.008, 0.005999992562067,    900, &lt;BR /&gt;
					   0,          180,   4001, &lt;BR /&gt;
				   0.008, 0.005999992562067,    900, &lt;BR /&gt;
					   0,          180,   4001, &lt;BR /&gt;
				   0.003, 0.005999992562067,     -1, &lt;BR /&gt;
				  0.0125, 0.005999992562067,      1, &lt;BR /&gt;
				   0.008, 0.005999992562067,    900, &lt;BR /&gt;
					   0,         -180,   4001, &lt;BR /&gt;
				   0.008, 0.005999992562067,    900, &lt;BR /&gt;
					   0,         -180,   4001, &lt;BR /&gt;
				  0.0125, 0.005999992562067,     -1</description>
      <pubDate>Thu, 22 Jun 2017 10:00:09 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Define-Image-Fill-HELP/m-p/292368#M5698</guid>
      <dc:creator>JGoode</dc:creator>
      <dc:date>2017-06-22T10:00:09Z</dc:date>
    </item>
    <item>
      <title>Re: Define Image Fill HELP!?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Define-Image-Fill-HELP/m-p/292369#M5699</link>
      <description>Even though my 2D image doesn't show it, the preview still shows strange patterns at 255. All I want is a solid fill. Any idea what numbers to use?</description>
      <pubDate>Mon, 26 Jun 2017 12:36:27 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Define-Image-Fill-HELP/m-p/292369#M5699</guid>
      <dc:creator>JGoode</dc:creator>
      <dc:date>2017-06-26T12:36:27Z</dc:date>
    </item>
    <item>
      <title>Re: Define Image Fill HELP!?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Define-Image-Fill-HELP/m-p/292370#M5700</link>
      <description>&lt;BLOCKQUOTE&gt;JGoode wrote:&lt;BR /&gt;Even though my 2D image doesn't show it, the preview still shows strange patterns at 255. All I want is a solid fill. Any idea what numbers to use?&lt;/BLOCKQUOTE&gt;

I am not quite sure what you mean by this - can you post a screen shot?&lt;BR /&gt;
&lt;BR /&gt;
The 'pattern' numbers only affect the bitmap image of the fill and if all are '255' you will get a solid bitmap image - as in the attached image.&lt;BR /&gt;

&lt;PRE&gt;DEFINE IMAGE_FILL "pink" "Flowers.jpg", 
 255, 255, 255, 255, 255, 255, 255, 255, 
 0.321, 0.485, 0, 0&lt;/PRE&gt;

For some reason if all pattern values are set at zero (should be an empty fill) one line remains solid in the preview.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
      <pubDate>Tue, 27 Jun 2017 01:11:08 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Define-Image-Fill-HELP/m-p/292370#M5700</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2017-06-27T01:11:08Z</dc:date>
    </item>
    <item>
      <title>Re: Define Image Fill HELP!?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Define-Image-Fill-HELP/m-p/292371#M5701</link>
      <description>&lt;BLOCKQUOTE&gt;Barry wrote:&lt;BR /&gt;&lt;BLOCKQUOTE&gt;JGoode wrote:&lt;BR /&gt;Even though my 2D image doesn't show it, the preview still shows strange patterns at 255. All I want is a solid fill. Any idea what numbers to use?&lt;/BLOCKQUOTE&gt;

I am not quite sure what you mean by this - can you post a screen shot?&lt;BR /&gt;
&lt;BR /&gt;
The 'pattern' numbers only affect the bitmap image of the fill and if all are '255' you will get a solid bitmap image - as in the attached image.&lt;BR /&gt;

&lt;PRE&gt;DEFINE IMAGE_FILL "pink" "Flowers.jpg", 
 255, 255, 255, 255, 255, 255, 255, 255, 
 0.321, 0.485, 0, 0&lt;/PRE&gt;

For some reason if all pattern values are set at zero (should be an empty fill) one line remains solid in the preview.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Barry.&lt;/BLOCKQUOTE&gt; This is with everything set a 0. It's the clearest I could get it.&lt;BR /&gt;
[/img]&lt;BR /&gt;&lt;IMG src="https://community.graphisoft.com/t5/image/serverpage/image-id/11971iD74CE779D819B77F/image-size/large?v=v2&amp;amp;px=999" border="0" alt="screenshot.jpg" title="screenshot.jpg" /&gt;</description>
      <pubDate>Tue, 27 Jun 2017 12:53:59 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Define-Image-Fill-HELP/m-p/292371#M5701</guid>
      <dc:creator>JGoode</dc:creator>
      <dc:date>2017-06-27T12:53:59Z</dc:date>
    </item>
    <item>
      <title>Re: Define Image Fill HELP!?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Define-Image-Fill-HELP/m-p/292372#M5702</link>
      <description>So those dots behind the text is supposed to be the fill?&lt;BR /&gt;
It doesn't appear to be loading your image file.&lt;BR /&gt;
&lt;BR /&gt;
I was having trouble with this if defined in an object.&lt;BR /&gt;
I think it is best to define in a MATER_GDL object ( i.e. simply an object named "MASTER_GDL_fills").&lt;BR /&gt;
These are loaded first when your library loads and then the fill will be available in Archicad in the fill tool and to all other objects in their parameters.&lt;BR /&gt;
You will have to manually re-load the library after creating the MASTER_GDL object for it to load.&lt;BR /&gt;
&lt;BR /&gt;
Personally I would just create the image fill in the fill settings and use the Attribute Manager to save it as an AAT file that you can import into any other file.&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
      <pubDate>Wed, 28 Jun 2017 01:31:32 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Define-Image-Fill-HELP/m-p/292372#M5702</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2017-06-28T01:31:32Z</dc:date>
    </item>
    <item>
      <title>Re: Define Image Fill HELP!?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Define-Image-Fill-HELP/m-p/292373#M5703</link>
      <description>Still having problems with this. For some reason I get a dashed line across my 2D object. Even though in my object I set everything to 255, the "Screen-only Pattern" in the Element Attributes section isn't full. I can't workout why this is. No Idea why. Even on some of my other fills even though they appear as solid in both plan and in the "Screen-only Pattern" the preview shows a dashed line. It isn't a big problem as they appear as solid in the actual plan view but it's a bit confusing in the preview. The image fill doesn't actually show in the preview either for some reason however it shows the dashed line that develops from it.&lt;BR /&gt;

&lt;PRE&gt;define image_fill 'black' "Black_Image_Fill",
        255, 255, 255, 255, 255, 255, 255, 255,
        0.001, 0.001, 0, 0&lt;/PRE&gt;

&lt;BR /&gt;
EDIT: No dashed line however, the image fill does not appear in the preview.&lt;BR /&gt;
&lt;BR /&gt;
EDIT: &lt;PRE&gt;		FILL "red"
		poly2_b{5}      12,      3,      0,      3,     220,    220, 
						   0,            0,            1,            0,            0,            1,            0, 
				0.003011396909279, -0.012,      0, 
				0.008011396909279, -0.012,    900, 
						   0,          180,   4000, 
				0.008011396909279, -0.012,    900, 
						   0,          180,   4000, 
				0.003011396909279, -0.012,     -1, 
				0.01201139690928, -0.012,      0, 
				0.008011396909279, -0.012,    900, 
						   0,         -180,   4000, 
				0.008011396909279, -0.012,    900, 
						   0,         -180,   4000, 
				0.01201139690928, -0.012,     0
&lt;/PRE&gt; This bit of code shows the intended image fill (FILL "red") on plan but only shows "220" which is an archicad red in every preview. It's very odd.</description>
      <pubDate>Wed, 30 Aug 2017 11:44:04 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Define-Image-Fill-HELP/m-p/292373#M5703</guid>
      <dc:creator>JGoode</dc:creator>
      <dc:date>2017-08-30T11:44:04Z</dc:date>
    </item>
  </channel>
</rss>

