Custom Parametric Door - Issues with flipping
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2013-10-21
12:49 PM
- last edited on
2023-05-24
11:45 AM
by
Rubia Torres
Apologies if this issue had already been discussed in another thread, tried to search this specific problem but couldn't really find the solution as yet.
I'm trying to script a custom parametric door from scratch, using macros for the leaf and the architrave, etc. and it's definitely getting there. The only thing I can't get my head around is that when I flip the door in the Selection Settings window the door gets mirrored around the outside edge of the wall instead of the centre line and so the door falls outside the wall, which is pretty frustrating. See images attached.
I've tried to look at the script of standard GS doors but all these objects use macros and I might look a bit thick here but the master scripts calling the macros don't give away the whereabouts of the actual macro objects.
Does anyone know how to tweak the script so the door stops screwing around and stays within the wall contours even when flipped? Or if this is not something easliy explained, does anyone know how to extract the actual scripts of door objects from the AC17 Library, such as gs_general_lt_door_macro?
Cheers for that guys.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2013-10-21 02:54 PM
Ben_Joo wrote:To open the macro, in the script, select just the name of the macro (exclude the quote marks) and use the command Open Object....
I've tried to look at the script of standard GS doors but all these objects use macros and I might look a bit thick here but the master scripts calling the macros don't give away the whereabouts of the actual macro objects.
... Or if this is not something easliy explained, does anyone know how to extract the actual scripts of door objects from the AC17 Library, such as gs_general_lt_door_macro?
You should add a Signature to your Profile (click the Profile button near the top of this page) with your ArchiCAD version and operating system (see mine for an example) for more accurate help in this forum.
David
www.davidmaudlin.com
Digital Architecture
AC28 USA • Mac mini M4 Pro OSX15 | 64 gb ram • MacBook Pro M3 Pro | 36 gb ram OSX14
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2013-10-21 03:07 PM

Do you happen to know if there's a boolean type parameter that controls whether a door is flipped or not? I'd imagine if there was then this issue could be very easily resolved by putting a line in the script like:
IF FlippedOrNot = 1 THEN ADDY -WALL_THICKNESS
Your help is very much appreciated.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2013-10-21 03:38 PM
While it has been awhile since I tackled this issue, I believe the global you are looking for is WIDO_REVEAL_SIDE
AC 19 6006 & AC 20
Mac OS 10.11.5
15" Retina MacBook Pro 2.6
27" iMac Retina 5K

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2013-10-21 03:41 PM
I have not thoroughly tested this, but you should look at the Global Variable WIDO_FRAME_THICKNESS in the GDL Reference Guide. Also, in your library part, from the main library window Details > Compatibility Options... > Nominal Frame Thickness where this variable is set. With a quick test I set it to WALL_THICKNESS (another Global Variable) and that seemed to correct the problem, but this will depend on your library part's parameters and scripts.
The Graphisoft library parts, particularly the doors and windows, have become very complex, so it is very difficult to read through their code so see what is going on.
Thanks for adding the signature.
David
www.davidmaudlin.com
Digital Architecture
AC28 USA • Mac mini M4 Pro OSX15 | 64 gb ram • MacBook Pro M3 Pro | 36 gb ram OSX14
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2013-10-21 04:59 PM
Thank you very much for your input, I'll check out what these variables do and also look at the website. I'd really love to see a brutally simple yet fully functional door script so I can pinch all the tricks from it. There seems to be a lot of different issues to consider.
Cheers

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2013-10-22 04:22 AM
You want to add the parameter for the frame thickness as shown in the attached image.
If there is no parameter then just type in a dimension.
This has worked for me on my own custom doors but I have never tried or used the standard GS doors so can't say for sure if it will work there.
But if you are working on standard GS doors just remember they will be replaced if you ever update the library unless you save as a copy with a new name and put it in your own library (or embed in the file).
Barry.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2013-10-22 05:48 PM
It was the WIDO_REVEAL_SIDE global, the door's now working properly both 2D/3D. There's probably more than one solution, I haven't tried the "compatibility options" yet but it might be more elegant.
Cheers everyone