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?
Linking 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 subtype
Team Leader, Library Team GRAPHISOFT SE
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.