cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 
Design forum

Question about SYMB_MIRRORED ?

Nader Belal
Mentor
Hi there,

SYMB_MIRRORED is an Archicad Global Variable to indicate if the object have been mirrored.

My question, how to extract the mirror operation value ??

ie: was it mirrored on the X-axis, Y-axis, arbitrary axis .
A good friend of mine have once told me that I´m so brute that I´m capable of creating a GDL script capable of creating GDLs.
7 REPLIES 7

runxel
Ace
Moonlight wrote:
My question, how to extract the mirror operation value ??
You have SYMB_MIRRORED and SYMB_ROTANGLE.
If the rotation angle is 180° (and symb_mirrored is set of course) you can tell it was mirrored a long the x-axis. If no rotation angle is set the mirror axis was the y-axis.

But I don't think you can tell what the very last operation was, since there is no way to compare between states in GDL.
Mostly AC 26 on Mac | Author of SelfGDL | Developer of the GDL plugin for Sublime Text |
«Furthermore, I consider that Carth... yearly releases must be destroyed»

Nader Belal
Mentor
That's why I think there should be a Global variable that can tell us the values
A good friend of mine have once told me that I´m so brute that I´m capable of creating a GDL script capable of creating GDLs.

Barry Kelly
Moderator
I think you will find the object is always mirrored about the Y-axis when you look at it in the symbol 2D view of the script editor.
i.e. positive X becomes negative X.

Rotation of the object placed instance does not affect the mirroring, as it will always mirror along the original Y-axis of the object.

Barry.

One of the forum moderators.
Versions 6.5 to 25
Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), Windows 10
Dell Precision 3510 - i7 6820HQ @ 2.70GHz, 16GB RAM, AMD FirePro W5130M, Windows 10

Nader Belal
Mentor
@Barry Kelly

Is there a way to make the object quasi (self-aware) of the mirrored value ?

Like what happens with rotation and XY position ?
A good friend of mine have once told me that I´m so brute that I´m capable of creating a GDL script capable of creating GDLs.

Barry Kelly
Moderator
I”m not quite sure what you mean.
An object either is or isn’t mirrored.

You can always force an object not to mirror.
If it is mirrored you just MUL2 -1,1 in 2D and MULx -1 in 3D.


Barry.

One of the forum moderators.
Versions 6.5 to 25
Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), Windows 10
Dell Precision 3510 - i7 6820HQ @ 2.70GHz, 16GB RAM, AMD FirePro W5130M, Windows 10

Nader Belal
Mentor
Example,

What if the the correct form to prevent mirror is mul2 1, -1?
A good friend of mine have once told me that I´m so brute that I´m capable of creating a GDL script capable of creating GDLs.

Barry Kelly
Moderator
It is always mirrored in the x-axis (about the y-axis) so you only need to MUL the x value at the beginning of your script.

Barry.

One of the forum moderators.
Versions 6.5 to 25
Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), Windows 10
Dell Precision 3510 - i7 6820HQ @ 2.70GHz, 16GB RAM, AMD FirePro W5130M, Windows 10

Didn't find the answer? Start a new discussion

Still looking?

Browse more topics

Back to forum

See latest solutions

Accepted solutions

Start a new discussion!