There's been quite a bit of confusion here as a result
of people posting questions but not mentioning what
release of AutoCAD they're working with.
The differences are significant between 2005 and
2006 (and I'm finding that in 2007/VS2005, there
are massive problems with code that worked fine
in 2006/VS2003).
So, for starters, what release of AutoCAD is that ?
--
http://www.caddzone.com
AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006/2007
http://www.acadxtabs.com
wrote in message news:5245736@discussion.autodesk.com...
anybody knows why entity.get_layer() cannot be used explicity?
I am trying to get an entity's layer name. but when I use ent.get_layer(), the following error appear:
'Autodesk.AutoCAD.DatabaseServices.Entity.Layer.get': cannot explicitly call operator or accessor
and if I used ent.Layer as I saw in other topics in this discussions, it seems that it doesn't defined in my project. it is not appearing in ent properties list and it gives this error:
'Autodesk.AutoCAD.DatabaseServices.Entity' does not contain a definition for 'layer'
BTW, I am using VS2003, C#.
thanks in advance
Noora