IF SYMB_MIRRORED.....THEN CHANGE PARAMETER
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2009-12-13
06:36 PM
- last edited on
‎2023-05-24
11:55 AM
by
Rubia Torres
I've scripted a simple, office standard casement window. It works perfectly except for one thing. The user has the option to choose: Left, Right of Fixed as the opening direction. The problem is that if the window is mirrored it still shows the original opening direction parameter even though the opening line is correct. The script below shows an attempt to fix this but it doesn't work. Any thoughts?
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! OPENING LINE !!!!!!!!!!!!!!!!!
IF OP_DIR="Fixed" THEN END
IF OP_DIR="Left" THEN
ADDX A-7.5"
MULX -1
IF SYMB_MIRRORED THEN PARAMETERS OP_DIR = "Right"
ENDIF
ADDZ .25"
LIN_ 0, 0, 0, A-7.5", (B-7.5")/2, 0
LIN_ A-7.5", (B-7.5")/2, 0, 0, B-7.5", 0
IF SYMB_MIRRORED THEN PARAMETERS OP_DIR = "Left"
Thanks,
Doug
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2009-12-17 08:15 PM
I did some checking and according to Laszlo Nagy
SYMB_MIRRORED does not work for doors and windows.
Please go to this link and read what is said about SYMB_MIRRORED.
Peter Devlin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2009-12-17 08:50 PM
You might be able to use WIDO_ORIENTATION.
See what Laszlo Nagy has to say about WIDO_ORIENTATION
in the same link I posted earlier.
Peter Devlin

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2009-12-18 12:52 PM
Peter wrote:SYMB_MIRRORED
...according to Laszlo Nagy SYMB_MIRRORED does not work for doors and windows.
(it can be found starting from the permalink of Basic Library Documentation:
Peter wrote:This document should be updated!
Please go to this link and read what is said about SYMB_MIRRORED.
http://www.archicadwiki.com/Global%20GDL%20Parameters?highlight=%28CategoryGdl%29
Regards,
ArchiCAD Development - GDL Team
AC13, AC14 and upwards...

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2009-12-18 01:26 PM
4thorns wrote:Look into the related chapter of GDL Technical Standards:
I put: IF SYMB_MIRRORED THEN END in the master script and it seemed to work..nothing but an empty hole in the wall. So I tried this in the master script:
IF SYMB_MIRRORED THEN IF OP_DIR="Left" THEN OP_DIR="Right" PARAMETERS OP_DIR="Right" ENDIF IF SYMB_MIRRORED THEN IF OP_DIR="Right" THEN OP_DIR="Left" PARAMETERS OP_DIR="Left" ENDIF ...Still no luck.
(it can be found starting from the permalink of Basic Library Documentation:
It defines the cases when parameters script is run. Mirroring goes in the "NOT run" row beside drag - by analogy. If you think about it, the current way is the coherent logic for all situations.
Consequently, setting any parameter according to SYMB_MIRRORED will take effect only when you open up the settings dialog of the object and close it with OK.
I don't know a good way to show the mirrored/not-mirrored information in the listing. ArchiCAD Library windows have an other way to mirror the sash - by having an actual opening type parameter which can be set by the user.
Regards,
ArchiCAD Development - GDL Team
AC13, AC14 and upwards...

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2009-12-18 03:13 PM
AMD Ryzen9 5900X CPU, 64 GB RAM 3600 MHz, Nvidia GTX 1060 6GB, 500 GB NVMe SSD
2x28" (2560x1440), Windows 10 PRO ENG, Ac20-Ac28
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2009-12-19 01:06 AM


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2009-12-19 01:33 AM
On Oliver Detan's site,
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
‎2009-12-19 01:39 AM
ztaskai wrote:I have noticed in my latest window that SYMB_MIRROR will not work in the UI script. I have a window that displays its shape in the UI, if the window is mirrored the UI display needs to mirror as well, but it will not. It does not matter if you open the window and change a parameter, SYMB_MIRRORED has absolutely no effect AFAIK. I have had to resort to a 'Mirror' button but it really should not be required at all.This is very annoying.....
Consequently, setting any parameter according to SYMB_MIRRORED will take effect only when you open up the settings dialog of the object and close it with OK.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2009-12-19 01:15 PM
Ben wrote:Hi Ben,
I have noticed in my latest window that SYMB_MIRROR will not work in the UI script. I have a window that displays its shape in the UI, if the window is mirrored the UI display needs to mirror as well, but it will not. It does not matter if you open the window and change a parameter, SYMB_MIRRORED has absolutely no effect AFAIK. I have had to resort to a 'Mirror' button but it really should not be required at all.This is very annoying.....
It's really strange. I just tested the situation in v12 and in v13 with the following script line:
ui_outfield SYMB_MIRRORED, 1, 1I get the proper 0 and 1 values printed - as real numbers of course.
Did I misinterpret your problem?
Regards,
ArchiCAD Development - GDL Team
AC13, AC14 and upwards...

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2009-12-20 12:32 AM

- « Previous
-
- 1
- 2
- Next »
- « Previous
-
- 1
- 2
- Next »