If you looked at the function in the docs, and
from that you weren't able to figure out that
the GetCellBackgroundColor requires arguments
that your code didn't supply, then you probably
should not be attempting to do any kind of
programming.
Sorry, I have no patience for this degree of
helpless-ness.
--
http://www.caddzone.com
AcadXTabs: MDI Document Tabs for AutoCAD 2008
Supporting AutoCAD 2000 through 2008
http://www.acadxtabs.com
"Nate Hunter" wrote in message news:5673881@discussion.autodesk.com...
dude relax! I have looked at the function in the docs. In fact, this exact
example I gave you worked perfectly in VBA but does not in .NET. This is
why I am asking the question. Not because I have not done my research. If
you are having a bad day just don't answer any posts!
"Tony Tanzillo" wrote in message
news:5665118@discussion.autodesk.com...
I thought my last post would give you a hint,
but if that didn't, and the painfully obvious error
message also doesn't, and you're not able to
do so little as look up the function in the docs
to find out what arguments it takes, then I don't
see how you are going to get much further after
you finally figure out how to get over this little
bump.
Open the docs and look up the function.
--
http://www.caddzone.com
AcadXTabs: MDI Document Tabs for AutoCAD 2008
Supporting AutoCAD 2000 through 2008
http://www.acadxtabs.com
"Nate Hunter" wrote in message
news:5663782@discussion.autodesk.com...
I am still having problems with this. Can anyone help? My errors and code
are below.
Nate
"Tony Tanzillo" wrote in message
news:5655187@discussion.autodesk.com...
The name of the function is GetCellBackgroundColor.
Doesn't that mean that you need to tell it
what cell background color you want?
--
http://www.caddzone.com
AcadXTabs: MDI Document Tabs for AutoCAD 2008
Supporting AutoCAD 2000 through 2008
http://www.acadxtabs.com
"Nate Hunter" wrote in message
news:5653661@discussion.autodesk.com...
So I am not following. I should:
newColor = myTable.GetCellBackgroundColor
newColor.SetRGB (204,204,204)
myTable.SetCellBackgroundColor (y, x, newColor)
If I do this the first line above will error out. Below is the error:
Error 1 Argument not specified for parameter 'col' of 'Public Function
GetCellBackgroundColor(row As Integer, col As Integer) As
Autodesk.AutoCAD.Interop.Common.AcadAcCmColor'.
Any other Ideas?
"Tony Tanzillo" wrote in message
news:5653126@discussion.autodesk.com...
Can't tell you why creation of the COM object fails, but
you can just use the existing AcadAcCmColor object that's
returned by calling GetCellBackgroundColor, rather than
creating a new instance. Call that method to get the color,
set its RGB, and then pass it to SetCellBackgroundColor.
--
http://www.caddzone.com
AcadXTabs: MDI Document Tabs for AutoCAD 2008
Supporting AutoCAD 2000 through 2008
http://www.acadxtabs.com
"Nate Hunter" wrote in message
news:5653007@discussion.autodesk.com...
I am running into problems with setting the cell background color in a
table. Here is what I am trying to do which worked in VBA but does not in
VB.net. What can I do to set the background color of a cell. I should also
tell you I need everyother cell shaded a different color. Thanks.
Dim newColor As AcadAcCmColor
newColor = New AcadAcCmColor
newColor.SetRGB(204, 204, 204)
myTable.SetCellBackgroundColor( , x, newColor)
The error I recieve is: Retrieving the COM class factory for component with
CLSID {C8C18F89-794D-466B-8B97-95634D9890EF} failed due to the following
error: 8007007e.