Author Topic: Table Margin - 2011  (Read 2177 times)

0 Members and 1 Guest are viewing this topic.

Dale Bartlett

  • Mosquito
  • Posts: 17
Table Margin - 2011
« on: June 07, 2011, 02:35:20 AM »
Hi All,
AutoCAD 2011, VS 2010, C#
When building my table and attempting to set horizontal and vertical margins with:
tb.HorizontalCellMargin = ..
I get the message:
'Autodesk.AutoCAD.DatabaseServices.Table.HorizontalCellMargin' is obsolete: 'Use Table.Cells[row, column].HorizontalLine.Margin instead.'
I know this is one of the API changes, but when I attempt to use:
tb.Cells[i, 0].HorizontalLine.Margin = ..
I get a message:
'Autodesk.AutoCAD.DatabaseServices.Cell' does not contain a definition for 'HorizontalLine' and no extension method 'HorizontalLine' accepting a first argument of type 'Autodesk.AutoCAD.DatabaseServices.Cell' could be found'
The first process works but is obsolete. Any suggestions? 
Thanks, Dale

Jeff_M

  • King Gator
  • Posts: 4099
  • C3D user & customizer
Re: Table Margin - 2011
« Reply #1 on: June 07, 2011, 10:55:41 AM »
I still get the same thing with 2012. So until they actually enable the suggested one, keep doing what you're doing.

Dale Bartlett

  • Mosquito
  • Posts: 17
Re: Table Margin - 2011
« Reply #2 on: June 07, 2011, 12:25:21 PM »
Thanks, good to know I'm not losing it...