<?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: Picture2 Display Order in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/Picture2-Display-Order/m-p/218628#M1329</link>
    <description>And looking at the script again you are not adding a fill.&lt;BR /&gt;
You are using PROJECT2, so maybe that is the problem and it can’t go behind - I have never tested this.&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
    <pubDate>Fri, 14 Feb 2020 14:25:41 GMT</pubDate>
    <dc:creator>Barry Kelly</dc:creator>
    <dc:date>2020-02-14T14:25:41Z</dc:date>
    <item>
      <title>Picture2 Display Order</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Picture2-Display-Order/m-p/218626#M1327</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;R&gt;Hello,&lt;BR /&gt;
&lt;BR /&gt;
I'm trying to add a picture in 2D but it defaults to be behind my fill - I have tried using DRAWINDEX but that doesn't seem to work either. Is there just no way of bringing a picture in front of a fill?&lt;BR /&gt;
&lt;BR /&gt;
Here's my code for reference:
&lt;PRE&gt;DRAWINDEX 10

add2 symb_pos_x, symb_pos_y
ROT2 symb_rot
if dis_symbol then
	if (type = t1) then ! Outlet
		if (sign_type = st1) then !dry
			picture2 "dry_riser_outlet", symb_height, symb_height, 1
		else
			picture2 "wet_riser_outlet", symb_height, symb_height, 1
		endif
	else
		if (sign_type = st1) then !dry
			picture2 "dry_riser_inlet", symb_height, symb_height, 1
		else
			picture2 "wet_riser_inlet", symb_height, symb_height, 1
		endif
	endif
endif

DEL 2

DRAWINDEX 30

pen gs_fill_pen
project2{3} 3, 270, 3 + 32, 4, gs_back_pen  ! adds fill

pen gs_cont_pen
project2 3, 270, 2 !adds outline
&lt;/PRE&gt;&lt;/R&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 14 Feb 2020 12:13:22 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Picture2-Display-Order/m-p/218626#M1327</guid>
      <dc:creator>JGoode</dc:creator>
      <dc:date>2020-02-14T12:13:22Z</dc:date>
    </item>
    <item>
      <title>Re: Picture2 Display Order</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Picture2-Display-Order/m-p/218627#M1328</link>
      <description>I can’t test your script at the moment, but just looking at it you need DRAWINDEX 30 for the picture then DRAWINDEX 10 for the fill.&lt;BR /&gt;
&lt;BR /&gt;
Or try scripting the fill first and then the picture (I am not sure if that will change anything but try anyway).&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
      <pubDate>Fri, 14 Feb 2020 14:21:29 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Picture2-Display-Order/m-p/218627#M1328</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2020-02-14T14:21:29Z</dc:date>
    </item>
    <item>
      <title>Re: Picture2 Display Order</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Picture2-Display-Order/m-p/218628#M1329</link>
      <description>And looking at the script again you are not adding a fill.&lt;BR /&gt;
You are using PROJECT2, so maybe that is the problem and it can’t go behind - I have never tested this.&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
      <pubDate>Fri, 14 Feb 2020 14:25:41 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Picture2-Display-Order/m-p/218628#M1329</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2020-02-14T14:25:41Z</dc:date>
    </item>
    <item>
      <title>Re: Picture2 Display Order</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Picture2-Display-Order/m-p/218629#M1330</link>
      <description>Thanks for your help Barry, I must have misread the gdl guidance.&lt;BR /&gt;
&lt;BR /&gt;
Just to confirm - it doesn't work with the PROJECT2.</description>
      <pubDate>Fri, 14 Feb 2020 14:36:57 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Picture2-Display-Order/m-p/218629#M1330</guid>
      <dc:creator>JGoode</dc:creator>
      <dc:date>2020-02-14T14:36:57Z</dc:date>
    </item>
  </channel>
</rss>

