Specifies whether or not the view should be a section only view.
Visual Basic |
---|
Public Property SectionOnly As Boolean |
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()); } } }