Peter wrote:I have used this in my labels and they work perfectly with hotlinked modules in any position
SYMB_MIRRORED combines hotlink mirroring and element mirroring. As a result, it doesn't matter if an object is shown via a hotlink or placed directly into the plan.
Do you need only one component of the mirroring?
Hi all, I cant remember exactly how I got it to work and I don't have time to look into it right now but I will play around with it later this week. From memory I used the the wall_direction parameter in conjunction with symb_mirrored.
Sorry @Bruce I didn't see your question earlier, I must have missed the notification some how. I will get a solution for you ASAP as I know I did get it working.
I used a user-set parameter (hotlink_use) combined with the WALL_FLIPPED AC parameter to get the label to behave correctly:
flip = 1
IF hotlink_use & WALL_FLIPPED THEN flip = NOT(flip)
So, as stated earlier, what you need to do is add a boolean parameter that the user sets. I have called this "hotlink_use" with the description of "Flip in mirrored hotlink". Default OFF.
With a wall label, you also will probably have a parameter already where the user can choose which side of the wall the label appears. In my part, this is a length parameter is called "flipmark1" (forgive the naming...I inherited the part), and can have a positive or negative value (a hard-coded distance for the label).
In the 2D script, I have a flag variable to use in my ADD2 statements depending on whether the label should be flipped or not. This is named 'flip'. I then run a series of tests to offset the label to the correct side of the wall.
In the below sample script, "hdepth" is the offset Y coordinate of the label.
flip = (flipmark1 >= 0) ! Set flip to 1 or 0
IF hotlink_use & WALL_FLIPPED THEN
flip = NOT(flip) ! Adjust for mirrored hotlinks (selected by user)
flip = flip-1*NOT(flip) ! change 0 and 1 to -1 or 1
hdepth = A*(GLOB_SCALE/100) * flip
ADD2 0, hdepth
There will be more to your script, but this is the fundamentals of the transformations I've used. I hope this has helped.