Sparx Systems Forum

Enterprise Architect => General Board => Topic started by: BCGoitcwoodard on April 20, 2024, 03:37:17 am

Title: How to prevent Sparx from inserting HTML markup codes in text (e.g., Notes)?
Post by: BCGoitcwoodard on April 20, 2024, 03:37:17 am
I retrieve object properties like column length, etc., and especially Notes from SQL Server repository for a user walkthrough. The Notes contain the definitions obtained from the users.  But I get things like this "<font color="#424242">The medication given to the patient</font>."
How can I set/reset all fonts (typeface, size, color, etc.) for all objects in the entire model? It's a bit tedious to manually change these for every "offending" piece of text in the thousands of columns in the model!

I feel like I've tried all of the options in the EA UI.

Thank you in advance,
CCW
Title: Re: How to prevent Sparx from inserting HTML markup codes in text (e.g., Notes)?
Post by: Geert Bellekens on April 20, 2024, 07:34:17 am
There is a method on the Repository object to translate between the internal format and plain TXT.

You could write a little script to get all elements with formatted notes, and replace them by the plain text.

Geert