BIM Coordinator Program (INT) April 22, 2024
Find the next step in your career as a Graphisoft Certified BIM Coordinator!
Libraries & objects
About Archicad and BIMcloud libraries, their management and migration, objects and other library parts, etc.

north object

Anonymous
Not applicable
Hi!
I would like to create north object that follows north set in project preferences, but when rotating to do that around specific point/hotspot.

I know that syntax for that is rot2 GLOB_NORTH_DIR-90
But how can I define a hotspot that is the center of rotation?
Is it possible to add text to this hotspot?
8 REPLIES 8
Karl Ottenstein
Moderator
Just checking that none of the various 2D choices for the existing North object are satisfactory? Since it has an option to follow project north already...
One of the forum moderators
AC 27 USA and earlier   •   macOS Ventura 13.6.6, MacBook Pro M2 Max 12CPU/30GPU cores, 32GB
Anonymous
Not applicable
Yes, none of the existing options are not satisfactory.
Barry Kelly
Moderator
Assuming there are no transformations before your 'rot2 GLOB_NORTH_DIR-90', you need move (ADD2) your elements so they sit at the specific point you want to rotate about.

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
Anonymous
Not applicable
This is my code.
I have tried with add2 but I don't know how to use it.
JGoode
Advocate
I think you can remove all of the ADD2's in your script as long as you saved the object with the rotation point at the project origin.
ArchiCAD 23

Windows 10
JGoode
Advocate
the add2 command works like so,

add2 0, 1 = move 0mm along x axis and 1000mm along y axis.
add2 1, 1 = move 1000mm along x axis and 1000mm along y axis.
add2 0.5, 0.5 = move 500mm along x axis and 500mm along y axis
ArchiCAD 23

Windows 10
Lingwisyer
Guru
Or if for some reason you need those transformations, place them before your glob_north. Though given that it is an automatically generated script, I guess it is not intentional. They are the culprit of your rotation issue. You have set a rotation point, then moved the center of your object off that point.



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
Adjust the first ADD2 command in your script so that the following fill, hotspots and lines are positioned on the origin at the point that you want to rotate around - you can see this in the 2D preview.
The rotation centre point is at the origin so you need to position your elements in relation to this rotation point.

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
Learn and get certified!