2022-02-26 08:54 AM
Hi guys!
I have a question. Is there a way or GDL command , can hide one small part of a GDL object in some plan views (say floor 1) while other plan views (say floor 2 and 3) shows all parts of the GDL object?
THanks!
2022-02-26 01:01 PM
There are a number of Global Variables listed in the GDL guide that would enable such behaviour. Story Information has several globals to interrogate and apply e.g. GLOB_HSTORY_ELEV. You might also find GLOB_CUTPLANES_INFO of interest.
2022-02-26 05:31 PM
Thank you. Is there any tutorials I can follow? As English is not my language I find hard to follow GDL manual to do real job.
2022-03-02 01:35 AM
The Library Developer Kit has an Example Library, the "Floor Plan Cut Plane Example" object might help you how to use these globals.
2022-02-26 11:26 PM
I don’t think there are any tutorials available covering this area. Try creating a simple object and then play with the global values to see what happens e.g if home story is greater than 3.00m then draw shape A else draw shape B. If you are new to GDL it may be take a while to work out what you need to do.
2022-02-26 11:37 PM
You could try looking at the scripts for the elevator object to see how that works across storeys.
I am not saying that will be easy to understand though.
Barry.
2022-02-27 01:27 AM
Thank you guys, I will try my best to write something. But I opened some gs gdl objects, I am shocked, seeing so many "call" and "if endif", too hard for me. I'd rather write my gdls for blank.
2022-02-27 06:32 AM
2022-03-01 04:40 AM
Thank you! I will try to understand it.☕
2022-03-14 09:23 AM - edited 2022-03-14 09:24 AM
Your example helped me as well, I'm having a similar issue. And, I think he'll need to get which is the "Home Story" of the object inserted, to be able to know if the current story above or below it.
Is there a way to REQUEST the home story index?
Using this:
n = REQUEST ("Home_Story", "", index, story_name)
Gave me no luck.. Seems like it also returns the "current story" instead of the object's home story index.
2022-03-27 06:33 AM
n = REQUEST ("Home_Story", "", index, story_name)
You should now be able to get home story index.
I created another simple object.
This object is displayed as "Higher floor" if it is above the homestory, "Lower floor" if it is below the homestory, and "This floor" if it is the same story.
Is this correct?
2022-03-15 01:29 AM - edited 2022-03-15 01:31 AM
GLOB_CUTPLANES_INFO[1] + GLOB_CSTORY_ELEV - GLOB_HSTORY_ELEV >= 0
Cutplane height, elevation of current story, elevation of home story. You could just used these variables? Though it does not seem to work if you set the object to All Relative Stories....
Ling.