Sets and returns whether or not background sheet geometry is locatable from working sheet.
Visual Basic |
---|
Public Property LocateBackgroundSheetGeometry As Boolean |
Imports System.Runtime.InteropServices Imports System.IO Public Class Form1 Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click Dim objApplication As SolidEdgeFramework.Application = Nothing Dim Doc As SolidEdgeDraft.DraftDocument = Nothing Try ' Create/get the application with specific settings objApplication = GetObject(, "SolidEdge.Application") ' Create a draft document Doc = objApplication.Documents.Add("SolidEdge.DraftDocument") Doc.LocateBackgroundSheetGeometry = False Catch ex As Exception MsgBox(ex.ToString) Finally Doc = Nothing objApplication = Nothing End Try End Sub End Class
using System; using System.Windows.Forms; using System.Runtime.InteropServices; using System.IO; public class Form1 { private void Button1_Click(object sender, EventArgs e) { SolidEdgeFramework.Application objApplication = null; SolidEdgeDraft.DraftDocument Doc = null; try { // Create/get the application with specific settings objApplication = Microsoft.VisualBasic.Interaction.GetObject(null, "SolidEdge.Application"); // Create a draft document Doc = objApplication.Documents.Add("SolidEdge.DraftDocument"); Doc.LocateBackgroundSheetGeometry = false; } catch (Exception ex) { MessageBox.Show(ex.ToString()); } finally { Doc = null; objApplication = null; } } }