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.

Rotating Door/Window Markers

Red
Advocate
How can I get the markers to automatically rotate. I noticed that it has something to do with reveal_side. Any help would be great.
Thanks,
Red
i7 8700k
ROG Strix Z390-E MoBo
64gb RAM
EVGA GeForce GTX 2080
_______________________
http://www.facebook.com/flatcreekdesignstn
http://www.sraarchitects.biz
5 REPLIES 5
Daniel Lindahl
Contributor
Red wrote:
How can I get the markers to automatically rotate. I noticed that it has something to do with reveal_side. Any help would be great.
Red

ROT2 -W~

W~ is the global variable identifying the object angle. If you rotate the marker by an equal angle in the opposite direction it stays aligned on your drawing.

I used to have problems with this not working properly in 6.0 and 7.0 (mirror reversed or flipped doors would confuse AC no end!) but in 8.x it seems to be working properly.

Now you can maybe help me with another related issue: How can I get the marker to return the door's ID as a number, instead of it's own ID? I used to be able to do this (when I was having alignment problems in 6.0) but now I can't figure out how to.
cheers
Daniel
-------------------------------------
Daniel Lindahl Architecture
AC24 | Dell Inspiron 16+ | Windows 11
Karl Ottenstein
Moderator
Daniel wrote:
ROT2 -W~

W~ is the global variable identifying the object angle.
And, if you look at your GDL Manual (PDF) appendix section titled "Global Variables", you'll see that (several versions ago) Graphisoft introduced synonyms for all of the globals to give them more readable names:

SYMB_ROTANGLE means the same thing as W~, so

ROT2 -SYMB_ROTANGLE

gives the identical result as Daniel's code.

In general, using the new names is recommended to make your code more readable / understandable. Experienced old-timers and many old library parts (including much of the standard library) still use the old abbreviations ... which require the magic decoder ring from a cracker jack box to figure out.

Karl
One of the forum moderators
AC 28 USA and earlier   •   macOS Sonoma 14.7.1, MacBook Pro M2 Max 12CPU/30GPU cores, 32GB
Stress Co_
Advisor
Do I have to alter GDL script? to rotate the attached markers?

Funny thing... a couple of doors on a lower level have markers with correct orientation. When I "eye dropper 'em" and place them on this level, the markers flip.


Marc Corney

PS:
I do not have any experience with GDL scripts.
Picture 2 copy.jpg
Marc Corney, Architect
Red Canoe Architecture, P. A.

Mac OS 10.15.7 (Catalina) //// Mac OS 14.5 (Sonoma)
Processor: 3.6 GHz 8-Core Intel Core i9 //// Apple M2 Max
Memory: 48 GB 2667 MHz DDR4 //// 32 GB
Graphics: Radeon Pro 580X 8GB //// 12C CPU, 30C GPU
ArchiCAD 25 (5010 USA Full) //// ArchiCAD 27 (4030 USA Full)
Laszlo Nagy
Community Admin
Community Admin
I do not have the marker objects, because I am using INT and HUN (garian) versions, but you should be able to do it. Probably either an ADD x,y command in the 2D Script should do it.

You need to find the linein the 2D Script that creates the width/height text.
It will probably be a TEXT2 command.
Then you need to insert an ADD command before it, then a DEL command after it.
The ADD command will move the location where the TEXT command generates the text, the DEL command undoes the ADD command so you get back to where you were before the ADD command.

Something like this:

ADD 0, y
Text command generating width/height
DEL 1

The y value will probably be a negative number.
Loving Archicad since 1995 - Find Archicad Tips at x.com/laszlonagy
AMD Ryzen9 5900X CPU, 64 GB RAM 3600 MHz, Nvidia GTX 1060 6GB, 500 GB NVMe SSD
2x28" (2560x1440), Windows 10 PRO ENG, Ac20-Ac27
Stress Co_
Advisor
It seems door markers care which direction walls are created when deciding which way to orient the "Builder Dimension".

Cool for us who are GDL-script-phobics.

Thanks Link

Marc
Picture 1.jpg
Marc Corney, Architect
Red Canoe Architecture, P. A.

Mac OS 10.15.7 (Catalina) //// Mac OS 14.5 (Sonoma)
Processor: 3.6 GHz 8-Core Intel Core i9 //// Apple M2 Max
Memory: 48 GB 2667 MHz DDR4 //// 32 GB
Graphics: Radeon Pro 580X 8GB //// 12C CPU, 30C GPU
ArchiCAD 25 (5010 USA Full) //// ArchiCAD 27 (4030 USA Full)