Minimize Problem
Detect the global north direction, set in the 3D view settings dialog, and turn local coordinate sytem to north. Handy for north symbols. See Graphisoft tip of the month.

Minimize 2D Script

!»» Flip, if object is mirrored
MUL2 1, 1-2*SYMB_MIRRORED

!»» Rotate to project north is Y-direction (90° to X)
ROT2 GLOB_NORTH_DIR + 180*SYMB_MIRRORED - SYMB_ROTANGLE - 90


Minimize 3D Script

!»» Flip, if object is mirrored
MULY 1-2*SYMB_MIRRORED

!»» Rotate to project north is Y-direction (90° to X)
ROTZ GLOB_NORTH_DIR + 180*SYMB_MIRRORED - SYMB_ROTANGLE - 90