Narelle Posted January 17, 2023 Share Posted January 17, 2023 HI Just trying to figure out how to remove the overarching class Heirarchy from the legend. (IE: only show 'Sandpit' as opposed to 'Element - Sandpit.' Is there a text line that can be added to the Field definition to do this? Quote Link to comment
michaelk Posted January 17, 2023 Share Posted January 17, 2023 What I've been doing is using the class description instead of the class name. 1 Quote Link to comment
Pat Stanford Posted January 17, 2023 Share Posted January 17, 2023 Use the Worksheet functions will get you what you want. They are not all available from the pulldown, so you will probably have to type it in. Check the third line for what you want. #C# and #WS_Class# return the same value. Substring returns a part of a string that is separated by a delimiter character. I am passing the worksheet version of the Class name to the Substring with a delimiter character of dash ('-'). The delimiter has to be separated by single quotes. Since I want the part that comes after the dash I tell it 2 for the section I am getting. If you use multiple levels of nested classes I don't know if this will get you everything except the first level or only the second level. I think it will only get you the second level between the multiple dashes. HTH. (My test file had two classes Element-Hello and Element-Goodbye). 2 Quote Link to comment
Pat Stanford Posted January 17, 2023 Share Posted January 17, 2023 Note that inside the #WS_ function you have to use the worksheet style reference to the class. You can't use the Data Tag/Graphic Legend #C# notation inside the worksheet functions. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.