<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Adding a hidden flag to mtext objects in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/adding-a-hidden-flag-to-mtext-objects/m-p/13612878#M136</link>
    <description>&lt;P&gt;That's great advice. Will give that a try. Thanks&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 04 May 2025 10:21:10 GMT</pubDate>
    <dc:creator>jnoordzij</dc:creator>
    <dc:date>2025-05-04T10:21:10Z</dc:date>
    <item>
      <title>Adding a hidden flag to mtext objects</title>
      <link>https://forums.autodesk.com/t5/net-forum/adding-a-hidden-flag-to-mtext-objects/m-p/13612848#M134</link>
      <description>&lt;P&gt;I'm developing a tool that processes mtext objects. I would like to add a invisible&amp;nbsp;flag to the mtext object that indicates that the object was processed. I was thinking about either setting a hidden parameter, or adding some non printable character to the content string. Do you have any advice on possible solutions?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Edit : I'm currently thinking along the lines of adding an invisible character like the 'zero width space' character&amp;nbsp;&lt;A href="https://unicode-explorer.com/c/200B" target="_blank" rel="noopener"&gt;(Link). &lt;/A&gt;The presence of this&amp;nbsp; character could indicate that the object has been processed. Only this allows a risk of the user editing the mtext text content and the visible character might be deleted.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm looking for a solution that is as risk free as possible. But all&amp;nbsp; suggestions are welcome. Also if you know more non printable characters that I could use for this case, that would be helpful advise.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance !&lt;/P&gt;</description>
      <pubDate>Sun, 04 May 2025 09:51:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/adding-a-hidden-flag-to-mtext-objects/m-p/13612848#M134</guid>
      <dc:creator>jnoordzij</dc:creator>
      <dc:date>2025-05-04T09:51:39Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a hidden flag to mtext objects</title>
      <link>https://forums.autodesk.com/t5/net-forum/adding-a-hidden-flag-to-mtext-objects/m-p/13612863#M135</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think the simplest robust way should be using extended data (Xdata).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="csharp"&gt;static string appName = "PROCESSED";

static void AddProcessedFlag(DBObject dbObject, Transaction tr)
{
    var db = dbObject.Database;
    var regAppTable = (RegAppTable)tr.GetObject(db.RegAppTableId, OpenMode.ForRead);
    if (!regAppTable.Has(appName))
    {
        regAppTable.UpgradeOpen();
        var regApp = new RegAppTableRecord();
        regApp.Name = appName;
        regAppTable.Add(regApp);
        tr.AddNewlyCreatedDBObject(regApp, true);
    }

    if (!dbObject.IsWriteEnabled)
        tr.GetObject(dbObject.ObjectId, OpenMode.ForWrite);
    dbObject.XData = new ResultBuffer(new TypedValue(1001, appName), new TypedValue(1070, 1));
}

static bool IsProcessed(DBObject dbObject) =&amp;gt;
    dbObject.GetXDataForApplication(appName) != null;&lt;/LI-CODE&gt;</description>
      <pubDate>Sun, 04 May 2025 09:56:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/adding-a-hidden-flag-to-mtext-objects/m-p/13612863#M135</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2025-05-04T09:56:16Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a hidden flag to mtext objects</title>
      <link>https://forums.autodesk.com/t5/net-forum/adding-a-hidden-flag-to-mtext-objects/m-p/13612878#M136</link>
      <description>&lt;P&gt;That's great advice. Will give that a try. Thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 04 May 2025 10:21:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/adding-a-hidden-flag-to-mtext-objects/m-p/13612878#M136</guid>
      <dc:creator>jnoordzij</dc:creator>
      <dc:date>2025-05-04T10:21:10Z</dc:date>
    </item>
  </channel>
</rss>

