SOLIDWORKS API Help
Insert and Position DXF/DWG File in Drawing Example (C#)
This example shows how to insert and position a DXF/DWG file in a drawing.
//---------------------------------------------------------------------------// Preconditions:// 1. Open a drawing.// 2. Replace DXF_file_path with the pathname of an existing DXF/DWG file.// 3. Open the Immediate window. Postconditions:// 1. Inserts the DXF/DWG file as per the specified import data.// 2. Inspect the Immediate window.//---------------------------------------------------------------------------using Microsoft.VisualBasic;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Data;
using System.Diagnostics;
using SolidWorks.Interop.sldworks;
using SolidWorks.Interop.swconst;
namespace InsertDXFDrawing_CSharp.csproj
{
partial class S