GDL
About building parametric objects with GDL.
SOLVED!

Hard coded reveal to wall face

jc4d
Expert

Hello, is there a way to  hard code to set the window to Reveal to Wall Face as default?

I'm not making an ordinary window, is a laboratory passthrough cabinet where I don't need to set any options related to windows, only the opening.

 

Juan

1 ACCEPTED SOLUTION

Accepted Solutions
Solution
Barry Kelly
Moderator

The reveal is always linked to the wall face.

The thing is each wall has an outside and inside face.

You tell it which of these faces to link to when you place the window.

 

There is no way that you can place the window on the inside face and have it automatically flip to the outside face.

You have to choose the reveal side with the first click as you place the window (outside/inside).

You then click to the left/right outside/inside of the window/door to determine the swing and which side the door window faces.

 

The direction it faces is independent of the reveal side.

 

In GDL you could maybe then check WIDO_REVEAL_SIDE.

If it is "1" (opposite of the reveal side you place with the first click) you could maybe then MUL2 1,-1 in 2D and MULy -1 in 3D to reverse the inside/outside of your window.

This will force the widow to model itself inside out when the reveal is placed on one side of the wall and the widow direction is on the other side.

 

Personally I think it is just easier to just script the window normally, and then just make sure you place it correctly on your plan.

i.e. click the reveal and direction on the same side of the wall.

 

But even if you do script this, it will still be possible to click the reveal side (first click) on the other side (inside) of the wall, so it will still be inside out if you want it always on the outside.

You can't control where the user clicks for the reveal side.

 

Does that make sense?

 

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

View solution in original post

3 REPLIES 3
Solution
Barry Kelly
Moderator

The reveal is always linked to the wall face.

The thing is each wall has an outside and inside face.

You tell it which of these faces to link to when you place the window.

 

There is no way that you can place the window on the inside face and have it automatically flip to the outside face.

You have to choose the reveal side with the first click as you place the window (outside/inside).

You then click to the left/right outside/inside of the window/door to determine the swing and which side the door window faces.

 

The direction it faces is independent of the reveal side.

 

In GDL you could maybe then check WIDO_REVEAL_SIDE.

If it is "1" (opposite of the reveal side you place with the first click) you could maybe then MUL2 1,-1 in 2D and MULy -1 in 3D to reverse the inside/outside of your window.

This will force the widow to model itself inside out when the reveal is placed on one side of the wall and the widow direction is on the other side.

 

Personally I think it is just easier to just script the window normally, and then just make sure you place it correctly on your plan.

i.e. click the reveal and direction on the same side of the wall.

 

But even if you do script this, it will still be possible to click the reveal side (first click) on the other side (inside) of the wall, so it will still be inside out if you want it always on the outside.

You can't control where the user clicks for the reveal side.

 

Does that make sense?

 

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
marekk221
Participant

Very well explained. I had a problem with that too. Now everything is explained

 

See https://vizacademy.co.uk/architectural-visualization-portfolio/

Thank you for the time taken on explaining it, grateful about it.

 

Juan

 

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!