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

The 2025 Technology Preview Program is now live. Join today!

GDL
About building parametric objects with GDL.

Sensing skylight for being mirrored and output to parameter

I need to apply a different parameter to a mirrored and not mirrored skylight/roof window.

Is there any possibility? Otherwise I will have to hard-code the type and un-mirror the model.

 

SYMB_MIRRORED does not work in parameter script.

WIDO_ORIENTATION does not work in skylights - it works ok with wall doors and windows.

 

The inconsistency is mind-blowing.

6 REPLIES 6
Barry Kelly
Moderator

It is SYMB_MIRRORED.

Are you sure it doesn't work?

I just used it in the Master Script as a text value and it worked fine.

 

BarryKelly_0-1757983313498.png

 

Barry.

One of the forum moderators.
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

My guess is that he is trying to change the parameters values the user sees when it is mirrored. So while it will impact the 2D and 3D script, it will not feed back into the parameters. As a work around, if Piotr scripts a UI, they could get it to display a completely seperate parameter when it is mirrored, unless SYMB_MIRROR also does not work in the UI Script.

 

Ling.

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

SYMB_MIRRORED works only in 2d/3d scripts.

 

It does work in either the parameter or master script.

At least it does pass a value on to another parameter.

You just can't set the value of that parameter in the parameter list.

I am not quite sure why.

 

BarryKelly_0-1758071144892.png

 

BarryKelly_1-1758071234887.png

 

BarryKelly_2-1758071250454.png

 

Barry.

One of the forum moderators.
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

Barry, I cannot make it work, Yes it works if placed as an object, but not if placed as roof window.

I see You use AC 22 in the screenshot - so here goes a 22 version of modified file, maybe something stupid i did..

I added:

if SYMB_MIRRORED=1 then bMirrored=1 else bMirrored=0
if SYMB_MIRRORED=1 then sMirrored="mirrored" else sMirrored="not mirrored"

parameters bMirrored=bMirrored!: lock "bMirrored"
parameters sMirrored=sMirrored!: lock "sMirrored"

 

and bMirrored and sMirrored as parameters...

 

It seems I have to live with it and make a workaround with 2 different products L/R ones and then mirror / unmirror accordingly in the model  😞

works when placed as object, but not as window...what the heck?

 

 

 

The object behaves correctly.

It is just that the parameters do not adjust in the parameter list when you open the object settings.

I don't know why this is.

 

I was using the skylight tool.

I just added .... text2 0,0, sMirrored  ... in the 2D script of your object and you can see it does know when it is mirrored - it just doesn't show in the parameters.

 

BarryKelly_0-1758157106026.png

 

Barry.

One of the forum moderators.
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

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!