- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I see the problem. When you edit the note, using the Edit Hole Note dialog, and you use your [Enter / Return] keyboard key to go to the next line of text (so your cursor is waiting on the next line), it is putting a "<Br/>" ('break line' in XML) at that point into the FormattedText. Then whatever additional text you may or may not type on that new line. My code was getting rid of the text after that additional "<Br/>", but not that last "<Br/>".
So, it sounds like we need to add some additional checks in there.
- We need to check if "<Br/>" is the last text in the FormattedText, if so, delete it.
- It sounds like we may need to establish a list of String values that are OK to be at the end.
- "THRU" being one of those String values
- If there is text after the last ">" character, then also check if there is a "<Br/>" just before it.
- If that is the scenario, delete both? (Because "THRU" will never be right after a "<Br/>", right?)
- Will there ever be any text after the last "<Br/>" that is not a 'manual entry'?
As for the 'extra' requests, it seems to me that there are too many possibilities for regular text being between other legitimate "<...>" links within this FormattedText. If you go into your Style and Standard Editor dialog, then select any of your Dimension styles, then select the Notes and Leaders tab (on the far right), then make sure the radio button for "Hole Note Settings" (top left icon) is selected, then you select the drop-down list (right above the text box) that defaults to "Thru", you will see there is an extremely long list of possible scenarios. And each of those scenarios can potentially be customized. I personally don't want to tackle all those possible scenarios, where there may be legitimate text between two legitimate links in the FormattedText.
Wesley Crihfield
(Not an Autodesk Employee)