创建C#工程
创建工程
1、创建C#的控制台应用程序工程
2、设置工程适用x64或x86
右键点击解决方案,点击属性
3、选择代码优化
4、引入ZwDatabaseMgd、 ZwManaged,ZWCAD 2018 Type Library依赖库
书写代码
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ZWCAD;
using System.Runtime.InteropServices;
using System.IO;
using System.Text.RegularExpressions;
using System.Xml;
using ZwSoft.ZwCAD.DatabaseServices;
using ZwSoft.ZwCAD.Edi