Below is the start of my code. When I get to last line I am getting an error because group "plot" does not exist. I anticipate this group will not always exist but I can not figure how to trap this error? I would prefer to perform a check and see if group "plot" exists? Works great as long as the specified group exists.
Sub ProcessModel(ByVal oModel As ModelReference)
Dim ndgStartGroup As NamedGroupElement
Dim NamedGroupContents() As NamedGroupMember
Dim eleStartElement As ShapeElement
Dim p3dStartPoint() As Point3d
Dim I As Integer
Dim J As Integer
' Routine reviews attachments for group name "plot"
Set ndgStartGroup = oModel.GetNamedGroup("plot")
NamedGroupContents = ndgStartGroup.GetMembers
........
Thanks