2021-03-08 11:53 AM - last edited on 2021-09-14 09:48 AM by Noemi Balogh
2021-09-28 12:39 AM
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.
2021-10-05 02:12 AM
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)
2021-10-05 03:43 AM
Bruce, could you post that fixed label? I can't understand how that fits into the script, and I don't know whether it is missing lines that should be obvious to anybody but me, or just different parameter or variable names in your label (I would try to fix a USA library label).
2021-10-05 04:06 AM - edited 2021-10-05 04:08 AM
I will try to post more info when I have some more time...
2021-10-05 12:12 PM
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)
ENDIF
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.