Object properties

  • This post takes the sample code shown in the last entry, converts it to VB.NET and adds in some code to access specific entity properties rather than simply calling list(). I won't step through the code this time, but here's the section of code that gets and dumps out the various entity properties: Dim ent As Entity = CType(tr.GetObject(objId, OpenMode.ForRead), Entity) ' This time access the properties directly ed.WriteMessage(vbLf + "Type:         " + ent.GetType().ToString) ed.WriteMessage(vbLf + "  Handle:     " + ent.Handle().ToString) ed.WriteMessage(vbLf + "  Layer:      " + ent.Layer().ToString) ed.WriteMessage(vbLf + "  Linetype:   " + ent.Linetype().ToString) ed.WriteMessage(vbLf…