随笔分类 - CAD二次开发-doNET
CAD doNet二次开发
摘要:2000中文版: HKEY_LOCAL_MACHINE\SOFTWARE\Autodesk\AutoCAD\R14.0\ACAD-1:804 2002中文版: HKEY_LOCAL_MACHINE\SOFTWARE\Autodesk\AutoCAD\R15.0\ACAD-1:804 2004中文版:
阅读全文
摘要:第一步:编写控制台帮助类,调用kernel32.dll中控制台API 控制台帮助类 public class ConsoleHelper { private const uint STD_INPUT_HANDLE = 0xfffffff6; private const uint STD_OUTPUT
阅读全文
摘要:
阅读全文
摘要:CAD-doNet开发技术栈————————开发环境
阅读全文
摘要:Autodesk.AutoCAD.DatabaseServices: 命名空间中的类表示组成AutoCAD图形数据库的元素,包括有图形界面的对象(也就是实体如直线、圆等)和非图形界面对象(如层、线型和文字样式等)。 Autodesk.AutoCAD.Runtime:命名空间中的类提供了系统级别的功能
阅读全文
摘要://加下多个实体,获取所有实体矩形边界,获取边界点截图 public void SnapShot(List<Entity> entities ,string name) { Document doc = Application.DocumentManager.MdiActiveDocument; E
阅读全文
摘要:[CommandMethod("TESTIMAGE")] public void TSTImage() { Document doc = Application.DocumentManager.MdiActiveDocument; Editor ed = Application.DocumentMa
阅读全文
摘要:1、对象初始化时绑定处理事件 1 Application.PreTranslateMessage += new PreTranslateMessageEventHandler(Application_PreTranslateMessage); 2、事件处理 1 /// <summary> 2 ///
阅读全文
摘要:1、自定义靶框对象 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 7 //CAD开发库 8
阅读全文
摘要:1 private List<Curve> GetCurveFromView() { 2 List<Curve> curves = new List<Curve>(); 3 ViewTableRecord viewTableRecord = ed.GetCurrentView(); 4 double
阅读全文