DrawPoly(geomObject)
 End If
     DrawSolid(geomObject)
 ElseIf (TypeOf geomObject Is Autodesk.Revit.DB.PolyLine) Then
     DrawInstance(geomObject)
 ElseIf (TypeOf geomObject Is Autodesk.Revit.DB.Mesh) Then
     DrawMesh(geomObject)
 ElseIf (TypeOf geomObject Is Autodesk.Revit.DB.Solid) Then
     DrawCurve(geomObject)
 ElseIf (TypeOf geomObject Is Autodesk.Revit.DB.GeometryInstance) Then