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.

North Symbol connected to Project North

Anonymous
Not applicable
Tried a search for this, but with no luck.

Can anyone please tell me how I can link my home made north point to the project north, so that if I change the angle of the project north, the symbol updates to the same rotation too?

I am guessing that I'll need to add some parameters and code?

Thanks for any helpful replies.

Hunter.
14 REPLIES 14
Karl Ottenstein
Moderator
AC not running, so basing this on several years' old memory... but I believe the AC north symbol simply displays different symbols that are drawn in different 'fragments' (symbol windows equiv of layers) and which are centered at the origin. I assume your symbol is just 2D stuff - so you can just copy your symbol and past it into an empty fragment of the standard north symbol, and add it to the list of symbol options...

Karl
One of the forum moderators
AC 28 USA and earlier   •   macOS Sonoma 14.7.1, MacBook Pro M2 Max 12CPU/30GPU cores, 32GB
Karl Ottenstein
Moderator
Gary wrote:
Is there a north arrow that can be set that will reset the sun and true north coordinates, or is the only way to set that going to the 3d sun settings click more sun and set it there?
No, GDL objects cannot modify any project settings.

But, you can get the the sun settings more quickly by right-clicking a 3D viewpoint or view in Project Navigator or Organizer.

Karl
One of the forum moderators
AC 28 USA and earlier   •   macOS Sonoma 14.7.1, MacBook Pro M2 Max 12CPU/30GPU cores, 32GB
Anonymous
Not applicable
Here's the 2D Script info:


if gs_follow_north then
mul2 1, 1-2*SYMB_MIRRORED
rot2 GLOB_NORTH_DIR + 180*SYMB_MIRRORED - SYMB_ROTANGLE - 90
endif

mul2 A/2.000000, B/2.000000
add2 -120.5250812289, -60.44185885178
pen 100
set fill "markerfill"
poly2_b{3} 5, 3, 100, 0,
0, 0, 1, 0, 0, 1,
120.5250813016, 62.44185892435, 1,
122.5250813016, 62.44185892435, 1,
122.5250813016, 60.44185892435, 1,
120.5250813016, 60.44185892435, 1,
120.5250813016, 62.44185892435, 1
hotspot2 120.5250813016, 62.44185892435
hotspot2 122.5250813016, 62.44185892435
hotspot2 122.5250813016, 60.44185892435
hotspot2 120.5250813016, 60.44185892435
hotspot2 120.5250813016, 62.44185892435

pen 91
line_property 0
line2 121.5250813016, 62.44185892435, 121.5250813016, 60.44185892435
line2 120.5250813016, 61.44185892435, 122.5250813016, 61.44185892435
set fill "Solid Fill"
poly2_b{3} 5, 3, 91, 0,
0, 0, 1, 0, 0, 1,
121.5250813016, 62.44185892435, 1,
121.5250813016, 61.44185892435, 1,
121.6750813016, 61.44185892435, 1,
121.6750813016, 62.44185892435, 1,
121.5250813016, 62.44185892435, 1
hotspot2 121.5250813016, 62.44185892435
hotspot2 121.5250813016, 61.44185892435
hotspot2 121.6750813016, 61.44185892435
hotspot2 121.6750813016, 62.44185892435
hotspot2 121.5250813016, 62.44185892435

set fill "Solid Fill"
poly2_b{3} 5, 3, 91, 0,
0, 0, 1, 0, 0, 1,
122.5250813742, 61.4508508575, 1,
120.5250813742, 61.4508669912, 1,
120.5250812289, 61.4328508575, 1,
122.5250812288, 61.43283472379, 1,
122.5250813742, 61.4508508575, 1
hotspot2 122.5250813742, 61.4508508575
hotspot2 120.5250813742, 61.4508669912
hotspot2 120.5250812289, 61.4328508575
hotspot2 122.5250812288, 61.43283472379
hotspot2 122.5250813742, 61.4508508575

set fill "Solid Fill"
poly2_b{3} 5, 3, 91, 0,
0, 0, 1, 0, 0, 1,
121.5340732347, 60.44185885178, 1,
121.5340893684, 62.44185885172, 1,
121.5160732347, 62.44185899705, 1,
121.516057101, 60.44185899711, 1,
121.5340732347, 60.44185885178, 1
hotspot2 121.5340732347, 60.44185885178
hotspot2 121.5340893684, 62.44185885172
hotspot2 121.5160732347, 62.44185899705
hotspot2 121.516057101, 60.44185899711
hotspot2 121.5340732347, 60.44185885178

set fill "Solid Fill"
poly2_b{3} 11, 3, 91, 0,
0, 0, 1, 0, 0, 1,
122.0701166212, 61.49901197395, 1,
121.9964501491, 61.49901197395, 1,
121.9964501491, 62.08711597665, 1,
122.0774832685, 62.08711597665, 1,
122.385654677, 61.62670052568, 1,
122.385654677, 62.08711597665, 1,
122.4605489237, 62.08711597665, 1,
122.4605489237, 61.49901197395, 1,
122.3782880298, 61.49901197395, 1,
122.0701166212, 61.96188297399, 1,
122.0701166212, 61.49901197395, 1
hotspot2 122.0701166212, 61.49901197395
hotspot2 121.9964501491, 61.49901197395
hotspot2 121.9964501491, 62.08711597665
hotspot2 122.0774832685, 62.08711597665
hotspot2 122.385654677, 61.62670052568
hotspot2 122.385654677, 62.08711597665
hotspot2 122.4605489237, 62.08711597665
hotspot2 122.4605489237, 61.49901197395
hotspot2 122.3782880298, 61.49901197395
hotspot2 122.0701166212, 61.96188297399
hotspot2 122.0701166212, 61.49901197395

pen 100
set fill "Air Space"
poly2_b{3} 5, 3, 0, 0,
0, 0, 1, 0, 0, 1,
120.5250813016, 62.44185892435, 1,
122.5250813016, 62.44185892435, 1,
122.5250813016, 60.44185892435, 1,
120.5250813016, 60.44185892435, 1,
120.5250813016, 62.44185892435, 1
hotspot2 120.5250813016, 62.44185892435
hotspot2 122.5250813016, 62.44185892435
hotspot2 122.5250813016, 60.44185892435
hotspot2 120.5250813016, 60.44185892435
hotspot2 120.5250813016, 62.44185892435

Sorry - Karl, your instructions were too much for me!

Hunter.
David Maudlin
Rockstar
Hunter:

The problem of the symbol not rotating around the center is due to the add2 command in the 7th line of your script. I tried saving some lines and a circle from the 2D Window as a library part, and even with the center of the symbol at the project origin, ArchiCAD added this add2 command. Your code indicates that you did not draw the symbol at the project origin, as some of the coordinates in the script should be "0".

To overcome this relocation problem, I drew the symbol with its center on the Project origin, the location of the User origin appears to be irrelevant. Now position the 2D Window and the 2D Script windows so they overlap a bit, use the Arrow Tool to select the symbol in the 2D Window and drag it into the 2D Script Window (if the Pet Palette appears, select the drag option). This will translate your symbol into code in the 2D Script without the add2 command, and the symbol should rotate around its center when activating the gs_follow_north option.

HTH

David
David Maudlin / Architect
www.davidmaudlin.com
Digital Architecture
AC27 USA • iMac 27" 4.0GHz Quad-core i7 OSX11 | 24 gb ram • MacBook Pro M3 Pro | 36 gb ram OSX14
Anonymous
Not applicable
David wrote:
Hunter:

To overcome this relocation problem, I drew the symbol with its center on the Project origin, the location of the User origin appears to be irrelevant. Now position the 2D Window and the 2D Script windows so they overlap a bit, use the Arrow Tool to select the symbol in the 2D Window and drag it into the 2D Script Window (if the Pet Palette appears, select the drag option). This will translate your symbol into code in the 2D Script without the add2 command, and the symbol should rotate around its center when activating the gs_follow_north option.

HTH

David
That's perfect David - thank you so much for your help!

Hunter.