<?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: Saved GDL object has script that differs from original in GDL</title>
    <link>https://community.graphisoft.com/t5/GDL/Saved-GDL-object-has-script-that-differs-from-original/m-p/341684#M1937</link>
    <description>&lt;P&gt;I found the solution to instead move the GSM object from the embedded library to a folder on the disk using the &lt;SPAN&gt;Libraries and Objects dialog under "File".&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 18 Jun 2022 23:53:07 GMT</pubDate>
    <dc:creator>BenjiDev</dc:creator>
    <dc:date>2022-06-18T23:53:07Z</dc:date>
    <item>
      <title>Saved GDL object has script that differs from original</title>
      <link>https://community.graphisoft.com/t5/GDL/Saved-GDL-object-has-script-that-differs-from-original/m-p/341637#M1936</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have created a very simple GDL object. It currently only contains a 2D script that allows the user to modify a couple of points using hotspots:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;FOR i=1 TO VARDIM1(points) STEP 1
	_id = i * 6

	HOTSPOT2  points[i][1],  0, 		  i+0, points[i][2], 1 + 128 	! BASE
	HOTSPOT2  points[i][1],  0, 		  i+1, points[i][2], 3	     	! REFERENCE
	HOTSPOT2  points[i][1], points[i][2], i+2, points[i][2], 2		 	! MOVING

	HOTSPOT2  0,  			points[i][2], i+3, points[i][1], 1 + 128 	! BASE
	HOTSPOT2  0,  			points[i][2], i+4, points[i][1], 3	     	! REFERENCE
	HOTSPOT2  points[i][1], points[i][2], i+5, points[i][1], 2		 	! MOVING
	
	IF i &amp;lt; VARDIM1(points) THEN
		LINE2 points[i][1], points[i][2], points[i+1][1], points[i+1][2]
	ENDIF
NEXT i&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In Action:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BenjiDev_0-1655506185874.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/22627i223FCCFA2ABD2093/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BenjiDev_0-1655506185874.png" alt="BenjiDev_0-1655506185874.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Then i save the object to disk File -&amp;gt; Libraries and Objects -&amp;gt; Save Selection as... -&amp;gt; Object&lt;/P&gt;&lt;P&gt;(Selecting browse instead of embedded library)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When opening the saved .gsm file again the 2D script has changed (compared to the code that I posted above):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;!
!   Name     : test.gsm
!   Date     : Saturday, June 18, 2022
!   Version  : 25.00
!   Written by Archicad 
!

mul2     A/13.599278, B/5.216145
add2     29.01578502415, -36.78886568381
drawindex      10
pen     penAttribute_1
set line_type lineTypeAttribute_1
add2     -30.01578502415, 35.78886568381
DIM	tmp_points[3][2]
        tmp_points[1][1] =            1
        tmp_points[1][2] =            1
        tmp_points[2][1] = 4.205397216681
        tmp_points[2][2] = 6.216144840519
        tmp_points[3][1] = 14.59927750822
        tmp_points[3][2] = 1.3551285825
call    "road",
    PARAMETERS A =            1, B =            1, ZZYZX =            1,
        AC_show2DHotspotsIn3D =      1, ac_bottomlevel =            1,
        ac_toplevel =            0, points = tmp_points
del          1&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can i tell Archicad not to mess with the scripts (2D in this case) when the object is saved to disk?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jun 2022 23:10:19 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Saved-GDL-object-has-script-that-differs-from-original/m-p/341637#M1936</guid>
      <dc:creator>BenjiDev</dc:creator>
      <dc:date>2022-06-17T23:10:19Z</dc:date>
    </item>
    <item>
      <title>Re: Saved GDL object has script that differs from original</title>
      <link>https://community.graphisoft.com/t5/GDL/Saved-GDL-object-has-script-that-differs-from-original/m-p/341684#M1937</link>
      <description>&lt;P&gt;I found the solution to instead move the GSM object from the embedded library to a folder on the disk using the &lt;SPAN&gt;Libraries and Objects dialog under "File".&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 18 Jun 2022 23:53:07 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Saved-GDL-object-has-script-that-differs-from-original/m-p/341684#M1937</guid>
      <dc:creator>BenjiDev</dc:creator>
      <dc:date>2022-06-18T23:53:07Z</dc:date>
    </item>
    <item>
      <title>Re: Saved GDL object has script that differs from original</title>
      <link>https://community.graphisoft.com/t5/GDL/Saved-GDL-object-has-script-that-differs-from-original/m-p/341686#M1938</link>
      <description>&lt;P&gt;Is this 2D script replacement when saving to the embedded library reproducible? &amp;nbsp;The script you show is an auto-script typically generated by dragging 2D content into the 2D script window of the object... but definitely a bug if anything causes your own scripts to be replaced.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 18 Jun 2022 21:56:51 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Saved-GDL-object-has-script-that-differs-from-original/m-p/341686#M1938</guid>
      <dc:creator>Karl Ottenstein</dc:creator>
      <dc:date>2022-06-18T21:56:51Z</dc:date>
    </item>
    <item>
      <title>Re: Saved GDL object has script that differs from original</title>
      <link>https://community.graphisoft.com/t5/GDL/Saved-GDL-object-has-script-that-differs-from-original/m-p/341688#M1939</link>
      <description>&lt;P&gt;I think with my first approach the object was just saved "stupidly", almost like a picture of it was taken and serialized without saving any "logic". I guess you maybe want this in some cases? But i managed to solve it with in my other reply&lt;/P&gt;</description>
      <pubDate>Sat, 18 Jun 2022 23:51:43 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Saved-GDL-object-has-script-that-differs-from-original/m-p/341688#M1939</guid>
      <dc:creator>BenjiDev</dc:creator>
      <dc:date>2022-06-18T23:51:43Z</dc:date>
    </item>
    <item>
      <title>Re: Saved GDL object has script that differs from original</title>
      <link>https://community.graphisoft.com/t5/GDL/Saved-GDL-object-has-script-that-differs-from-original/m-p/341748#M1940</link>
      <description>&lt;P&gt;Yes, you have saved an already existing object as an object, so what you will find in that 'saved' object, it will be 'CALL'ing your original object.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes, you just need to go to the Library Manager and save a copy of you object from the embedded library to an external folder.&lt;/P&gt;
&lt;P&gt;Or when you initially create the GDL and 'save' for the first time, you can choose to brows for a folder to save it in rather than the embedded library.&lt;/P&gt;
&lt;P&gt;That folder will need to be a loaded library folder for you to be able to use the object.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Barry.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jun 2022 01:37:43 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Saved-GDL-object-has-script-that-differs-from-original/m-p/341748#M1940</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2022-06-20T01:37:43Z</dc:date>
    </item>
  </channel>
</rss>

