<?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: Table export from .net AutoCAD command, exports random characters in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/table-export-from-net-autocad-command-exports-random-characters/m-p/13092213#M2256</link>
    <description>&lt;P&gt;maybe use FormatOption.ForEditing | FormatOption.IgnoreMtextFormat, or just FormatOption.IgnoreMtextFormat&lt;/P&gt;</description>
    <pubDate>Thu, 17 Oct 2024 23:48:06 GMT</pubDate>
    <dc:creator>daniel_cadext</dc:creator>
    <dc:date>2024-10-17T23:48:06Z</dc:date>
    <item>
      <title>Table export from .net AutoCAD command, exports random characters</title>
      <link>https://forums.autodesk.com/t5/net-forum/table-export-from-net-autocad-command-exports-random-characters/m-p/13091972#M2254</link>
      <description>&lt;P&gt;Hi All, I have a .NET plugin, which is executed if user types the command. This .NET command exports the table rows and columns and put in a .csv, after that i convert into excel and upload in some external system.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below .NET code exports for me the table rows and column, but it put some random characters. As you see below code, i had to hardcode so many things and my code is getting messier, as random characters keep coming.&amp;nbsp; Can you please tell me how to ensure i can avoid those ? I understand newline characters users had put and i had no choice to replace newline, but for others i am surprised why the API's give this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;Autodesk.AutoCAD.DatabaseServices.Table tb = (Autodesk.AutoCAD.DatabaseServices.Table)tr.GetObject(per.ObjectId, OpenMode.ForRead);



if (tb != null)
{
for (int i = 0; i &amp;lt; tb.Rows.Count; i++)
{
var s = "";
var z = "";
for (int j = 0; j &amp;lt; tb.Columns.Count; j++)
{
// Get the contents of our cell
var c = tb.Cells[i, j];
string pattern = @"{\\W\d.\d\d;";
string newstring = Regex.Replace(c.GetTextString(FormatOption.ForEditing), pattern, "");
string pattern1 = @"{\\W\d.\d;";
string newstring1 = Regex.Replace(newstring, pattern1, "");
string removalOfNewLine = Regex.Replace(newstring1, @"[\r\n]+", "");
z = removalOfNewLine.Replace("\\A1", "").Replace("#{\\H1x;", "#").Replace("}", "").Replace(@"{\H0.91667x;", "").Replace(@"{\H1x;\W0.7;", "").Replace(@"\H1x;", "").Replace(";", "");
var y = z + ";";
s = s + y;
}
sb.Append(s);
sb.AppendLine();
}
}&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 05 Feb 2026 11:03:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/table-export-from-net-autocad-command-exports-random-characters/m-p/13091972#M2254</guid>
      <dc:creator>krishnakumar.arunachalam</dc:creator>
      <dc:date>2026-02-05T11:03:02Z</dc:date>
    </item>
    <item>
      <title>Re: Table export from .net AutoCAD command, exports random characters</title>
      <link>https://forums.autodesk.com/t5/net-forum/table-export-from-net-autocad-command-exports-random-characters/m-p/13091977#M2255</link>
      <description>&lt;P&gt;Try reposting or editing your original post, and use the insert code button on the toolbar to insert the code.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2024 20:59:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/table-export-from-net-autocad-command-exports-random-characters/m-p/13091977#M2255</guid>
      <dc:creator>ActivistInvestor</dc:creator>
      <dc:date>2024-10-17T20:59:08Z</dc:date>
    </item>
    <item>
      <title>Re: Table export from .net AutoCAD command, exports random characters</title>
      <link>https://forums.autodesk.com/t5/net-forum/table-export-from-net-autocad-command-exports-random-characters/m-p/13092213#M2256</link>
      <description>&lt;P&gt;maybe use FormatOption.ForEditing | FormatOption.IgnoreMtextFormat, or just FormatOption.IgnoreMtextFormat&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2024 23:48:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/table-export-from-net-autocad-command-exports-random-characters/m-p/13092213#M2256</guid>
      <dc:creator>daniel_cadext</dc:creator>
      <dc:date>2024-10-17T23:48:06Z</dc:date>
    </item>
    <item>
      <title>Re: Table export from .net AutoCAD command, exports random characters</title>
      <link>https://forums.autodesk.com/t5/net-forum/table-export-from-net-autocad-command-exports-random-characters/m-p/14005717#M86526</link>
      <description>&lt;P&gt;Done&lt;/P&gt;</description>
      <pubDate>Thu, 05 Feb 2026 11:03:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/table-export-from-net-autocad-command-exports-random-characters/m-p/14005717#M86526</guid>
      <dc:creator>krishnakumar.arunachalam</dc:creator>
      <dc:date>2026-02-05T11:03:12Z</dc:date>
    </item>
  </channel>
</rss>

