020集——ifox CAD环境搭建(CAD—C#二次开发入门)

 第一步 新建类库,不选.netframework,框架用standard2.0

6a9a8f3165274a2fbb5e7c2059edec4c.png

  <PropertyGroup>
      <TargetFramework>NET48</TargetFramework>
      <LangVersion>preview</LangVersion>
      <AssemblyVersion>0.1.0.*</AssemblyVersion>
      <FileVersion>0.1.0</FileVersion>
      <ImplicitiUsings>enable</ImplicitiUsings>
      <Nullable>enable</Nullable>
      <Deterministic>false</Deterministic>
           <UseWpf>true</UseWpf>
    <UseWindowsForms>true</UseWindowsForms>
    <PlatformTarget>x64</PlatformTarget>
  </PropertyGroup>

9ec57735b199440f9c14045ba59f9d02.png

 nuget搜索ifox.cad.acad

689ebce7d07e4af3b954202cdbc8ad46.png

 211c2b0f8d5f47408a9d68b957384ead.png

 412627b6fdb544aaa5a4aed1f2afc50c.png

命令行参数:

/nologo

78fb9481852a41d7a48dd4ec2770ffd0.png

新建一个globalusing类库

添加以下代码:

global using System;
global using IfoxDemo;
global using System.Collections.Generic;
global using System.Linq;
global using System.Text;
global using System.Threading.Tasks;
global using Autodesk.AutoCAD.ApplicationServices;
global using Autodesk.AutoCAD.EditorInput;
global using Autodesk.AutoCAD.Runtime;
global using Autodesk.AutoCAD.Geometry;
global using Autodesk.AutoCAD.DatabaseServices;
global  using IFoxCAD.Cad;

bad02aefb9c44e8aa0ceade89efc315c.png

29f8b94dc7944b998a74d642c5ab4c5f.jpg

8ee334fd70b246f9a1201548bc3b1e0a.jpg

内联提示设置:

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值