abbrechen
Suchergebnisse werden angezeigt für 
Stattdessen suchen nach 
Meintest du: 
abbrechen
Suchergebnisse werden angezeigt für 
Stattdessen suchen nach 
Meintest du: 
Programmierung
Alles über Programmierung in GDL und Python

eigener Nordpfeil

TinaS
Newcomer

Hallo zusammen

In Archicad 27 bekomme ich das Erstellen eines eigenen Nordpfeiles nicht wie bisher hin; GDL sichern als Objekt, Paramter erstellen / Parameterskript: 

mirror = not(SYMB_MIRRORED) - SYMB_MIRRORED
if gs_follow_north then
mul2 1, mirror !-1/1
rot2 GLOB_NORTH_DIR + 180*SYMB_MIRRORED - SYMB_ROTANGLE - 90
endif
HOTSPOT2 0,0,0

line2 0,0,0,a
line2 -a/4,0,0,a
line2 a/4,0,0,a

 

 Im 2D-Skript ergänzt:

! --- Oriented View ------------------------------ [
paperToModel = GLOB_SCALE/1000
angleViewRot = 0
rrr = REQUEST ("View_Rotangle", "", angleViewRot)
totalRotate = (SYMB_ROTANGLE + angleViewRot + gs_follow_north*(GLOB_NORTH_DIR - SYMB_ROTANGLE - 90)) MOD 360
if totalRotate < eps then totalRotate = totalRotate + 360
 
! --- Oriented View ------------------------------ ]
 
 
if gs_follow_north & GLOB_PREVIEW_MODE <> 2 then
mul2 1, mirror !-1/1
rot2 GLOB_NORTH_DIR + 180*SYMB_MIRRORED - SYMB_ROTANGLE - 90
endif
 
unID=1
HOTSPOT2 0,0,unID : unID=unID+1
 
textAlignment = 8

Das GDL will sich allerdings nicht mit der Nordrichtung drehen

 

Operating system used: Windows 11

0 ANTWORTEN 0

Setup info provided by author