Home › Forums › Problems and solutions in GDL › Documentation elements, text handling › Section Marker Tail
Tagged: section marker, tail, ends
- This topic has 9 replies, 3 voices, and was last updated 6 years, 10 months ago by Bruce Walker.
-
AuthorPosts
-
-
January 27, 2018 at 08:05 #3765Bruce WalkerParticipant
Can someone point me in the right direction to figure out how to test which end of the section line is being drawn?
I want to create a section marker that will put a ‘tail’ on one end, instead of the head. I know it can be done, as I’ve seen a couple of examples of it in action – unfortunately I am not able to get my hands on these to have a look at the script (and GS doesn’t have a part that does this). I can’t find anything in the GDL reference guide, or the GDL Cookbook.
Any clues?
Cheers,
www.brucepwalker.com
https://www.mindmeister.com/65450406AC20 6005 AUS Full & AC 21 3009 NZE Full | Win 10 Pro 64 | Intel i7-7700HQ 2.80GHz | 16 Gb RAM
NVIDIA GeForce GTX 1060 8Mb -
January 27, 2018 at 13:23 #3766James MurrayParticipant
A section marker is drawn twice — the second time it is mirrored, and the SYMB_MIRRORED global is 1. By testing this global you can draw the head and tail once each. Then I have a checkbox parameter to flip the head and tail if desired.
James M
-
January 28, 2018 at 05:27 #3767Bruce WalkerParticipant
Thanks – this is exactly what I’m after. Thanks for that.
www.brucepwalker.com
https://www.mindmeister.com/65450406AC20 6005 AUS Full & AC 21 3009 NZE Full | Win 10 Pro 64 | Intel i7-7700HQ 2.80GHz | 16 Gb RAM
NVIDIA GeForce GTX 1060 8Mb -
January 28, 2018 at 20:25 #3768Bruce WalkerParticipant
One more question: how do you hide the part of the section line that crosses the head (see image)? I’ve had a look at the GS part, but nothing stands out.
Attachments:
www.brucepwalker.com
https://www.mindmeister.com/65450406AC20 6005 AUS Full & AC 21 3009 NZE Full | Win 10 Pro 64 | Intel i7-7700HQ 2.80GHz | 16 Gb RAM
NVIDIA GeForce GTX 1060 8Mb -
January 31, 2018 at 08:12 #3789Bruce WalkerParticipant
Can someone from GS help me here? The Built-in Section Marker does this, but I can’t figure out how.
www.brucepwalker.com
https://www.mindmeister.com/65450406AC20 6005 AUS Full & AC 21 3009 NZE Full | Win 10 Pro 64 | Intel i7-7700HQ 2.80GHz | 16 Gb RAM
NVIDIA GeForce GTX 1060 8Mb -
February 6, 2018 at 20:12 #3799Bruce WalkerParticipant
I would have thought this was an easy one.
I have compromised, and inserted an ADD2 command to move the head away from the section line end. Not my preference, as this means the marker requires even more space on the sheet, but I can’t figure out how the Built-In Section Marker achieves this.
www.brucepwalker.com
https://www.mindmeister.com/65450406AC20 6005 AUS Full & AC 21 3009 NZE Full | Win 10 Pro 64 | Intel i7-7700HQ 2.80GHz | 16 Gb RAM
NVIDIA GeForce GTX 1060 8Mb -
February 6, 2018 at 21:03 #3800James MurrayParticipant
I have mine offset from the origin — the line meets the corner of the triangle. The built-in one uses a masking fill inside the circle. (It’s the window background color by default, making it impossible to see).
James M
-
February 6, 2018 at 22:01 #3801Bruce WalkerParticipant
I don’t see how this works, as:
1. The section line is drawn in front of the marker head, so masking fills have no effect (not that I can figure)
2. Even when the masking fill is turned off, the section line goes to the edge of the marker.?? Confused.
Attachments:
www.brucepwalker.com
https://www.mindmeister.com/65450406AC20 6005 AUS Full & AC 21 3009 NZE Full | Win 10 Pro 64 | Intel i7-7700HQ 2.80GHz | 16 Gb RAM
NVIDIA GeForce GTX 1060 8Mb -
February 19, 2018 at 11:19 #3822Gergely FehérKeymaster
You need to set/use the AC_MarkerSize parameter correctly, it will shorten the line to the proper length.
Gergely Fehér
Team Leader, Library Team
GRAPHISOFT SE -
February 22, 2018 at 19:56 #3839Bruce WalkerParticipant
Thanks Gergely – very helpful. I didn’t think to check the template parameters for a logical setting.
Unfortunately, it turns out that the AC_SectionLineStartOffset parameter will set the start for both ends – I can’t test with a SYMB_MIRRORED to shorten one end and not the other.
Never mind – good to know! Thanks again for your help.
www.brucepwalker.com
https://www.mindmeister.com/65450406AC20 6005 AUS Full & AC 21 3009 NZE Full | Win 10 Pro 64 | Intel i7-7700HQ 2.80GHz | 16 Gb RAM
NVIDIA GeForce GTX 1060 8Mb
-
-
AuthorPosts
- The forum ‘Documentation elements, text handling’ is closed to new topics and replies.