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

GDL command to hide one small part in some plan view while other plan view shows all parts?

William Yan
Advocate

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!

 

AC 25 5010 CHI, Windows 10
11 REPLIES 11

DGSketcher
Rockstar

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.

Apple iMac macOS Monterey / AC26UKI (most recent builds)

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. 

AC 25 5010 CHI, Windows 10

The Library Developer Kit has an Example Library, the "Floor Plan Cut Plane Example" object might help you how to use these globals.

Péter Baksa
Software Engineer, Library as a Platform
Graphisoft SE, Budapest

DGSketcher
Rockstar

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.

Apple iMac macOS Monterey / AC26UKI (most recent builds)

Barry Kelly
Moderator

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.


One of the forum moderators.
Versions 6.5 to 25
Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), Windows 10
Dell Precision 3510 - i7 6820HQ @ 2.70GHz, 16GB RAM, AMD FirePro W5130M, Windows 10

William Yan
Advocate

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.

AC 25 5010 CHI, Windows 10

Kotetsu
Booster

I created a very simple object.

In the floor set in the "hidefloor" parameter (array), the elements from "Hide" to "Hide end" will not be displayed.

I hope this is as you intended it to be.

Thank you! I will try to understand it.

AC 25 5010 CHI, Windows 10

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.

 

Architect / BIM Manager at Ideia1 - www.ideia1.com.br
Archicad 25 / Windows 10 64


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?

 

 

Lingwisyer
Champion

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.

AC22-23 AUS 7000
Self-taught, bend it till it breaks.
Win10 | E5620 x 2 | 24GB | K2200 RIP PSU
Win10 | R5 2600 | 16GB | GTX1660

Still looking?

Browse more topics

Back to forum

See latest solutions

Accepted solutions

Start a new discussion!