Get all BlockName of INSERT objects

Discuss and ask questions about CAD .NET library.

Moderators: SDS, support, admin

Post Reply
narfight
Posts: 1
Joined: 14 Oct 2008, 12:41
Contact:

Get all BlockName of INSERT objects

Post by narfight » 14 Oct 2008, 12:47

I’m use VB.net and I’m would like get all « BlockName » for « INSERT » objects.
In demo code, the treeNode was linked by the “Tag” properties but I’can find where this properties link.
Can you say where I found all properties of all INSERT objects?

Thk in advance,
JP

support
Posts: 3272
Joined: 30 Mar 2005, 11:36
Contact:

Re: Get all BlockName of INSERT objects

Post by support » 15 Oct 2008, 10:20

Hello!

Please try the following code:

Code: Select all

        Dim entInsert As CADInsert
       
        Dim entCount As Integer = Me.cadImage.Converter.GetCounts(CADImport.FaceModule.ConvSection.Entities)
        Dim I As Integer
        For I = 0 To entCount - 1
            If (Me.cadImage.Converter.GetSection(CADImport.FaceModule.ConvSection.Entities).Entities(I).EntType = EntityType.Insert) Then
                entInsert = Me.cadImage.Converter.GetSection(CADImport.FaceModule.ConvSection.Entities).Entities(I)
                MessageBox.Show("Block Insert Name " + entInsert.Block.EntName)
            End If
        Next I
Sergey.
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support

Post Reply