<?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: GDL: User Input - &amp;quot;Can't Find Macro&amp;quot; - Return in GDL</title>
    <link>https://community.graphisoft.com/t5/GDL/GDL-User-Input-quot-Can-t-Find-Macro-quot-Return/m-p/377972#M181</link>
    <description>&lt;P&gt;Hm. The&amp;nbsp;&lt;EM&gt;OPEN&lt;/EM&gt; command does post around 80 lines to the&amp;nbsp;&lt;EM&gt;Session Report&amp;nbsp;&lt;/EM&gt;saying that the file is not found which is a bit excessive...&lt;/P&gt;</description>
    <pubDate>Thu, 27 Apr 2023 06:45:23 GMT</pubDate>
    <dc:creator>Lingwisyer</dc:creator>
    <dc:date>2023-04-27T06:45:23Z</dc:date>
    <item>
      <title>GDL: User Input - "Can't Find Macro" - Return</title>
      <link>https://community.graphisoft.com/t5/GDL/GDL-User-Input-quot-Can-t-Find-Macro-quot-Return/m-p/377829#M177</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a macro call in which the user can inser their own symbol objects, and I was wondering if there was a way to detect whether the inserted name exists so that I can ignore the input if it does not whilst giving a notice about it. At the moment it just fails to generate which is highly inconvenient.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ling.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2023 02:09:04 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/GDL-User-Input-quot-Can-t-Find-Macro-quot-Return/m-p/377829#M177</guid>
      <dc:creator>Lingwisyer</dc:creator>
      <dc:date>2023-04-26T02:09:04Z</dc:date>
    </item>
    <item>
      <title>Re: GDL: User Input - "Can't Find Macro" - Return</title>
      <link>https://community.graphisoft.com/t5/GDL/GDL-User-Input-quot-Can-t-Find-Macro-quot-Return/m-p/377889#M178</link>
      <description>&lt;P&gt;Could you use OPEN to test for the file presence and use the return values followed by CLOSE?&lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2023 13:54:49 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/GDL-User-Input-quot-Can-t-Find-Macro-quot-Return/m-p/377889#M178</guid>
      <dc:creator>DGSketcher</dc:creator>
      <dc:date>2023-04-26T13:54:49Z</dc:date>
    </item>
    <item>
      <title>Re: GDL: User Input - "Can't Find Macro" - Return</title>
      <link>https://community.graphisoft.com/t5/GDL/GDL-User-Input-quot-Can-t-Find-Macro-quot-Return/m-p/377952#M179</link>
      <description>&lt;PRE class="programlisting"&gt;folder = OPEN (called_object, "c:", "FILES")&lt;/PRE&gt;
&lt;P&gt;Any idea how you would point that at the loaded libraries?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hm. Found &lt;A href="https://community.graphisoft.com/t5/Wishes-forum/Request-if-Object-Macro-exists/td-p/218659/page/2" target="_self"&gt;Runxel's thread&lt;/A&gt; about this...&lt;/P&gt;
&lt;P&gt;Similar &lt;A href="https://community.graphisoft.com/t5/Wishes-forum/GDL-TEXT-I-O-ADD-ON-ERROR-RETURN/td-p/33828" target="_self"&gt;thread&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2023 06:11:44 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/GDL-User-Input-quot-Can-t-Find-Macro-quot-Return/m-p/377952#M179</guid>
      <dc:creator>Lingwisyer</dc:creator>
      <dc:date>2023-04-27T06:11:44Z</dc:date>
    </item>
    <item>
      <title>Re: GDL: User Input - "Can't Find Macro" - Return</title>
      <link>https://community.graphisoft.com/t5/GDL/GDL-User-Input-quot-Can-t-Find-Macro-quot-Return/m-p/377967#M180</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;a href="https://community.graphisoft.com/t5/user/viewprofilepage/user-id/11396"&gt;@DGSketcher&lt;/a&gt;&amp;nbsp;- Could you use OPEN to test for the file presence and use the return values followed by CLOSE?&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Figured out how to use the text I/O to query if the file exists&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;channel = OPEN ("TEXT", marker_call, "library")

IF marker_call # "" &amp;amp; channel # -1 then		!Name inserted, name exists (actually &amp;gt; -1)
		MUL2 marker_height * (-10) * GLOB_SCALE, marker_height * 10 * GLOB_SCALE
			CALL marker_call parameters ALL,
					penAttribute_1		=	penAttribute_1,
					penAttribute_2		=	penAttribute_2,
					penAttribute_3		=	penAttribute_3,
					penAttribute_4		=	penAttribute_4,
					fillAttribute_1		=	fillAttribute_1,
					fillAttribute_2		=	fillAttribute_2,
					lineTypeAttribute_1	=	lineTypeAttribute_1,
					lineTypeAttribute_2	=	lineTypeAttribute_2
		DEL 1
		TEXT2	0,	0,	channel				
	else
		IF i = 1 then
			TEXT2	0,	0,	"Marker Name Not Found"
		endIF
endIF&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ling.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2023 06:43:08 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/GDL-User-Input-quot-Can-t-Find-Macro-quot-Return/m-p/377967#M180</guid>
      <dc:creator>Lingwisyer</dc:creator>
      <dc:date>2023-04-27T06:43:08Z</dc:date>
    </item>
    <item>
      <title>Re: GDL: User Input - "Can't Find Macro" - Return</title>
      <link>https://community.graphisoft.com/t5/GDL/GDL-User-Input-quot-Can-t-Find-Macro-quot-Return/m-p/377972#M181</link>
      <description>&lt;P&gt;Hm. The&amp;nbsp;&lt;EM&gt;OPEN&lt;/EM&gt; command does post around 80 lines to the&amp;nbsp;&lt;EM&gt;Session Report&amp;nbsp;&lt;/EM&gt;saying that the file is not found which is a bit excessive...&lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2023 06:45:23 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/GDL-User-Input-quot-Can-t-Find-Macro-quot-Return/m-p/377972#M181</guid>
      <dc:creator>Lingwisyer</dc:creator>
      <dc:date>2023-04-27T06:45:23Z</dc:date>
    </item>
  </channel>
</rss>

