<?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: [Edit]Multiple GLOB_INTGUID's? in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/Edit-Multiple-GLOB-INTGUID-s/m-p/252475#M4644</link>
    <description>Thanks for looking into that Daniel, and for proposing a solution.&lt;BR /&gt;
&lt;BR /&gt;
I think that might be an acceptable solution, however I might go one step further and just make the bSync a variable in all the objects that can be controlled by some MVO trickery (maybe having an 'Update' MVO that could enable this write out).  The reason for this would be people 'Alt Clicking' placed objects that have already had their sync enabled, and then placing new ones, essentially bypassing your workaround.  In any case it's probably a little heavy handed for the less advanced users in the office, but I'll give it a go.&lt;BR /&gt;
&lt;BR /&gt;
In an unrelated note, it seems the automatic notification of replies seems to have stopped with the site revamp, only just found your response to this now.&lt;BR /&gt;
&lt;BR /&gt;
Thanks again Daniel.&lt;BR /&gt;
Jase.</description>
    <pubDate>Thu, 22 Feb 2018 05:09:31 GMT</pubDate>
    <dc:creator>JaseBee</dc:creator>
    <dc:date>2018-02-22T05:09:31Z</dc:date>
    <item>
      <title>[Edit]Multiple GLOB_INTGUID's?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Edit-Multiple-GLOB-INTGUID-s/m-p/252468#M4637</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;So I'm getting this strange problem.&lt;BR /&gt;
&lt;BR /&gt;
Im slowly piecing together a web of input/output commands to make my library smarter. To do this I often have to use the GLOB_INTGUID as a database key.&lt;BR /&gt;
&lt;BR /&gt;
I have the code&lt;BR /&gt;
&lt;BR /&gt;
&lt;PRE&gt; CkPlan		= REQUEST("NAME_OF_PLAN", "", sRqFileName)&lt;BR /&gt;
ch1 			= OPEN("Data", "ALTO_Database-File Names.txt", &lt;BR /&gt;
			"SEPARATOR = '\t', MODE=WA, DIALOG")&lt;BR /&gt;
OUTPUT 		ch1, GLOB_INTGUID, 1, sRqFileName&lt;BR /&gt;
CLOSE ch1 &lt;/PRE&gt;&lt;BR /&gt;
&lt;BR /&gt;
So when it runs it outputs to the text file. Labels work fine, but objects, on their first place instance they output twice, one of the outputs just seems to pluck a GUID from thin air, but if I go and delete all the entries from the text file and force a rebuild, then it only outputs once...&lt;BR /&gt;
&lt;BR /&gt;
Thought it might be a 2d/3d script thing where the output command is running twice, but that shouldn't change the GUID which is used as the key.&lt;BR /&gt;
&lt;BR /&gt;
I've no idea.&lt;/T&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 12 Dec 2017 00:12:59 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Edit-Multiple-GLOB-INTGUID-s/m-p/252468#M4637</guid>
      <dc:creator>JaseBee</dc:creator>
      <dc:date>2017-12-12T00:12:59Z</dc:date>
    </item>
    <item>
      <title>Re: [Edit]Multiple GLOB_INTGUID's?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Edit-Multiple-GLOB-INTGUID-s/m-p/252469#M4638</link>
      <description>OK, Further to this, it's definitely nothing else I have going on in the code.&lt;BR /&gt;
&lt;BR /&gt;
If someone would like to run a test...?&lt;BR /&gt;
&lt;BR /&gt;
New library part with this code in the master script&lt;BR /&gt;
&lt;BR /&gt;
&lt;PRE&gt;&lt;BR /&gt;
ch1 = OPEN("DATA", "DataFile.txt", "SEPARATOR='\t', MODE=WA, DIALOG")&lt;BR /&gt;
&lt;BR /&gt;
OUTPUT ch1, GLOB_INTGUID, 1, A&lt;BR /&gt;
&lt;BR /&gt;
CLOSE ch1&lt;BR /&gt;
&lt;/PRE&gt;&lt;BR /&gt;
&lt;BR /&gt;
And even with only that when you place the object it generates 2 entries in the text file...?&lt;BR /&gt;
&lt;BR /&gt;
Is it something external to archicad? OS perhaps? Im on El capitan, which I have previously had issues with...&lt;BR /&gt;
&lt;BR /&gt;
[EDIT]&lt;BR /&gt;
Nope, same thing happens on my windows machine... &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;</description>
      <pubDate>Tue, 12 Dec 2017 05:23:17 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Edit-Multiple-GLOB-INTGUID-s/m-p/252469#M4638</guid>
      <dc:creator>JaseBee</dc:creator>
      <dc:date>2017-12-12T05:23:17Z</dc:date>
    </item>
    <item>
      <title>Re: [Edit]Multiple GLOB_INTGUID's?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Edit-Multiple-GLOB-INTGUID-s/m-p/252470#M4639</link>
      <description>Ok so I've tried the Application query for parameter scripts first run, that doesn't isolate it, Glob feedback mode doesn't isolate it, Glob Preview Mode doesn't help. Writing to a parameter and then using that doesn't help. HOME DB doesn't help...&lt;BR /&gt;
&lt;BR /&gt;
I'm so stumped.&lt;BR /&gt;
&lt;BR /&gt;
But while I was testing all these i noticed that deleting an object causes it to run through and output it's data... is there any way for it to know that this run-through of a script it prior to being deleted and able to remove itself from the data files?</description>
      <pubDate>Tue, 12 Dec 2017 07:15:50 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Edit-Multiple-GLOB-INTGUID-s/m-p/252470#M4639</guid>
      <dc:creator>JaseBee</dc:creator>
      <dc:date>2017-12-12T07:15:50Z</dc:date>
    </item>
    <item>
      <title>Re: [Edit]Multiple GLOB_INTGUID's?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Edit-Multiple-GLOB-INTGUID-s/m-p/252471#M4640</link>
      <description>Ok, I think I solved it, and in the process discovered a handy way to manage the data outputs and prevent redundant entries.&lt;BR /&gt;
&lt;BR /&gt;
Turns out the answer does lie in the HOMEDB, sorta...&lt;BR /&gt;
&lt;BR /&gt;
Consider the following code in the master script&lt;BR /&gt;
&lt;BR /&gt;
iRqDBID			= 0&lt;BR /&gt;
sRqDBNumber		= ""&lt;BR /&gt;
sRqDBName		= ""&lt;BR /&gt;
iRqDBContext		= 0&lt;BR /&gt;
sGUID=GLOB_INTGUID&lt;BR /&gt;
!IF GLOB_SCRIPT_TYPE &amp;lt;&amp;gt; 5 THEN&lt;BR /&gt;
	CkHomeDB	= REQUEST("HOMEDB_INFO", "", iRqDBID, sRqDBNumber, sRqDBName, iRqDBContext)&lt;BR /&gt;
!ENDIF&lt;BR /&gt;
!IF GLOB_SCRIPT_TYPE &amp;lt;&amp;gt; 5 THEN&lt;BR /&gt;
	IF iRqDBContext &amp;gt; 0 THEN&lt;BR /&gt;
		ch1 = OPEN("DATA", "Data2File.txt", "SEPARATOR='\t', MODE=WA, DIALOG") &lt;BR /&gt;
		OUTPUT ch1, sGUID, 1, iRqDBID, sRqDBNumber, sRqDBName, iRqDBContext&lt;BR /&gt;
		CLOSE ch1 &lt;BR /&gt;
	ELSE&lt;BR /&gt;
		ch1 = OPEN("DATA", "Data2File.txt", "SEPARATOR='\t', MODE=WA, DIALOG") &lt;BR /&gt;
		OUTPUT ch1, sGUID, -1, 0&lt;BR /&gt;
		CLOSE ch1 &lt;BR /&gt;
	ENDIF&lt;BR /&gt;
!ENDIF&lt;BR /&gt;
PARAMETERS sGUID=sGUID&lt;BR /&gt;
&lt;BR /&gt;
I've commented out the parameter script exclusion because that makes it not work for some reason. Even though the HOMEDB should not be used there.&lt;BR /&gt;
&lt;BR /&gt;
But, it kinda works, only one instance gets written out, and then it deletes itself when the object is deleted.&lt;BR /&gt;
&lt;BR /&gt;
However, when you add multiple objects it seems to get squiffy. Sometimes the duplicate entries show up as deleted records, sometimes the still just show up and the real records are deleted. Similarly if you delete multiple objects then only the first objects record will get expunged from the text file.&lt;BR /&gt;
&lt;BR /&gt;
This is all really strange.</description>
      <pubDate>Wed, 13 Dec 2017 01:14:57 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Edit-Multiple-GLOB-INTGUID-s/m-p/252471#M4640</guid>
      <dc:creator>JaseBee</dc:creator>
      <dc:date>2017-12-13T01:14:57Z</dc:date>
    </item>
    <item>
      <title>Re: [Edit]Multiple GLOB_INTGUID's?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Edit-Multiple-GLOB-INTGUID-s/m-p/252472#M4641</link>
      <description>Well I can't solve it, nor can I leave it alone.&lt;BR /&gt;
&lt;BR /&gt;
For anybody interested I've forwarded this onto Graphisoft for them to take a look as it seems to be something a bit deeper than the GDL coding level.&lt;BR /&gt;
&lt;BR /&gt;
I'll post back here if/when they respond.</description>
      <pubDate>Tue, 19 Dec 2017 22:39:32 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Edit-Multiple-GLOB-INTGUID-s/m-p/252472#M4641</guid>
      <dc:creator>JaseBee</dc:creator>
      <dc:date>2017-12-19T22:39:32Z</dc:date>
    </item>
    <item>
      <title>Re: [Edit]Multiple GLOB_INTGUID's?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Edit-Multiple-GLOB-INTGUID-s/m-p/252473#M4642</link>
      <description>Well, the response I got was post your problem on the GDL centre website, the login pages aren't working for me there, and I've asked them to please have another go because I have no other ideas.&lt;BR /&gt;
&lt;BR /&gt;
It would be nice to have confirmation that this issue is not just isolated to me, would someone be so kind to see if they can replicate it?&lt;BR /&gt;
&lt;BR /&gt;
As it's been the holidays I've not pursued anything to do with this issue or archicad in general, so i might end up looking at it again in a week or two...</description>
      <pubDate>Tue, 09 Jan 2018 23:33:50 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Edit-Multiple-GLOB-INTGUID-s/m-p/252473#M4642</guid>
      <dc:creator>JaseBee</dc:creator>
      <dc:date>2018-01-09T23:33:50Z</dc:date>
    </item>
    <item>
      <title>Re: [Edit]Multiple GLOB_INTGUID's?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Edit-Multiple-GLOB-INTGUID-s/m-p/252474#M4643</link>
      <description>Hello everyone,&lt;BR /&gt;
&lt;BR /&gt;
We took a look into this, and found out what is happening exactly. Apparently at placement the object gets a GUID temporarily (to identify it, while it is not placed yet, but it is being placed), and then when it is placed, it gets another final GUID. We are looking into whether we can change this behaviour.&lt;BR /&gt;
&lt;BR /&gt;
As a result, when this object is placed the script runs twice, and both GUIDs are written into the file. As a workaround for this, the best I could think of for now is to simply manually turn the writing of the txt on for the object after it was placed. Somehow like this:&lt;BR /&gt;

&lt;PRE&gt;if bSync then !bSync is a boolean parameter, that is off by default
	ch1 = OPEN("DATA", "RecordsFile.txt", "SEPARATOR='\t', MODE=WA, DIALOG") 
	OUTPUT ch1, GLOB_INTGUID, 1, A 
	CLOSE ch1 
endif&lt;/PRE&gt;

With this, you can place all the objects you want, and then select them all at once, and turn the switch on to write the TXT file (I tried, works perfectly like this). If you happen to find a better/automatic solution for only running this part of the script once the object is already placed, please share with us.&lt;BR /&gt;
&lt;BR /&gt;
Also, the first empty line in the txt file is actually written by the default settings of the object. The script runs in that dialog as well, but since it doesn't have a GUID yet, it writes an empty line. The above solution solves this as well.&lt;BR /&gt;
&lt;BR /&gt;
I hope you can go on with your projects with this. Good Luck!&lt;BR /&gt;
&lt;BR /&gt;
Regards,</description>
      <pubDate>Thu, 08 Feb 2018 09:11:53 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Edit-Multiple-GLOB-INTGUID-s/m-p/252474#M4643</guid>
      <dc:creator>Daniel Kovacs</dc:creator>
      <dc:date>2018-02-08T09:11:53Z</dc:date>
    </item>
    <item>
      <title>Re: [Edit]Multiple GLOB_INTGUID's?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Edit-Multiple-GLOB-INTGUID-s/m-p/252475#M4644</link>
      <description>Thanks for looking into that Daniel, and for proposing a solution.&lt;BR /&gt;
&lt;BR /&gt;
I think that might be an acceptable solution, however I might go one step further and just make the bSync a variable in all the objects that can be controlled by some MVO trickery (maybe having an 'Update' MVO that could enable this write out).  The reason for this would be people 'Alt Clicking' placed objects that have already had their sync enabled, and then placing new ones, essentially bypassing your workaround.  In any case it's probably a little heavy handed for the less advanced users in the office, but I'll give it a go.&lt;BR /&gt;
&lt;BR /&gt;
In an unrelated note, it seems the automatic notification of replies seems to have stopped with the site revamp, only just found your response to this now.&lt;BR /&gt;
&lt;BR /&gt;
Thanks again Daniel.&lt;BR /&gt;
Jase.</description>
      <pubDate>Thu, 22 Feb 2018 05:09:31 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Edit-Multiple-GLOB-INTGUID-s/m-p/252475#M4644</guid>
      <dc:creator>JaseBee</dc:creator>
      <dc:date>2018-02-22T05:09:31Z</dc:date>
    </item>
  </channel>
</rss>

