Solid Edge Draft Type Library
DrawingViews Collection
Members 
Description
Represents a collecion of DrawingView objects.
Remarks
The DrawingViews collection object has four methods for creating a drawing view. These methods produce different types of drawing views (such as a detail view). The Add method places the initial drawing view (primary view). Because the other add methods create views that are derived from an existing drawing view, they are disabled until the first view has been created. The AddByFold method creates a folded drawing view (either principal or isometric) from an existing drawing view. The AddByAuxiliaryFold method creates an auxiliary view and a view plane from an existing view. The AddByDetailEnvelope method creates a detail view and a detail envelope from an existing view.
Example
Imports System.IO
Imports System.Runtime.InteropServices

Module Example
    <STAThread()> _
    Sub Main()
        Dim objApplication As SolidEdgeFramework.Application = Nothing
        Dim objDraftDocument As SolidEdgeDraft.DraftDocument
        Dim objSheet As SolidEdgeDraft.Sheet = Nothing
        Dim objDrawingViews As SolidEdgeDraft.DrawingViews = Nothing

        Try
            OleMessageFilter.Register()

            objApplication = Marshal.GetActiveObject("SolidEdge.Application")
            objDraftDocument = objApplication.ActiveDocument
            objSheet = objDraftDocument.ActiveSheet
            objDrawingViews = objSheet.DrawingViews

        Catch ex As Exception
            Console.WriteLine(ex.Message)
        Finally
            OleMessageFilter.Revoke()
        End Try
    End Sub
End Module
See Also

DrawingViews Members