Autodesk 15606-011408-9300 Developer Guide - Page 187
If Not oObj Is Nothing Then, Function GetObjectTypeStringObjType As SdfObjectType As String
UPC - 606121429548
View all Autodesk 15606-011408-9300 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 187 highlights
ConvertSDF Example Code (continued) objFound = Not (oObj Is Nothing) If Not (oObj Is Nothing) Then ShowMessage "Following feature is deleted" ShowMessage "Feature: " & i & " " & GetObjectTypeString(oObj.Type) ShowMessage " Key : " & oObj.Key ShowMessage " Name: " & oObj.Name ShowMessage " Url : " & oObj.Url 'Delete this feature oTlkt.BeginUpdate oTlkt.DeleteObject oObj oTlkt.EndUpdate End If 'If we come here, feature with specified key was not found If Not objFound Then ShowMessage ("Feature with specified key not found.") Else ShowMessage ("Feature with key " & Key & " deleted.") End If oTlkt.Close Exit Sub ErrHandler: 'Display the error number/message MsgBox Err.Number & " : " & Err.Description 'Reset the handler before exiting On Error GoTo 0 End Sub Private Sub btnExit_Click() End End Sub Sub ShowMessage(Msg As String) txtMsg.Text = txtMsg.Text & Msg & vbCrLf End Sub Function GetObjectTypeString(ObjType As SdfObjectType) As String Select Case ObjType Case sdfPointObject: GetObjectTypeString = "POINT" Case sdfPolygonObject: SDF Component Toolkit Applications | 187