Page 1 of 1

Get all BlockName of INSERT objects

Posted: 14 Oct 2008, 12:47
by narfight
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

Re: Get all BlockName of INSERT objects

Posted: 15 Oct 2008, 10:20
by support
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.