Solid Edge Draft Type Library
SectionOnly Property
Solid Edge Draft Type Library > DrawingView Object : SectionOnly Property
Description
Specifies whether or not the view should be a section only view.
Property type
Read-write property
Syntax
Visual Basic
Public Property SectionOnly As Boolean
Example
Imports System.Runtime.InteropServices
Imports System.IO

Module Module1

    Sub Main()

        Dim objApp As SolidEdgeFramework.Application = Nothing
        Dim ObjDraftDoc As SolidEdgeDraft.DraftDocument = Nothing
        Dim DrawingView As SolidEdgeDraft.DrawingView = Nothing
        Dim bSectionOption As Boolean

        Try
            objApp = Marshal.GetActiveObject("SolidEdge.Application")
            ObjDraftDoc = objApp.ActiveDocument
            DrawingView = ObjDraftDoc.ActiveSheet.DrawingViews.Item(2)
        
            DrawingView.SectionOnly = True
            bSectionOption = DrawingView.SectionOnly
   
        Catch ex As Exception
            Console.WriteLine(ex.ToString)
        End Try

    End Sub
    

End Module
using System.Runtime.InteropServices;
using System.IO;

internal static class Module1
{

    public static void Main()
    {

        SolidEdgeFramework.Application objApp = null;
        SolidEdgeDraft.DraftDocument ObjDraftDoc = null;
        SolidEdgeDraft.DrawingView DrawingView = null;
        bool bSectionOption = false;

        try
        {
            objApp = (SolidEdgeFramework.Application)Marshal.GetActiveObject("SolidEdge.Application");
            ObjDraftDoc = objApp.ActiveDocument;
            DrawingView = ObjDraftDoc.ActiveSheet.DrawingViews.Item(2);

            DrawingView.SectionOnly = true;
            bSectionOption = DrawingView.SectionOnly;

        }
        catch (Exception ex)
        {
            Console.WriteLine(ex.ToString());
        }

    }


}
See Also

DrawingView Object  | DrawingView Members