<?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: Drawindex for Macros in GDL</title>
    <link>https://community.graphisoft.com/t5/GDL/Drawindex-for-Macros/m-p/385895#M421</link>
    <description>&lt;P&gt;Drawindex should work but you need to set it back to a lower value after the call.&lt;/P&gt;
&lt;P&gt;You shouldn't need to add it to the macros - I don't think it will do much in there except within the macro itself.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also the order in which you script can have an effect.&lt;/P&gt;
&lt;P&gt;I think it draws the 2D view in the order you script, so call the taps last maybe.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Barry.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 30 Jun 2023 13:27:57 GMT</pubDate>
    <dc:creator>Barry Kelly</dc:creator>
    <dc:date>2023-06-30T13:27:57Z</dc:date>
    <item>
      <title>Drawindex for Macros</title>
      <link>https://community.graphisoft.com/t5/GDL/Drawindex-for-Macros/m-p/385886#M420</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i am trying to understand the use of macros as a part of an object. In this specific case I want to use a tap object for several other objects (shower, bath and sink). I think I managed to understand the 'call' command and how to modify/use parameters of the macro.&lt;/P&gt;&lt;P&gt;One thing that I was not able get to work, is to understand how to place the macro object above the rest of the 2D elements. Right now the hatch of e.g. the shower covers the tap.&lt;BR /&gt;I understand that normally the drawing order is managed by the command 'drawindex' and I tried to use the same concept for the macro. I defined the drawindex before the 'call' command and also in the 2D script inside the macro itself.&lt;/P&gt;&lt;P&gt;What am I missing?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2023 11:55:38 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Drawindex-for-Macros/m-p/385886#M420</guid>
      <dc:creator>NWA</dc:creator>
      <dc:date>2023-06-30T11:55:38Z</dc:date>
    </item>
    <item>
      <title>Re: Drawindex for Macros</title>
      <link>https://community.graphisoft.com/t5/GDL/Drawindex-for-Macros/m-p/385895#M421</link>
      <description>&lt;P&gt;Drawindex should work but you need to set it back to a lower value after the call.&lt;/P&gt;
&lt;P&gt;You shouldn't need to add it to the macros - I don't think it will do much in there except within the macro itself.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also the order in which you script can have an effect.&lt;/P&gt;
&lt;P&gt;I think it draws the 2D view in the order you script, so call the taps last maybe.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Barry.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2023 13:27:57 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Drawindex-for-Macros/m-p/385895#M421</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2023-06-30T13:27:57Z</dc:date>
    </item>
    <item>
      <title>Re: Drawindex for Macros</title>
      <link>https://community.graphisoft.com/t5/GDL/Drawindex-for-Macros/m-p/385900#M422</link>
      <description>&lt;P&gt;That didn't work.. The tab still sits behind the other components..&lt;/P&gt;&lt;P&gt;Any other ideas? &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;if GLOB_SCALE &amp;lt;= 50 then
	
	hotspot2  0,	cy, hsid, cx, 1+128		:	hsid=hsid+1 !Base
	hotspot2  cx, 	cy, hsid, cx, 2			:	hsid=hsid+1 !Move
	hotspot2 -1, 	cy, hsid, cx, 3			:	hsid=hsid+1 !Vector
	
	hotspot2 cx,  0, hsid, cy, 1+128		:	hsid=hsid+1 !Base
	hotspot2 cx,  cy, hsid, cy, 2			:	hsid=hsid+1 !Move
	hotspot2 cx, -1, hsid, cy, 3			:	hsid=hsid+1 !Vector
		add2 cx-eps, cy-0.043

	if cx &amp;lt; eps then
		del 1		
		rot2 -90
		add2 -(cy+eps), cx-0.043
	endif
	
	if cx = eps then add2 -eps, 0

drawindex 50
call "Amatur" parameters 	macroParam1 = 0.27,
				macroParam2 = 0.208

drawindex 10
del top
endif&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2023 13:49:05 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Drawindex-for-Macros/m-p/385900#M422</guid>
      <dc:creator>NWA</dc:creator>
      <dc:date>2023-06-30T13:49:05Z</dc:date>
    </item>
    <item>
      <title>Re: Drawindex for Macros</title>
      <link>https://community.graphisoft.com/t5/GDL/Drawindex-for-Macros/m-p/385922#M423</link>
      <description>&lt;P&gt;Hi team.&lt;/P&gt;
&lt;P&gt;Banking on Barry's order :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;!2d script

DRAWindex 1
!shower
!bath 
!sink

DRawindex 50 (or any number higher than 1)
If GLOB_scale.... THEN
hotspot2 ...
CALL macro...
ENDIF

! caller object 2d script&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 01 Jul 2023 05:17:03 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Drawindex-for-Macros/m-p/385922#M423</guid>
      <dc:creator>Toper Barrientos</dc:creator>
      <dc:date>2023-07-01T05:17:03Z</dc:date>
    </item>
    <item>
      <title>Re: Drawindex for Macros</title>
      <link>https://community.graphisoft.com/t5/GDL/Drawindex-for-Macros/m-p/386201#M424</link>
      <description>&lt;P&gt;Thank you botch a lot for getting back to me.&lt;/P&gt;&lt;P&gt;Unfortunately there still seems to a problem with the 2D script. Attatched you will find the current state of my object.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Perhaps one of you could help me with solving this issue..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"Duschwanne_nwa" is the main object and "Amatur" is the tap macro.&lt;/P&gt;&lt;P&gt;Sorry the parameters are in German.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestion is much appreciated.&lt;/P&gt;&lt;P&gt;Many thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jul 2023 09:15:05 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Drawindex-for-Macros/m-p/386201#M424</guid>
      <dc:creator>NWA</dc:creator>
      <dc:date>2023-07-04T09:15:05Z</dc:date>
    </item>
    <item>
      <title>Re: Drawindex for Macros</title>
      <link>https://community.graphisoft.com/t5/GDL/Drawindex-for-Macros/m-p/386204#M425</link>
      <description>&lt;P&gt;Seems fine.&lt;/P&gt;
&lt;P&gt;The tap comes in on top for me when I set the scale to 1:50 or less.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BarryKelly_0-1688462714428.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/39872i6F7D270E126C752F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BarryKelly_0-1688462714428.png" alt="BarryKelly_0-1688462714428.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In my template the tap comes in with a brick fill (that is just because of my template attributes not matching yours), but it seems to not have a solid background.&lt;/P&gt;
&lt;P&gt;So the problem may be that you tap just needs a sold white background like the main object.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Barry.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jul 2023 09:29:59 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Drawindex-for-Macros/m-p/386204#M425</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2023-07-04T09:29:59Z</dc:date>
    </item>
    <item>
      <title>Re: Drawindex for Macros</title>
      <link>https://community.graphisoft.com/t5/GDL/Drawindex-for-Macros/m-p/386206#M426</link>
      <description>&lt;P&gt;Thank you so much Barry.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I totally mistook the grey filling in my tap macro for a solid filling and didn't even think about it being semi transparent.&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":expressionless_face:"&gt;😑&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have a great day!&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jul 2023 09:43:47 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Drawindex-for-Macros/m-p/386206#M426</guid>
      <dc:creator>NWA</dc:creator>
      <dc:date>2023-07-04T09:43:47Z</dc:date>
    </item>
  </channel>
</rss>

