<?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: Changes with Layer Combinations in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/Changes-with-Layer-Combinations/m-p/101206#M35408</link>
    <description>On a continuing thought here - --&lt;BR /&gt;
&lt;BR /&gt;
I have it pulling the information now, but my if statement is failing.  ie.&lt;BR /&gt;
&lt;BR /&gt;
zoneexists = REQUEST ("Zone_relations", "", category_name, code, name, number)&lt;BR /&gt;
&lt;BR /&gt;
TEXT2 3,1,name  ! this prints the 'name' of the zone it is in&lt;BR /&gt;
&lt;BR /&gt;
IF name="FOUNDATION" THEN ! this gives me an error (see below)&lt;BR /&gt;
  TEXT2 3,1,name&lt;BR /&gt;
ENDIF&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
The error I am getting on that if statement is this:&lt;BR /&gt;
&lt;BR /&gt;
"Incompatible types in expression at line xxx of the file xxx.gsm (System error -1)"&lt;BR /&gt;
&lt;BR /&gt;
Anyone care to venture a guess on this?  I have seen this near same code on these boards and everyone says it should work, but it is not.  Help.</description>
    <pubDate>Wed, 28 Dec 2005 16:47:01 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2005-12-28T16:47:01Z</dc:date>
    <item>
      <title>Changes with Layer Combinations</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Changes-with-Layer-Combinations/m-p/101200#M35402</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;I'm reading about the global variables and I'm wonderingif I can make an object perform differently dependant on which layer combination is currently in use?  I realize that layer combinations are different from company to company, but I only need it to work for our company.  Is there anyway to access this information - or make these changes?&lt;/T&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 22 Dec 2005 21:43:56 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Changes-with-Layer-Combinations/m-p/101200#M35402</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-12-22T21:43:56Z</dc:date>
    </item>
    <item>
      <title>Re: Changes with Layer Combinations</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Changes-with-Layer-Combinations/m-p/101201#M35403</link>
      <description>Hello &lt;BR /&gt;
 &lt;BR /&gt;
It is not possible to make an object sensitive to a layer combination and it is really a standing wish. &lt;BR /&gt;
 &lt;BR /&gt;
But a way to do what you want is zone. An object is sensitive to the zone.  &lt;BR /&gt;
Then you can have a zone on a particular layer.  &lt;BR /&gt;
This layer select to appear only on your particular layer combination. The presence —or not— of this zone may affect the appearance of your object. &lt;BR /&gt;
the code is the next  &lt;BR /&gt;
 &lt;BR /&gt;
request ("Zone_relations","",nom_zone,code_zone) &lt;BR /&gt;
 &lt;BR /&gt;
For scripting take a look to this topics in FC-Cadlink —sorry in french but really better than my english…— &lt;A href="http://www.fc-cadlink.com/is/forums/messages.php?idsalon=15370&amp;amp;idsujet=512343" target="_blank"&gt;Changement d'apparence suivant plans&lt;/A&gt; ; &lt;BR /&gt;
 &lt;BR /&gt;
HTH</description>
      <pubDate>Fri, 23 Dec 2005 08:01:10 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Changes-with-Layer-Combinations/m-p/101201#M35403</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-12-23T08:01:10Z</dc:date>
    </item>
    <item>
      <title>Re: Changes with Layer Combinations</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Changes-with-Layer-Combinations/m-p/101202#M35404</link>
      <description>While it would be nicer to have it interact with the layer combinations, your answer just might be what I can do to make it work for now.  Thanks.</description>
      <pubDate>Fri, 23 Dec 2005 15:48:04 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Changes-with-Layer-Combinations/m-p/101202#M35404</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-12-23T15:48:04Z</dc:date>
    </item>
    <item>
      <title>Re: Changes with Layer Combinations</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Changes-with-Layer-Combinations/m-p/101203#M35405</link>
      <description>This isn't working for me.  I get the following 'Warning!"&lt;BR /&gt;
&lt;BR /&gt;
Unused function return value at line 14 of file filename.gsm&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Any guesses at to why?</description>
      <pubDate>Mon, 26 Dec 2005 16:46:57 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Changes-with-Layer-Combinations/m-p/101203#M35405</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-12-26T16:46:57Z</dc:date>
    </item>
    <item>
      <title>Re: Changes with Layer Combinations</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Changes-with-Layer-Combinations/m-p/101204#M35406</link>
      <description>Hello Sirduncan&lt;BR /&gt;
&lt;BR /&gt;
I have try it and it works for me.&lt;BR /&gt;
Can you copy your code for helping me to guess why ?&lt;BR /&gt;
&lt;BR /&gt;
If you want I can send you the example that works, just PM me your email adress for.&lt;BR /&gt;
&lt;BR /&gt;
HTH</description>
      <pubDate>Mon, 26 Dec 2005 17:15:12 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Changes-with-Layer-Combinations/m-p/101204#M35406</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-12-26T17:15:12Z</dc:date>
    </item>
    <item>
      <title>Re: Changes with Layer Combinations</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Changes-with-Layer-Combinations/m-p/101205#M35407</link>
      <description>Thanks Fmr,&lt;BR /&gt;
&lt;BR /&gt;
I actually found another thread talking about this same error.  Apparently, it is requiring that I set the request to an actual variable:&lt;BR /&gt;
&lt;BR /&gt;
var = REQUEST ("Zone_relations", "", category_name, code, name, number)&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Which is actually better.  I don't need all the var names, I just need to know if a zone is present or not.  Thanks for your help.  It is working properly now.</description>
      <pubDate>Mon, 26 Dec 2005 17:29:57 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Changes-with-Layer-Combinations/m-p/101205#M35407</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-12-26T17:29:57Z</dc:date>
    </item>
    <item>
      <title>Re: Changes with Layer Combinations</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Changes-with-Layer-Combinations/m-p/101206#M35408</link>
      <description>On a continuing thought here - --&lt;BR /&gt;
&lt;BR /&gt;
I have it pulling the information now, but my if statement is failing.  ie.&lt;BR /&gt;
&lt;BR /&gt;
zoneexists = REQUEST ("Zone_relations", "", category_name, code, name, number)&lt;BR /&gt;
&lt;BR /&gt;
TEXT2 3,1,name  ! this prints the 'name' of the zone it is in&lt;BR /&gt;
&lt;BR /&gt;
IF name="FOUNDATION" THEN ! this gives me an error (see below)&lt;BR /&gt;
  TEXT2 3,1,name&lt;BR /&gt;
ENDIF&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
The error I am getting on that if statement is this:&lt;BR /&gt;
&lt;BR /&gt;
"Incompatible types in expression at line xxx of the file xxx.gsm (System error -1)"&lt;BR /&gt;
&lt;BR /&gt;
Anyone care to venture a guess on this?  I have seen this near same code on these boards and everyone says it should work, but it is not.  Help.</description>
      <pubDate>Wed, 28 Dec 2005 16:47:01 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Changes-with-Layer-Combinations/m-p/101206#M35408</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-12-28T16:47:01Z</dc:date>
    </item>
    <item>
      <title>Re: Changes with Layer Combinations</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Changes-with-Layer-Combinations/m-p/101207#M35409</link>
      <description>Good night&lt;BR /&gt;
&lt;BR /&gt;
I have the same error but it works properly.</description>
      <pubDate>Wed, 28 Dec 2005 18:15:25 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Changes-with-Layer-Combinations/m-p/101207#M35409</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-12-28T18:15:25Z</dc:date>
    </item>
    <item>
      <title>Re: Changes with Layer Combinations</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Changes-with-Layer-Combinations/m-p/101208#M35410</link>
      <description>You get the same error when you use the 'Check Script'?  When I try and save it it yells at me saying there is an error in the 2D script.&lt;BR /&gt;
&lt;BR /&gt;
When I open the object property box it gives me the same error and displays an error report in the 2D window screen of the properties box.  This doesn't make sense to me.</description>
      <pubDate>Wed, 28 Dec 2005 18:21:13 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Changes-with-Layer-Combinations/m-p/101208#M35410</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-12-28T18:21:13Z</dc:date>
    </item>
    <item>
      <title>Re: Changes with Layer Combinations</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Changes-with-Layer-Combinations/m-p/101209#M35411</link>
      <description>Yes &lt;BR /&gt;
&lt;BR /&gt;
I have the same error in the "check script". &lt;BR /&gt;
But the objects change in function of the zone were it is as I want.&lt;BR /&gt;
If you want my file I cant send you.</description>
      <pubDate>Wed, 28 Dec 2005 18:36:19 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Changes-with-Layer-Combinations/m-p/101209#M35411</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-12-28T18:36:19Z</dc:date>
    </item>
    <item>
      <title>Re: Changes with Layer Combinations</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Changes-with-Layer-Combinations/m-p/101210#M35412</link>
      <description>FMR if you could send me that file I would sure appreciate it.  I just can't get why its not working for me.  My logic seems very simple and right.  Please do send that if you could.  Thanks.</description>
      <pubDate>Wed, 28 Dec 2005 18:54:23 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Changes-with-Layer-Combinations/m-p/101210#M35412</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-12-28T18:54:23Z</dc:date>
    </item>
    <item>
      <title>Re: Changes with Layer Combinations</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Changes-with-Layer-Combinations/m-p/101211#M35413</link>
      <description>ok - I find that I can not do any IF comparisons on any of the values that come out of the request call.  I can get the number of characters using the STRLEN function, I can get the number of values returned in my temp var - I can output the values using TEXT2, but if I try to do an 'IF name="something" THEN or even an 'IF number = 101 THEN', it doesn't give me an error, but the 2D symbol is broke in floor plan.  Just a green, non-selectable dot.&lt;BR /&gt;
&lt;BR /&gt;
UGH.  I'm getting frustrated.  I have it all working properly except that I can't do that IF comparison.  Does ANYONE have any light and knowledge you could share with me on this one?  I just don't get it. &lt;BR /&gt;
&lt;BR /&gt;
As far as I can tell, the 'name' values that comes out is considered a string, but I can't compare it against a string.  The number value is an integer (the number of the zone), but I can't compare it against another integer or it crashes without error - just doesn't show.&lt;BR /&gt;
&lt;BR /&gt;
Please, please please - someone step up with a brilliant answer.  I'm getting desperate.  I need to get this object done and I am finding this is my only way of doing it - except that it isn't working.  ugh.</description>
      <pubDate>Wed, 28 Dec 2005 21:12:34 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Changes-with-Layer-Combinations/m-p/101211#M35413</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-12-28T21:12:34Z</dc:date>
    </item>
    <item>
      <title>Re: Changes with Layer Combinations</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Changes-with-Layer-Combinations/m-p/101212#M35414</link>
      <description>What line is the check scripts function identifying?&lt;BR /&gt;
&lt;BR /&gt;
If it is the line with the REQUEST function, then you probably need to initialize the variables first. Following is an example from a script I recently wrote for a client (so I know it works).&lt;BR /&gt;
&lt;BR /&gt;
room_name 		= "CLASSROOM"&lt;BR /&gt;
room_no 		       = "101"&lt;BR /&gt;
cat_name		= ""&lt;BR /&gt;
cat_code			= ""&lt;BR /&gt;
r = REQUEST("Zone_relations", "", cat_name, cat_code, room_name, room_no) &lt;BR /&gt;
&lt;BR /&gt;
Variables are numeric by default and it appears that the REQUEST function does not initialize them on its own. Note that the room number value is also a string.</description>
      <pubDate>Thu, 29 Dec 2005 05:15:05 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Changes-with-Layer-Combinations/m-p/101212#M35414</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-12-29T05:15:05Z</dc:date>
    </item>
    <item>
      <title>Re: Changes with Layer Combinations</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Changes-with-Layer-Combinations/m-p/101213#M35415</link>
      <description>&lt;BLOCKQUOTE&gt;sirduncan wrote:&lt;BR /&gt;On a continuing thought here - --&lt;BR /&gt;
&lt;BR /&gt;
I have it pulling the information now, but my if statement is failing.  ie.&lt;BR /&gt;
&lt;BR /&gt;
zoneexists = REQUEST ("Zone_relations", "", category_name, code, name, number)&lt;BR /&gt;
&lt;BR /&gt;
TEXT2 3,1,name  ! this prints the 'name' of the zone it is in&lt;BR /&gt;
&lt;BR /&gt;
IF name="FOUNDATION" THEN ! this gives me an error (see below)&lt;BR /&gt;
  TEXT2 3,1,name&lt;BR /&gt;
ENDIF&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
The error I am getting on that if statement is this:&lt;BR /&gt;
&lt;BR /&gt;
"Incompatible types in expression at line xxx of the file xxx.gsm (System error -1)"&lt;BR /&gt;
&lt;BR /&gt;
Anyone care to venture a guess on this?  I have seen this near same code on these boards and everyone says it should work, but it is not.  Help.&lt;/BLOCKQUOTE&gt;

I might be wrong, but I think this error message comes when the program gets a variable that is different from what it expects. For example, it expects a number, but the variable is a string.&lt;BR /&gt;
You should check with the Debugger if this is the case.&lt;BR /&gt;
In the Debugger, you can list variables and you will always see their type and value at each step of the code.</description>
      <pubDate>Thu, 29 Dec 2005 14:07:16 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Changes-with-Layer-Combinations/m-p/101213#M35415</guid>
      <dc:creator>Laszlo Nagy</dc:creator>
      <dc:date>2005-12-29T14:07:16Z</dc:date>
    </item>
    <item>
      <title>Re: Changes with Layer Combinations</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Changes-with-Layer-Combinations/m-p/101214#M35416</link>
      <description>"If it is the line with the REQUEST function, then you probably need to initialize the variables first. "&lt;BR /&gt;
&lt;BR /&gt;
Thanks Mathew, it looks like that did the trick.  I'm guessing that the 'name' that was coming out of the request function had an undefined variable type.  By intitallizing the variable as a string before making the request call, it comes back as a variable and I am now able to do string comparisons on them.  Thank you.&lt;BR /&gt;
&lt;BR /&gt;
I'm finally close to haveing it done.&lt;BR /&gt;
&lt;BR /&gt;
Thanks for your answers everyone.  This is why I love ArchiTalk so much - Answers!</description>
      <pubDate>Thu, 29 Dec 2005 16:39:58 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Changes-with-Layer-Combinations/m-p/101214#M35416</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-12-29T16:39:58Z</dc:date>
    </item>
  </channel>
</rss>

