<?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: AC20 finally broke an object in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/AC20-finally-broke-an-object/m-p/223624#M7278</link>
    <description>Thanks Barry, but I don't think there is really anything in the master and parameter scripts that would cause a display problem in 2D. Mostly those are just text strings and size parameters that haven't been affected by any version change. I could be wrong, of course.</description>
    <pubDate>Thu, 25 Aug 2016 03:09:48 GMT</pubDate>
    <dc:creator>Richard Morrison</dc:creator>
    <dc:date>2016-08-25T03:09:48Z</dc:date>
    <item>
      <title>AC20 finally broke an object</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/AC20-finally-broke-an-object/m-p/223618#M7272</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;I just discovered that my "Masterpost" object, which I've been using for at least a decade, is not displaying correctly anymore in AC20. (The 2D box for the post is not appearing, anymore.) I suspect that it is due some Global Variables being deprecated. The object was created in 2002 by Summit Studio, P.C. I have no idea how to change the code to make it work again, or how to get in touch with the original developer. It is unprotected and is a very simple object. For someone who knew what they were doing, I suspect that it's about a 15 min. task, but it is currently beyond me.&lt;BR /&gt;
&lt;BR /&gt;
Suggestions for getting this fixed?&lt;/T&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 23 Aug 2016 15:27:09 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/AC20-finally-broke-an-object/m-p/223618#M7272</guid>
      <dc:creator>Richard Morrison</dc:creator>
      <dc:date>2016-08-23T15:27:09Z</dc:date>
    </item>
    <item>
      <title>Re: AC20 finally broke an object</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/AC20-finally-broke-an-object/m-p/223619#M7273</link>
      <description>Hi.&lt;BR /&gt;
&lt;BR /&gt;
You either need to post the object or the code to look at it and be able to help you.&lt;BR /&gt;
&lt;BR /&gt;
Best regards.</description>
      <pubDate>Wed, 24 Aug 2016 14:44:50 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/AC20-finally-broke-an-object/m-p/223619#M7273</guid>
      <dc:creator>sinceV6</dc:creator>
      <dc:date>2016-08-24T14:44:50Z</dc:date>
    </item>
    <item>
      <title>Re: AC20 finally broke an object</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/AC20-finally-broke-an-object/m-p/223620#M7274</link>
      <description>I was reluctant to post this out of concern for violating intellectual property rights. But here's a snippet of the code with the deprecated GLOB_CH_STORY_DIST. What should I change or add to get this to work with AC20? Please keep in mind that you're dealing with someone who doesn't work with GDL on a regular basis.&lt;BR /&gt;
&lt;BR /&gt;
if GLOB_CH_STORY_DIST=0 THEN  &lt;BR /&gt;
    Line2 0,0,a,b&lt;BR /&gt;
    hotspot2 a,b&lt;BR /&gt;
endif&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
!!!Point load text for floor below&lt;BR /&gt;
&lt;BR /&gt;
PEN TPEN&lt;BR /&gt;
if GLOB_CH_STORY_DIST&amp;lt;0 THEN &lt;BR /&gt;
    TEXTSTRING = PLTXT&lt;BR /&gt;
    IF PLTXT ="" THEN END&lt;BR /&gt;
    Line2 0,0,a,b&lt;BR /&gt;
    hotspot2 a,b&lt;BR /&gt;
&lt;BR /&gt;
ENDIF&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
!!! calculate real text position and angles&lt;BR /&gt;
&lt;BR /&gt;
    alpha = atn(b/a) &lt;BR /&gt;
    if symb_mirrored = 1 then txtangle = symb_rotangle+180-alpha else txtangle = symb_rotangle+alpha&lt;BR /&gt;
&lt;BR /&gt;
!!!Rotate and change handles for proper orientation on screen&lt;BR /&gt;
&lt;BR /&gt;
    IF    0 &amp;lt;=  txtangle and txtangle &amp;lt;= 90  THEN GOSUB 10:&lt;BR /&gt;
    IF  270 &amp;lt;  txtangle and txtangle &amp;lt;= 450 THEN GOSUB 10:&lt;BR /&gt;
    IF   90 &amp;lt;  txtangle and txtangle &amp;lt;= 270 then gosub 20:&lt;BR /&gt;
    IF  450 &amp;lt;  txtangle and txtangle &amp;lt;= 630 then gosub 20:&lt;BR /&gt;
    IF  630 &amp;lt;  txtangle and txtangle &amp;lt;= 450 THEN GOSUB 10:&lt;BR /&gt;
&lt;BR /&gt;
    TEXT2 0,0,TEXTSTRING&lt;BR /&gt;
    add2 0,-hit&lt;BR /&gt;
    if GLOB_CH_STORY_DIST=0 then text2 0,0,Add_2txt&lt;BR /&gt;
    &lt;BR /&gt;
END</description>
      <pubDate>Wed, 24 Aug 2016 21:17:44 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/AC20-finally-broke-an-object/m-p/223620#M7274</guid>
      <dc:creator>Richard Morrison</dc:creator>
      <dc:date>2016-08-24T21:17:44Z</dc:date>
    </item>
    <item>
      <title>Re: AC20 finally broke an object</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/AC20-finally-broke-an-object/m-p/223621#M7275</link>
      <description>This looks like the 2D script so the problem shouldn't be there.&lt;BR /&gt;
My understanding these GLOB variables are only deprecated in the parameter script or the master script when run as part of the parameter script.&lt;BR /&gt;
&lt;BR /&gt;
If you go to the parameter and master scripts and press the 'Check script' button you should get an error message giving some clue as to where the problem is.&lt;BR /&gt;
&lt;BR /&gt;
You may also want to try posting in the GDL Central forum as Graphisoft seem to monitor this more and seem willing to help out with problems like this.&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://gdl.graphisoft.com/forums/" target="_blank"&gt;http://gdl.graphisoft.com/forums/&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
      <pubDate>Thu, 25 Aug 2016 01:34:31 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/AC20-finally-broke-an-object/m-p/223621#M7275</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2016-08-25T01:34:31Z</dc:date>
    </item>
    <item>
      <title>Re: AC20 finally broke an object</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/AC20-finally-broke-an-object/m-p/223622#M7276</link>
      <description>Well, the 2D display is what I'm having a problem with. There should be a simple "box" where the post is, but right now there is no 2D display other than text and hotspots at the corners of the post.</description>
      <pubDate>Thu, 25 Aug 2016 01:39:47 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/AC20-finally-broke-an-object/m-p/223622#M7276</guid>
      <dc:creator>Richard Morrison</dc:creator>
      <dc:date>2016-08-25T01:39:47Z</dc:date>
    </item>
    <item>
      <title>Re: AC20 finally broke an object</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/AC20-finally-broke-an-object/m-p/223623#M7277</link>
      <description>The problem may appear in 2D because that is what you see but it has to run the master and parameter scripts first before the 2D and 3D scripts.&lt;BR /&gt;
So the problem may still be in the parameter or master script.&lt;BR /&gt;
&lt;BR /&gt;
Barry.</description>
      <pubDate>Thu, 25 Aug 2016 01:44:35 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/AC20-finally-broke-an-object/m-p/223623#M7277</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2016-08-25T01:44:35Z</dc:date>
    </item>
    <item>
      <title>Re: AC20 finally broke an object</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/AC20-finally-broke-an-object/m-p/223624#M7278</link>
      <description>Thanks Barry, but I don't think there is really anything in the master and parameter scripts that would cause a display problem in 2D. Mostly those are just text strings and size parameters that haven't been affected by any version change. I could be wrong, of course.</description>
      <pubDate>Thu, 25 Aug 2016 03:09:48 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/AC20-finally-broke-an-object/m-p/223624#M7278</guid>
      <dc:creator>Richard Morrison</dc:creator>
      <dc:date>2016-08-25T03:09:48Z</dc:date>
    </item>
    <item>
      <title>Re: AC20 finally broke an object</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/AC20-finally-broke-an-object/m-p/223625#M7279</link>
      <description>I found the problem (I had Richard send me the object).&lt;BR /&gt;
&lt;BR /&gt;
In the 2D script is a PROJECT2, 3, 270, 0 command to show the post.&lt;BR /&gt;
&lt;BR /&gt;
Works fine in all older Archicad versions but not in 20.&lt;BR /&gt;
Needs to be ...  PROJECT2, 3, 270, &lt;FONT color="#ff0000"&gt;2&lt;/FONT&gt;&lt;BR /&gt;
&lt;BR /&gt;
Even though the GDL manual says if there is an invalid code then "2" will be used (see attached image).&lt;BR /&gt;
I checked and it doesn't work with PROJECT2{2} either.&lt;BR /&gt;
&lt;BR /&gt;
Barry.&lt;BR /&gt;&lt;IMG src="https://community.graphisoft.com/t5/image/serverpage/image-id/11082iDD156650D491E67C/image-size/large?v=v2&amp;amp;px=999" border="0" alt="PROJECT2.jpg" title="PROJECT2.jpg" /&gt;</description>
      <pubDate>Thu, 25 Aug 2016 04:34:35 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/AC20-finally-broke-an-object/m-p/223625#M7279</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2016-08-25T04:34:35Z</dc:date>
    </item>
    <item>
      <title>Re: AC20 finally broke an object</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/AC20-finally-broke-an-object/m-p/223626#M7280</link>
      <description>Sorry I didn't reply sooner... got really busy and didn't check to be notified for replies.&lt;BR /&gt;

&lt;BLOCKQUOTE&gt;Richard wrote:&lt;BR /&gt;I was reluctant to post this out of concern for violating intellectual property rights. ....&lt;/BLOCKQUOTE&gt;
That was my assumption. It'll be a problem in the future if things keep evolving in the GDL side.&lt;BR /&gt;

&lt;BLOCKQUOTE&gt;Barry wrote:&lt;BR /&gt;Even though the GDL manual says if there is an invalid code then "2" will be used (see attached image). &lt;BR /&gt;
I checked and it doesn't work with PROJECT2{2} either. &lt;/BLOCKQUOTE&gt;

So I guess it is either a new bug there not using the default or AC20 requires a valid code and the reference is not updated.&lt;BR /&gt;
&lt;BR /&gt;
Glad you could make it work.&lt;BR /&gt;
&lt;BR /&gt;
Best regards.</description>
      <pubDate>Thu, 25 Aug 2016 15:38:55 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/AC20-finally-broke-an-object/m-p/223626#M7280</guid>
      <dc:creator>sinceV6</dc:creator>
      <dc:date>2016-08-25T15:38:55Z</dc:date>
    </item>
  </channel>
</rss>

