c#读取dwg零件表_C# SolidWorks 二次开发 API---导入dxf_dwg到图纸或者零件草图

该示例展示了如何使用C# SOLIDWORKS API在图纸中插入和定位DXF/DWG文件。通过设置导入数据,包括单位、位置、比例和纸张大小,将DXF/DWG文件导入到现有图纸中,并调整其位置。
摘要由CSDN通过智能技术生成

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值