We value your input!
Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey

Libraries & objects
About Archicad and BIMcloud libraries, their management and migration, objects and other library parts, etc.
SOLVED!

GDL: Surface Orientation

Lingwisyer
Guru
Hi all,

Is there a way to rotate the surface coordinates in GDL?

I am wanting to rotate the surfaces and fills defined by the Material and Building Material commands to match the orientation of the following objects.



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
1 ACCEPTED SOLUTION

Accepted Solutions
Solution
Lingwisyer
Guru
Ah. I had been trying those commands but had not had any success. I appears that I was missing the Base command. Should have read till the end of the chapter... Whelp...



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

View solution in original post

4 REPLIES 4
Barry Kelly
Moderator
I think VERT / COOR may be your friend here.

Here are a couple of posts that may help.

https://archicad-talk.graphisoft.com/viewtopic.php?f=6&t=59269&p=296637&hilit=coor#p296637

https://archicad-talk.graphisoft.com/viewtopic.php?f=3&t=41556&p=293188&hilit=coor#p293188

The VERT / COOR can also be placed in a subroutine so you can GOSUB to it after any 3D element has been scripted, rather than repeating it all of the time.
You can even have different subroutines so you can align the materials vertically, horizontally, or however you want.

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
Solution
Lingwisyer
Guru
Ah. I had been trying those commands but had not had any success. I appears that I was missing the Base command. Should have read till the end of the chapter... Whelp...



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
Barry Kelly
Moderator
It has been a while since I have scripted this.
But I don't think I have ever used the BASE.

I find that ...
BODY -1
PRISM (or other elements
VERT
COOR
BODY -1
.... works.

I'm not sure exactly what the BODY -1 does but it seems to start/stop (or define) the group of elements being worked on.
I might have to get the Cookbook back out and look it up - the manual doesn't really explain it.

Then the VERT/COOR must be after the element that you want to affect.
That seems a little backwards to me but it only works if it is after the element.

But maybe it is just BASE that is needed.

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
Lingwisyer
Guru
Without Base I was just getting the surface colour. As soon as I added it, the texture was shown. According to the manual Base resets the counter, which I am assuming are the values after VERT and such.

Thought it might be due to being in a loop, but putting it outside made it have no effect from what I have tried...



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