I'm sorry I should have been a little more clear, VBA contains certain "hidden commands" that do not show up in the object browser and unless you are familiar with it you wouldn't be able to locate them. The commands still work if you type the proper spelling in and are still recognized by VBA. There are a bunch of them but color is one that comes to mind. (I don't program full time, so I don't get a lot of chance to brush up on my skills very often due to being very busy at work).Originally Posted by Ed Jobe
Public Function CreateLayer1(LayerName As String, iColor As Integer)
Dim oLayer As AcadLayer
Set oLayer = ThisDrawing.Layers.Add(LayerName)
oLayer.color = iColor
End Function
In this example when you type "oLayer.c " you would expect that the object browser would pop up with a sample of all the c list however color does not pop up. I know there are more commands like this even though I fail to remember which they are at the moment. I Would just like AutoCad/VBA to fix these little hidden commands so that the object browser would work properly. Sorry again for any confusion.