cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Learn to manage BIM workflows and create professional Archicad templates with the BIM Manager Program.

Libraries & objects
About Archicad and BIMcloud libraries, their management and migration, objects and other library parts, etc.

Changes with Layer Combinations

Anonymous
Not applicable
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?
14 REPLIES 14
Anonymous
Not applicable
Hello

It is not possible to make an object sensitive to a layer combination and it is really a standing wish.

But a way to do what you want is zone. An object is sensitive to the zone.
Then you can have a zone on a particular layer.
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.
the code is the next

request ("Zone_relations","",nom_zone,code_zone)

For scripting take a look to this topics in FC-Cadlink —sorry in french but really better than my english…— Changement d'apparence suivant plans ;

HTH
Anonymous
Not applicable
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.
Anonymous
Not applicable
This isn't working for me. I get the following 'Warning!"

Unused function return value at line 14 of file filename.gsm


Any guesses at to why?
Anonymous
Not applicable
Hello Sirduncan

I have try it and it works for me.
Can you copy your code for helping me to guess why ?

If you want I can send you the example that works, just PM me your email adress for.

HTH
Anonymous
Not applicable
Thanks Fmr,

I actually found another thread talking about this same error. Apparently, it is requiring that I set the request to an actual variable:

var = REQUEST ("Zone_relations", "", category_name, code, name, number)


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.
Anonymous
Not applicable
On a continuing thought here - --

I have it pulling the information now, but my if statement is failing. ie.

zoneexists = REQUEST ("Zone_relations", "", category_name, code, name, number)

TEXT2 3,1,name ! this prints the 'name' of the zone it is in

IF name="FOUNDATION" THEN ! this gives me an error (see below)
TEXT2 3,1,name
ENDIF


The error I am getting on that if statement is this:

"Incompatible types in expression at line xxx of the file xxx.gsm (System error -1)"

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.
Anonymous
Not applicable
Good night

I have the same error but it works properly.
Anonymous
Not applicable
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.

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.
Anonymous
Not applicable
Yes

I have the same error in the "check script".
But the objects change in function of the zone were it is as I want.
If you want my file I cant send you.