.NET

.NET

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

Need some help pulling the property out of objects.

109 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

 

 

 

Valued Mentor
gasty1001
Posts: 468
Registered: ‎04-11-2010
Message 2 of 4 (94 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 (89 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 (88 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

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.