The
SYMB_MIRRORED global variable contains whether an object is mirrored. You don't even need to code a "mirror" parameter, Archicad's mirror command will flip this boolean.
stTitle = "As"
if SYMB_MIRRORED then stTitle = "Opp"
text2 0,0, stTitle
You will have to handle the position of the text, the easiest way is to change the text anchor when mirrored using
DEFINE STYLE and
SET STYLE.
Btw. in Archicad you can't plot a drawing mirrored, the model has to be mirrored. Modules can be created from the model, which can be placed in their original or mirrored orientation. SYMB_MIRRORED will also contain the mirrored state of the placed module.
Péter Baksa
Software Engineer, Library as a Platform
Graphisoft SE, Budapest