Home › Forums › Problems and solutions in GDL › Informations from the environment › Determining which tool and setting are selected
Tagged: section elevation marker
- This topic has 5 replies, 3 voices, and was last updated 5 years ago by
Geoff Briggs.
-
AuthorPosts
-
-
February 10, 2016 at 20:52 #2236
Geoff Briggs
ParticipantHello,
I have a marker object of the Section-Elevation subtype. Can I determine within the script if the active tool is the Section Tool vs the Elevation tool? And can I determine the status of the Marker Head in the Middle / Marker Head at the Ends setting?Thanks.
Geoff Briggs
DeForest Architects
Seattle, USA -
February 10, 2016 at 22:00 #2237
Gergely Fehér
KeymasterLinking to tools is based on subtypes only. Elements under the “Section Marker” can be used with the section tool, and elements in the “Elevation Marker” can be used with the elevation tool. Section-Elevation marker subtype is the common ancestor of them, and as in early ARCHICAD versions it was one tool the elements of this subtype appears in both of the new tools.
To determine which of them is used, I would make 2 copies of the object, save them as different section and elevation markers and save the original item as a macro. Both of the new elements should simply call the common macro, with adding one more parameter: the information about the callers subtypeGergely Fehér
Team Leader, Library Team
GRAPHISOFT SE -
February 10, 2016 at 22:08 #2238
Geoff Briggs
ParticipantThanks Gergely,
that makes perfect sense.Can you please help with the second part of my question regarding the Marker Head setting. I want to adjust the behavior of the script based on whether the marker head is in the middle or the ends. I have not found a request that returns the state of that setting. Thanks.
Geoff Briggs
DeForest Architects
Seattle, USA -
February 20, 2016 at 01:49 #2282
Geoff Briggs
ParticipantI still need to find out if I can determine the marker head end/middle setting and use that in my script. Thanks.
Attachments:
Geoff Briggs
DeForest Architects
Seattle, USA-
February 22, 2016 at 14:32 #2285
Dominika Bobály
KeymasterIt’s not passed down to GDL in any form, so there is no way to use it as a condition in your script.
Dominika Bobály
Library Developer, Library Team
GRAPHISOFT SE
-
February 22, 2016 at 18:04 #2286
Geoff Briggs
ParticipantOK, thanks.
Geoff Briggs
DeForest Architects
Seattle, USA
-
-
AuthorPosts
- The forum ‘Informations from the environment’ is closed to new topics and replies.