.NET

.NET

Reply
Distinguished Contributor
junoj
Posts: 116
Registered: ‎02-26-2009
Message 1 of 4 (132 Views)

Need some help pulling the property out of objects.

132 Views, 3 Replies
08-12-2013 02:16 PM

I would like to iterate all entity in Block and display the type of the object. For example: LINE, BLOCK REFERENCE, LWPOLYLINE, TEXT . . . .

 

I currently have:

 

For Each Ent as ObjectId In CurrBTR
    Debug.pring (Ent  . . . .)
Next

 

 

 

Distinguished Mentor
gasty1001
Posts: 582
Registered: ‎04-11-2010
Message 2 of 4 (117 Views)

Re: Need some help pulling the property out of objects.

08-12-2013 04:27 PM in reply to: junoj

Hi,

 

May be it's an overkill but a good place to look at it's the MgdDbg tool's source code it have a *lot* of utils to snoop and inspect the dwg database, you can download it from here: Some Tools

 

Gaston Nunez

Distinguished Contributor
junoj
Posts: 116
Registered: ‎02-26-2009
Message 3 of 4 (112 Views)

Re: Need some help pulling the property out of objects.

08-12-2013 04:55 PM in reply to: gasty1001

thak you, got it

Distinguished Contributor
junoj
Posts: 116
Registered: ‎02-26-2009
Message 4 of 4 (111 Views)

Re: Need some help pulling the property out of objects.

08-12-2013 04:57 PM in reply to: junoj

the answer was CType

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.