BIM Coordinator Program (INT) April 22, 2024
Find the next step in your career as a Graphisoft Certified BIM Coordinator!
GDL
About building parametric objects with GDL.

Layout GLOB_CONTEXT

Bruce
Expert

Is there a way to have items within a drawing not show in the layout (or not print)?

 

I've tried the GLOB_CONTEXT to test for Layout (8), but that has no effect.

Bruce Walker
www.brucepwalker.com
Barking Dog BIM YouTube
Mindmeister Mindmap
-- since v8.1 --
AC27 5003 INT Full | Windows 11 64 Pro | 12th Gen Intel i7-12700H 2.30 GHz | 64 Gb RAM | NVIDIA GeForce RTX 3060 32 Gb
8 REPLIES 8
Lingwisyer
Guru

GLOB_CONTEXT is based on the where the object is placed not where it is viewed.

 

Placed on a floor plan:

Lingwisyer_0-1660885185694.png

Placed on a layout:

Lingwisyer_1-1660885207063.png

 

The above references 8. Works fine for me in AC22.

 

 

Ling.

AC22-23 AUS 7000Help Those Help You - Add a Signature
Self-taught, bend it till it breaksCreating a Thread
Win11 | i9 10850K | 64GB | RX6600 Win10 | R5 2600 | 16GB | GTX1660
runxel
Legend

I would reply that this is a very dangerous behavior and I'm glad there isn't this possibility to foot shot oneself like this.

Solve this by using layers or the MVO.

Lucas Becker | AC 27 on Mac | Author of Runxel's Archicad Wiki | Editor at SelfGDL | Developer of the GDL plugin for Sublime Text |
«Furthermore, I consider that Carth... yearly releases must be destroyed»
Barry Kelly
Moderator

As Ling said, if you place the object on the layout itself yes it will work.

But then if you don't want to see it, you just wouldn't place it!

 

If you place the object in Archicad plan or elevation (view), and then place that view on the layout it will not work as it will determine the type of view you placed it in.

 

Barry.

 

 

 

One of the forum moderators.
Versions 6.5 to 27
Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11
Bruce
Expert

Based on those replies, I would conclude there is no way in GDL for something not to show for printing - a-la fill handles, or detail origin nodes.

Bruce Walker
www.brucepwalker.com
Barking Dog BIM YouTube
Mindmeister Mindmap
-- since v8.1 --
AC27 5003 INT Full | Windows 11 64 Pro | 12th Gen Intel i7-12700H 2.30 GHz | 64 Gb RAM | NVIDIA GeForce RTX 3060 32 Gb

@Bruce wrote:

Based on those replies, I would conclude there is no way in GDL for something not to show for printing - a-la fill handles, or detail origin nodes.


The easiest way would be to create a "non-print" layer as runxel mentioned.

Make sure it is turned off in all the layer combinations you use for all views that you place on layouts.

So those items will never appear in the printed views.

 

When you want to see them in Archicad, just turn that layer on.

That will save you duplicating all of your layer combinations and views.

 

This will also work for more than just objects.

It could be used for any element.

And no GDL scripting is necessary.

 

You could also use an Model View Option (Library Global) in your objects to turn on/off objects, or parts of objects.

It won't work with other elements and means you need to duplicate your MVO schemes (one for on, one for off) and also duplicate you views to use each of those MVO schemes.

You can't just turn the MVO option on/off (like you can a layer) as it resets the current MVO scheme and will affect what you print.

 

Barry.

 

One of the forum moderators.
Versions 6.5 to 27
Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11
Lingwisyer
Guru

Fill handles? So part of your object does not show / print? Hm... Probably something that would best be handled by a MVO.

AC22-23 AUS 7000Help Those Help You - Add a Signature
Self-taught, bend it till it breaksCreating a Thread
Win11 | i9 10850K | 64GB | RX6600 Win10 | R5 2600 | 16GB | GTX1660
Bruce
Expert

@Lingwisyer  / @Barry Kelly  - I was hoping to avoid the MVO route at the moment, as that's additional scripting time (and part of a wider office strategic discussion) that I can't afford right now.  Ultimately that's what I'll do, but I was hoping for a more shorthand solution for now.

Bruce Walker
www.brucepwalker.com
Barking Dog BIM YouTube
Mindmeister Mindmap
-- since v8.1 --
AC27 5003 INT Full | Windows 11 64 Pro | 12th Gen Intel i7-12700H 2.30 GHz | 64 Gb RAM | NVIDIA GeForce RTX 3060 32 Gb

You might set up a special pen set with white pens.

Péter Baksa
Software Engineer, Library as a Platform
Graphisoft SE, Budapest
Learn and get certified!

Didn't find the answer?

Check other topics in this Forum

Back to Forum

Read the latest accepted solutions!

Accepted Solutions

Start a new conversation!