2005-07-0110:26 PM - last edited on 2023-08-0711:59 AM by Doreena Deng
I am trying to get our Section Tool to default to a few things, like "Use element colors" and "Show on stories partially in range."
The story part works, the Use Element Colors does not, and I am getting the "No error encountered" response in the Report window, so I know the right loop is running, but nothing seems to be happening. This same structure is working for almost every other tool in the toolbox....
Yes, I know the reporting code is ugly, but I usually just copy/paste it in as needed to help me chase problems....
I think the useElemPens field is for "Use Cut Element's Own Pencolors" in the Cut Elements rolldown panel. I didn try it on AC9, but it seem works on AC81.
If you mean "Use Symbol Colors" checkbox in the Marker rolldown panel, I think you need use GetDefaultEx and ChangeDefaultEx. I guess it is a marker field ( like useObjPens of ObjectType ), so you will need set the elementMarker and maskMarker parameters of the ChangeDefaultEx function.
In playing with this a bit, it seems as though the API_CutPlaneType structure definition does not include any of the settings in the "Marker" pane of the Section Tool Settings menu, including which marker object to use, font size, and pen color.
I've been messing around with the GetDefaultEx functions, but they only seem to apply to a selected element, not setting the defaults of a selected tool (unless I misread that).