Object Name List

Object Name List

Anonymous
適用対象外
4,854件の閲覧回数
3件の返信
メッセージ1/4

Object Name List

Anonymous
適用対象外
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 件のいいね
4,855件の閲覧回数
3件の返信
返信 (3)
メッセージ2/4

Anonymous
適用対象外
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 件のいいね
メッセージ3/4

Anonymous
適用対象外
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 件のいいね
メッセージ4/4

Anonymous
適用対象外
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 件のいいね