<?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: Newbie &amp;gt; Picture in Interface &amp;gt; how to use png fil in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/Newbie-gt-Picture-in-Interface-gt-how-to-use-png-file/m-p/213115#M13471</link>
    <description>I got it to work, but still doubt how I succeeded.&lt;BR /&gt;
&lt;BR /&gt;
I placed the images in a Project Library that I'm working on. Reloaded a few times. When developing the script, nothing was visible in the GDL editor.&lt;BR /&gt;
&lt;BR /&gt;
Is the GDL editor accessing the currently loaded Libraries from the open ArchiCAD session?&lt;BR /&gt;
&lt;BR /&gt;
I noticed that it worked without file extension.&lt;BR /&gt;

&lt;PRE&gt;! UI_PICT picture_reference, x, y [, width, height, alpha (0/1)+ratio(0,2,4)
sX = 396
sY = 462
s = 0.5

if (SB_style = "Romaans") THEN pict = "arches-roman"
if (SB_style = "Gotisch") THEN pict = "arches-gothic"
if (SB_style = "Lancet")  THEN pict = "arches-lancet"
UI_PICT pict, 10, 10, sX*s,sY*s, 1
&lt;/PRE&gt;</description>
    <pubDate>Thu, 14 Nov 2013 20:17:16 GMT</pubDate>
    <dc:creator>stefan</dc:creator>
    <dc:date>2013-11-14T20:17:16Z</dc:date>
    <item>
      <title>Newbie &gt; Picture in Interface &gt; how to use png file?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Newbie-gt-Picture-in-Interface-gt-how-to-use-png-file/m-p/213113#M13469</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;R&gt;I try to decipher how to use a basic PNG image in my user Interface, but can't seem to get it working.&lt;BR /&gt;
&lt;BR /&gt;
I read about saving a picture inside ArchiCAD as a GSM object, to embed it into the library object.&lt;BR /&gt;
I also read about using an index to refer to the picture that is embedded.&lt;BR /&gt;
&lt;BR /&gt;
But I want to use an external image (if possible). It is stored inside the library folder for this project.&lt;BR /&gt;

&lt;PRE&gt;&lt;I&gt;
&lt;/I&gt;! interface script
UI_PICT "arch.png", 0, 0, 320, 240, 1
&lt;/PRE&gt;

Nothing is seen in the preview, nor in the saved Library object. Any hints?&lt;BR /&gt;
&lt;BR /&gt;
This works using the preview image&lt;BR /&gt;

&lt;PRE&gt;&lt;I&gt;
&lt;/I&gt;! interface script
UI_PICT 0, 0, 0, 320, 240, 1
&lt;/PRE&gt;&lt;/R&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 14 Nov 2013 16:06:56 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Newbie-gt-Picture-in-Interface-gt-how-to-use-png-file/m-p/213113#M13469</guid>
      <dc:creator>stefan</dc:creator>
      <dc:date>2013-11-14T16:06:56Z</dc:date>
    </item>
    <item>
      <title>Re: Newbie &gt; Picture in Interface &gt; how to use png fil</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Newbie-gt-Picture-in-Interface-gt-how-to-use-png-file/m-p/213114#M13470</link>
      <description>Load "arch.png" into the Embedded Library and it will be visible in Object Interface Dialog.</description>
      <pubDate>Thu, 14 Nov 2013 16:46:54 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Newbie-gt-Picture-in-Interface-gt-how-to-use-png-file/m-p/213114#M13470</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-11-14T16:46:54Z</dc:date>
    </item>
    <item>
      <title>Re: Newbie &gt; Picture in Interface &gt; how to use png fil</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Newbie-gt-Picture-in-Interface-gt-how-to-use-png-file/m-p/213115#M13471</link>
      <description>I got it to work, but still doubt how I succeeded.&lt;BR /&gt;
&lt;BR /&gt;
I placed the images in a Project Library that I'm working on. Reloaded a few times. When developing the script, nothing was visible in the GDL editor.&lt;BR /&gt;
&lt;BR /&gt;
Is the GDL editor accessing the currently loaded Libraries from the open ArchiCAD session?&lt;BR /&gt;
&lt;BR /&gt;
I noticed that it worked without file extension.&lt;BR /&gt;

&lt;PRE&gt;! UI_PICT picture_reference, x, y [, width, height, alpha (0/1)+ratio(0,2,4)
sX = 396
sY = 462
s = 0.5

if (SB_style = "Romaans") THEN pict = "arches-roman"
if (SB_style = "Gotisch") THEN pict = "arches-gothic"
if (SB_style = "Lancet")  THEN pict = "arches-lancet"
UI_PICT pict, 10, 10, sX*s,sY*s, 1
&lt;/PRE&gt;</description>
      <pubDate>Thu, 14 Nov 2013 20:17:16 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Newbie-gt-Picture-in-Interface-gt-how-to-use-png-file/m-p/213115#M13471</guid>
      <dc:creator>stefan</dc:creator>
      <dc:date>2013-11-14T20:17:16Z</dc:date>
    </item>
    <item>
      <title>Re: Newbie &gt; Picture in Interface &gt; how to use png fil</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Newbie-gt-Picture-in-Interface-gt-how-to-use-png-file/m-p/213116#M13472</link>
      <description>Hello Stefan,&lt;BR /&gt;
&lt;BR /&gt;
Strange...should work fine with the file extension and with an external library.&lt;BR /&gt;

&lt;PRE&gt;&lt;I&gt;
&lt;/I&gt;ui_pict "Great.png", 10, 10, 252, 171, 1
&lt;/PRE&gt;</description>
      <pubDate>Thu, 14 Nov 2013 20:25:47 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Newbie-gt-Picture-in-Interface-gt-how-to-use-png-file/m-p/213116#M13472</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-11-14T20:25:47Z</dc:date>
    </item>
    <item>
      <title>Re: Newbie &gt; Picture in Interface &gt; how to use png fil</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Newbie-gt-Picture-in-Interface-gt-how-to-use-png-file/m-p/213117#M13473</link>
      <description>Actually, the script is running and without. But I had a bug when the picture was gone when I added the expansion picture restored. Since then, I always write an extension. It is possible that in the loaded libraries already have the elements with this name - a duplicate, but different extensions.</description>
      <pubDate>Fri, 15 Nov 2013 04:22:29 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Newbie-gt-Picture-in-Interface-gt-how-to-use-png-file/m-p/213117#M13473</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-11-15T04:22:29Z</dc:date>
    </item>
  </channel>
</rss>

