Solid Edge Framework Type Library
AutoCadConfigFile Property
Description
Property to get\set the AutoCAD configuration .ini file.
Property type
Read-write property
Syntax
Visual Basic
Public Property AutoCadConfigFile As String
Remarks
When opening draft files, the OpenWithTemplate method allows the designation of both the AutoCAD file and the Draft file Template, but does not allow the designation of the SEACAD.INI file to be used. Since the units designation is is the SEACAD.INI file, there is a possibility of loading a DXF file at the wrong scale factor (when loading programmatically).
Example
Imports System.IO
Imports System.Runtime.InteropServices

Module Example
    <STAThread()> _
    Sub Main()
        Dim objApplication As SolidEdgeFramework.Application = Nothing
        Dim objDocuments As SolidEdgeFramework.Documents = Nothing

        Try
            OleMessageFilter.Register()

            objApplication = Activator.CreateInstance(Type.GetTypeFromProgID("SolidEdge.Application"))
            objApplication.Visible = True
            objDocuments = objApplication.Documents
            objDocuments.AutoCadConfigFile = "C:\myseacad.ini"

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

Documents Collection  | Documents Members  | Solid Edge V18 - What's New