<?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{2} command. Is there a way to limit the libraries that the custom picture looks at? in GDL</title>
    <link>https://community.graphisoft.com/t5/GDL/picture2-2-command-Is-there-a-way-to-limit-the-libraries-that/m-p/580147#M6052</link>
    <description>&lt;P&gt;In this cases I am using a filter routine. I use image names with a special prefix, so I can filter the images which only contain the prefix in their names. Example Script:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;! ---------------------------------------------------------------------- !
! --------------- C u s t o m   p i c t u r e   f i l e   r e q u e s t
! ---------------------------------------------------------------------- !

	IF GLOB_FEEDBACK_MODE = 0 THEN

		dim	stCustomPicFiles[]
		bCustomPicFileExist	= APPLICATION_QUERY ("LIBRARY_MANAGER", "USER_IMAGE_FILES", stCustomPicFiles)
		
		p_num = VARDIM1(stCustomPicFiles)
		
		DIM stCustomPicFiles_with_prefix[]
		si = 1
		int_num_prefix = STRLEN(str_prefix) 
		
		IF (str_prefix # " " AND str_prefix # "") THEN
			FOR i = 1 TO p_num
				IF STRSUB(stCustomPicFiles[i], 1, int_num_prefix) = str_prefix THEN
					stCustomPicFiles_with_prefix[si] = stCustomPicFiles[i]
					si = si + 1
				ENDIF	
			NEXT i
		ELSE
			stCustomPicFiles_with_prefix = stCustomPicFiles
		ENDIF
		
		p_num = VARDIM1(stCustomPicFiles_with_prefix)

	ENDIF

IF p_num &amp;gt; 0 THEN VALUES "str_bildwahl" stCustomPicFiles_with_prefix&lt;/LI-CODE&gt;</description>
    <pubDate>Wed, 13 Dec 2023 11:35:10 GMT</pubDate>
    <dc:creator>Jochen Suehlo</dc:creator>
    <dc:date>2023-12-13T11:35:10Z</dc:date>
    <item>
      <title>picture2{2} command. Is there a way to limit the libraries that the custom picture looks at?</title>
      <link>https://community.graphisoft.com/t5/GDL/picture2-2-command-Is-there-a-way-to-limit-the-libraries-that/m-p/580037#M6047</link>
      <description>&lt;P&gt;I have created an object that calls an image to display in the 2D view. It works getting images into schedules.&lt;/P&gt;
&lt;P&gt;However when you go and choose your custom picture the menu that opens lists every image that is loaded in the libraries. See image attached&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there a way to limit the &lt;EM&gt;picture2{2}&lt;/EM&gt; command in the Parameter script?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The object was scripted in Archicad 25&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&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="Image - Limit Selection.png" style="width: 999px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/50654i6A39C886463EEA2C/image-size/large?v=v2&amp;amp;px=999" role="button" title="Image - Limit Selection.png" alt="Image - Limit Selection.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Thu, 26 Sep 2024 11:32:14 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/picture2-2-command-Is-there-a-way-to-limit-the-libraries-that/m-p/580037#M6047</guid>
      <dc:creator>KB-at-CWA</dc:creator>
      <dc:date>2024-09-26T11:32:14Z</dc:date>
    </item>
    <item>
      <title>Re: picture2{2} command. Is there a way to limit the libraries that the custom picture looks at?</title>
      <link>https://community.graphisoft.com/t5/GDL/picture2-2-command-Is-there-a-way-to-limit-the-libraries-that/m-p/580039#M6048</link>
      <description>&lt;P&gt;You could create a VALUES list for the parameter where you can set particular image names to choose from.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't think you can pick and choose which loaded library or part of the library to choose the files from.&lt;/P&gt;
&lt;P&gt;I could be wrong about that, I can't say I have tried to do it so have not gone looking for any command that can read the files in a particular folder.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Barry.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Dec 2023 01:43:19 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/picture2-2-command-Is-there-a-way-to-limit-the-libraries-that/m-p/580039#M6048</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2023-12-13T01:43:19Z</dc:date>
    </item>
    <item>
      <title>Re: picture2{2} command. Is there a way to limit the libraries that the custom picture looks at?</title>
      <link>https://community.graphisoft.com/t5/GDL/picture2-2-command-Is-there-a-way-to-limit-the-libraries-that/m-p/580147#M6052</link>
      <description>&lt;P&gt;In this cases I am using a filter routine. I use image names with a special prefix, so I can filter the images which only contain the prefix in their names. Example Script:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;! ---------------------------------------------------------------------- !
! --------------- C u s t o m   p i c t u r e   f i l e   r e q u e s t
! ---------------------------------------------------------------------- !

	IF GLOB_FEEDBACK_MODE = 0 THEN

		dim	stCustomPicFiles[]
		bCustomPicFileExist	= APPLICATION_QUERY ("LIBRARY_MANAGER", "USER_IMAGE_FILES", stCustomPicFiles)
		
		p_num = VARDIM1(stCustomPicFiles)
		
		DIM stCustomPicFiles_with_prefix[]
		si = 1
		int_num_prefix = STRLEN(str_prefix) 
		
		IF (str_prefix # " " AND str_prefix # "") THEN
			FOR i = 1 TO p_num
				IF STRSUB(stCustomPicFiles[i], 1, int_num_prefix) = str_prefix THEN
					stCustomPicFiles_with_prefix[si] = stCustomPicFiles[i]
					si = si + 1
				ENDIF	
			NEXT i
		ELSE
			stCustomPicFiles_with_prefix = stCustomPicFiles
		ENDIF
		
		p_num = VARDIM1(stCustomPicFiles_with_prefix)

	ENDIF

IF p_num &amp;gt; 0 THEN VALUES "str_bildwahl" stCustomPicFiles_with_prefix&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 13 Dec 2023 11:35:10 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/picture2-2-command-Is-there-a-way-to-limit-the-libraries-that/m-p/580147#M6052</guid>
      <dc:creator>Jochen Suehlo</dc:creator>
      <dc:date>2023-12-13T11:35:10Z</dc:date>
    </item>
  </channel>
</rss>

