cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 
GDL
About building parametric objects with GDL.
SOLVED!

Problem with Selecting Window in Ground Floor View

Martin Walter
Enthusiast
I created a window by using the WALLHOLE command in 3D script and the LINE2 and ARC2 commands in 2D script section. But I cannot select the window in Ground Floor View.
Clicking on the drawn lines of the window the command "Enter Rotation Vector of Selection Rectangle" appears instead of selecting the window.
What can I do?
AC22-27, Windows 11, i7-1355U, 32GB RAM, 2TB SSD
1 ACCEPTED SOLUTION

Accepted Solutions
Solution
Peter Baksa
Graphisoft
Graphisoft
Hi Martin,

Do you use a wallhole2 command in the 2D script? It has a fill_control parameter that is capable of drawing a magnetized fill that isn't green when selected. It needs a set fill command before it to work.

Not using any wallhole2 command creates a rectangular hole with width A, with the same magnetized transparent fill.
Péter Baksa
Software Engineer, Library as a Platform
Graphisoft SE, Budapest

View solution in original post

10 REPLIES 10
Csilla Mai
Graphisoft Alumni
Graphisoft Alumni
Hi Martin!

I suggest you to use poly2_b command and a set fill command with an empty fill or a fill with definable attributes to get an easily highlightable 2D symbol.
Csilla Mai
Library Platform, Engineering Manager
GRAPHISOFT SE
Peter Baksa
Graphisoft
Graphisoft
Hi Martin, that message comes from the Arrow tool, it has a geometry method that needs multiple clicks.

The arrow tool's magnet function only detects lines/arcs defined with the HOTLINE and HOTARC commands. You need to use them besides the LINE2s and ARC2s. There is no special command for polygons, if they have a fill they are magnetic.
Péter Baksa
Software Engineer, Library as a Platform
Graphisoft SE, Budapest
Martin Walter
Enthusiast
The HOTLINE and HOTARC and poly2_b commands are not what I need.
Sorry if I misexplaned what I want.

I want that my window gets selected in floorview, if I click somewhere in the wallhole.

Actually that is not the case but "Enter Rotation Vector of Selection Rectangle" appears instead of selecting the window.
AC22-27, Windows 11, i7-1355U, 32GB RAM, 2TB SSD
Lingwisyer
Guru
Martin wrote:
Actually that is not the case but "Enter Rotation Vector of Selection Rectangle" appears instead of selecting the window.

Because it is not picking up anything that it can "magnet" to, so it defaults to your Arrow Tools selection method, which is Rotated Rectangle. The Wallhole itself does not have a selectable internal feature, only the corners. As the GS people have mentioned, you will need to add a Fill in some way or use Hotlines / Hotarcs and hope that one of them falls within your selection tolerance.



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
Martin Walter
Enthusiast
Thanks for the answers!
I got the selection working by

set fill 65
poly2_b      4, 2+4,      0, 0,
			   0,       0,      0,
			   0,     -300,      0,
			   1230,  -300,      0,
			   1230,    0,      0
Now the only problem is the color of the fill area. It is green if selected and not white like with the standard windows. How can I change the color of the fill to white?
AC22-27, Windows 11, i7-1355U, 32GB RAM, 2TB SSD
Laszlo Nagy
Community Admin
Community Admin
Whether the surface of selected elements is highlighted is controlled by a setting in the Work Environment Dialog.
In the Dialog, activate the "Selection and Element Information" page, and uncheck the "Highlight element surface during selection" checkbox. Keep in mind that this will affect all selected elements, not only Doors.
However, the contours of elements will still be highlighted if you keep the "Highlight element contour during selection" checkbox checked, so you will still have a visual cue of whether an element is selected or not.
Loving Archicad since 1995 - Find Archicad Tips at x.com/laszlonagy
AMD Ryzen9 5900X CPU, 64 GB RAM 3600 MHz, Nvidia GTX 1060 6GB, 500 GB NVMe SSD
2x28" (2560x1440), Windows 10 PRO ENG, Ac20-Ac27
Martin Walter
Enthusiast
There must be a way to set the fill area to white when selected using the GDL too, because the AC Window 23 has two different selectable areas in floor view: one which is green when selected and one which is white when selected:
AC22-27, Windows 11, i7-1355U, 32GB RAM, 2TB SSD
Laszlo Nagy
Community Admin
Community Admin
I don't think there is a setting using which you can influence this.
To me, it seems like it is just one of Archicad's idiosyncrasies.
When the "Floor Plan Display" field is set to "Symbolic", you can see this difference in selection highlight between the cut and uncut portions of the Window.
However, if the "Floor Plan Display" field is set to "Projected" or "Projected with Overhead", both cut and uncut portions are highlighted with green.
And, if the "Floor Plan Display" field is set to "Overhead All" then all portions are white and there is no green highlight.

I think this was just a product design decision that this is how it will work.
Loving Archicad since 1995 - Find Archicad Tips at x.com/laszlonagy
AMD Ryzen9 5900X CPU, 64 GB RAM 3600 MHz, Nvidia GTX 1060 6GB, 500 GB NVMe SSD
2x28" (2560x1440), Windows 10 PRO ENG, Ac20-Ac27
Solution
Peter Baksa
Graphisoft
Graphisoft
Hi Martin,

Do you use a wallhole2 command in the 2D script? It has a fill_control parameter that is capable of drawing a magnetized fill that isn't green when selected. It needs a set fill command before it to work.

Not using any wallhole2 command creates a rectangular hole with width A, with the same magnetized transparent fill.
Péter Baksa
Software Engineer, Library as a Platform
Graphisoft SE, Budapest