Object Name List

Object Name List

Anonymous
Not applicable
4,847 Views
3 Replies
Message 1 of 4

Object Name List

Anonymous
Not applicable
Does anyone have a list of the text returned by a call to the
ObjectName property of all of the AutoCAD Entities?

I admit to being lazy and not wanting to create this list.

An example is BlockReference Object - "AcDbBlockReference"

Also, is just me or are the help files out of date when they refer to
an "EntityName" property for the AcadObject Object?

Phil Custer, P.E.
custer@landfillgas.com
0 Likes
4,848 Views
3 Replies
Replies (3)
Message 2 of 4

Anonymous
Not applicable
I can't help with the first....I'm lazy, too. 😉

For the entityname thing, I can't give you a good, full, technical
explanation, but the short answer is no. One of the geekier-than-me guys
will be along shortly with a better answer, probably.

; "P.E." wrote in message
news:5210734@discussion.autodesk.com...
Does anyone have a list of the text returned by a call to the
ObjectName property of all of the AutoCAD Entities?

I admit to being lazy and not wanting to create this list.

An example is BlockReference Object - "AcDbBlockReference"

Also, is just me or are the help files out of date when they refer to
an "EntityName" property for the AcadObject Object?

Phil Custer, P.E.
custer@landfillgas.com
0 Likes
Message 3 of 4

Anonymous
Not applicable
They're all going to be "AcDb" + the entity name [i.e. Line, Circle, etc.]


; "P.E." wrote in message
news:5210734@discussion.autodesk.com...
Does anyone have a list of the text returned by a call to the
ObjectName property of all of the AutoCAD Entities?

I admit to being lazy and not wanting to create this list.

An example is BlockReference Object - "AcDbBlockReference"

Also, is just me or are the help files out of date when they refer to
an "EntityName" property for the AcadObject Object?

Phil Custer, P.E.
custer@landfillgas.com
0 Likes
Message 4 of 4

Anonymous
Not applicable
No one can give you a list of all possible values, because
custom objects that are not 'built-in' are unknown to the
runtime system, until they're loaded.

Perhaps more importantly, if you are using this property
as a means of discovering what type of entity you are
dealing with, you are probably going about it the wrong
way.

Typically, you would use TypeOf() is ClassName

For example, where MyEntity is any AcadObject,

If TypeOf(MyEntity) is AcadBlockReference then
Debug.Print "This is a block reference"
Else If TypeOf(MyEntity) is AcadCircle then
Debug.Print "This is a circle"
Else
Debug.Print "Sorry, I don't know what this is"
End If


--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006/2007
http://www.acadxtabs.com

; "P.E." wrote in message news:5210734@discussion.autodesk.com...
Does anyone have a list of the text returned by a call to the
ObjectName property of all of the AutoCAD Entities?

I admit to being lazy and not wanting to create this list.

An example is BlockReference Object - "AcDbBlockReference"

Also, is just me or are the help files out of date when they refer to
an "EntityName" property for the AcadObject Object?

Phil Custer, P.E.
custer@landfillgas.com
0 Likes