<?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: Problems with the AutoCAD Table in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/problems-with-the-autocad-table/m-p/5504440#M41467</link>
    <description>I'am not sure what you want. i set Table Row styles like this&lt;BR /&gt;table.Rows[0].Style = "Title";&lt;BR /&gt;table.Rows[0].Height = TitleTextHeight + twiceTextMargin;&lt;BR /&gt;table.Rows[1].Style = "Header";&lt;BR /&gt;table.Rows[1].Height = HdrTextHeight + twiceTextMargin;&lt;BR /&gt;&lt;BR /&gt;...&lt;BR /&gt;rowNr++;&lt;BR /&gt;table.Rows[rowNr].Style = "Data";&lt;BR /&gt;Cell data1Cell = InitTableCell(table.Cells[rowNr, 0]);&lt;BR /&gt;data1Cell.Contents[0].TextHeight = DataTextHeight;&lt;BR /&gt;data1Cell.Contents[0].TextString = kvp.Key;&lt;BR /&gt;data1Cell.Alignment = CellAlignment.TopRight;&lt;BR /&gt;&lt;BR /&gt;...&lt;BR /&gt;public Cell InitTableCell(Cell cell)&lt;BR /&gt;{&lt;BR /&gt;cell.BackgroundColor = TabelBackgroundColor;&lt;BR /&gt;cell.Contents.Add();&lt;BR /&gt;cell.Borders.Left.Margin = TextMargin;&lt;BR /&gt;cell.Borders.Right.Margin = TextMargin;&lt;BR /&gt;cell.Borders.Top.Margin = TextMargin;&lt;BR /&gt;cell.Borders.Bottom.Margin = TextMargin;&lt;BR /&gt;&lt;BR /&gt;return cell;&lt;BR /&gt;}&lt;BR /&gt;</description>
    <pubDate>Thu, 12 Feb 2015 07:17:20 GMT</pubDate>
    <dc:creator>SENL1362</dc:creator>
    <dc:date>2015-02-12T07:17:20Z</dc:date>
    <item>
      <title>Problems with the AutoCAD Table</title>
      <link>https://forums.autodesk.com/t5/net-forum/problems-with-the-autocad-table/m-p/5494572#M41464</link>
      <description>&lt;UL&gt;&lt;LI&gt;I created a Table using a Tablestyle with a color “ColorMethod = ByAci, ColorIndex = 1” (red). In my Preview Control (via AcGsView) the Table lost its color, while it works correctly in the drawing. (Drawing with the Tablestyle is attached). Is this a bug or do I have to do something to get this working?&lt;/LI&gt;&lt;LI&gt;How do I create and access cell styles beside the normal Data/Title/Header. Some Methods allow to specify a string as CellStyle (e.G. &lt;EM&gt;TextHeight()&lt;/EM&gt;) while others only accept the RowType enum (e.G. &lt;EM&gt;TableStyle.BackgroundColor()&lt;/EM&gt;). So how do I &lt;EM&gt;set&lt;/EM&gt; and &lt;EM&gt;get&lt;/EM&gt; the Alignment(), Backgroundcolor(), Color(), etc of custom CellStyles?&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Wed, 04 Feb 2015 12:52:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/problems-with-the-autocad-table/m-p/5494572#M41464</guid>
      <dc:creator>Matti72</dc:creator>
      <dc:date>2015-02-04T12:52:28Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with the AutoCAD Table</title>
      <link>https://forums.autodesk.com/t5/net-forum/problems-with-the-autocad-table/m-p/5501449#M41465</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I do not reproduce the&amp;nbsp;first behavior using the BlockView .Net sample.&lt;/P&gt;
&lt;P&gt;The table appears with the assigned color as seen in the attached screenshot.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you please try it with the BlockView&amp;nbsp;sample ?&lt;/P&gt;
&lt;P&gt;&lt;A href="http://adndevblog.typepad.com/autocad/2014/04/graphic-changes-in-autocad-2015.html" target="_blank"&gt;http://adndevblog.typepad.com/autocad/2014/04/graphic-changes-in-autocad-2015.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For creating custom cell styles, please try using the COM API.&lt;/P&gt;
&lt;P&gt;You can find a VBA sample in the&amp;nbsp;documentation (acadauto.chm)&amp;nbsp;under "TableStyle object" topic.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Balaji&lt;/P&gt;</description>
      <pubDate>Tue, 10 Feb 2015 10:53:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/problems-with-the-autocad-table/m-p/5501449#M41465</guid>
      <dc:creator>Balaji_Ram</dc:creator>
      <dc:date>2015-02-10T10:53:14Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with the AutoCAD Table</title>
      <link>https://forums.autodesk.com/t5/net-forum/problems-with-the-autocad-table/m-p/5503072#M41466</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you for your answer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there really no way to access the custom table style with ObjectARX or .net? Do I really have to use the .com api?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The other problem was with the fill&amp;nbsp;color, as provided in the table style in the attached drawing. The border color works fine.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Feb 2015 13:08:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/problems-with-the-autocad-table/m-p/5503072#M41466</guid>
      <dc:creator>Matti72</dc:creator>
      <dc:date>2015-02-11T13:08:33Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with the AutoCAD Table</title>
      <link>https://forums.autodesk.com/t5/net-forum/problems-with-the-autocad-table/m-p/5504440#M41467</link>
      <description>I'am not sure what you want. i set Table Row styles like this&lt;BR /&gt;table.Rows[0].Style = "Title";&lt;BR /&gt;table.Rows[0].Height = TitleTextHeight + twiceTextMargin;&lt;BR /&gt;table.Rows[1].Style = "Header";&lt;BR /&gt;table.Rows[1].Height = HdrTextHeight + twiceTextMargin;&lt;BR /&gt;&lt;BR /&gt;...&lt;BR /&gt;rowNr++;&lt;BR /&gt;table.Rows[rowNr].Style = "Data";&lt;BR /&gt;Cell data1Cell = InitTableCell(table.Cells[rowNr, 0]);&lt;BR /&gt;data1Cell.Contents[0].TextHeight = DataTextHeight;&lt;BR /&gt;data1Cell.Contents[0].TextString = kvp.Key;&lt;BR /&gt;data1Cell.Alignment = CellAlignment.TopRight;&lt;BR /&gt;&lt;BR /&gt;...&lt;BR /&gt;public Cell InitTableCell(Cell cell)&lt;BR /&gt;{&lt;BR /&gt;cell.BackgroundColor = TabelBackgroundColor;&lt;BR /&gt;cell.Contents.Add();&lt;BR /&gt;cell.Borders.Left.Margin = TextMargin;&lt;BR /&gt;cell.Borders.Right.Margin = TextMargin;&lt;BR /&gt;cell.Borders.Top.Margin = TextMargin;&lt;BR /&gt;cell.Borders.Bottom.Margin = TextMargin;&lt;BR /&gt;&lt;BR /&gt;return cell;&lt;BR /&gt;}&lt;BR /&gt;</description>
      <pubDate>Thu, 12 Feb 2015 07:17:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/problems-with-the-autocad-table/m-p/5504440#M41467</guid>
      <dc:creator>SENL1362</dc:creator>
      <dc:date>2015-02-12T07:17:20Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with the AutoCAD Table</title>
      <link>https://forums.autodesk.com/t5/net-forum/problems-with-the-autocad-table/m-p/5506069#M41468</link>
      <description>&lt;P&gt;As Anton mentioned, it is possible to customize the cell style.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I had interpreted your query as creating a new cell style other than the Data, Header and Title already available.&lt;/P&gt;
&lt;P&gt;Just the way AutoCAD UI lets you create a new cell style (attached screenshot)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In that case, i do not find a non-COM way to do it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;About the&amp;nbsp;table fill color -&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes, i could reproduce the behavior in AutoCAD 2015 without any code. So,&amp;nbsp;i have reported this behavior to our engineering team.&lt;/P&gt;
&lt;P&gt;In "2d Wireframe", the fill color appears ok without masking the table text.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you please confirm if this behavior is the same as the one that you having with GsView in your project&amp;nbsp;?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;1. Start AutoCAD 2015&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;2. Open the attached drawing. In this drawing, the table style has been modified to include a fill color.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;3. Change Visual style to "Realistic" and click on the table and out.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;The fill color masks the table text.&amp;nbsp;Switching to "2d Wireframe" Visual style makes the table text reappear.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Balaji&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Feb 2015 09:20:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/problems-with-the-autocad-table/m-p/5506069#M41468</guid>
      <dc:creator>Balaji_Ram</dc:creator>
      <dc:date>2015-02-13T09:20:40Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with the AutoCAD Table</title>
      <link>https://forums.autodesk.com/t5/net-forum/problems-with-the-autocad-table/m-p/5511245#M41469</link>
      <description>&lt;P&gt;Thanks again for the answers.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;I had interpreted your query as creating a new cell style other than the Data, Header and Title already available.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That's exactly, what we want to do. So com seems to be the way.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The fill color behavior you describe is the problem we have. Thanks for the reporting to engineering.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Feb 2015 14:36:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/problems-with-the-autocad-table/m-p/5511245#M41469</guid>
      <dc:creator>Matti72</dc:creator>
      <dc:date>2015-02-18T14:36:32Z</dc:date>
    </item>
  </channel>
</rss>

