上一页 1 ··· 4 5 6 7 8 9 10 下一页
摘要: 点击查看代码 Public Sub MyCMD_导出VBA代码() Const Module = 1 Const ClassModule = 2 Const Form = 3 Const Document = 100 Const Padding = 24 Dim VBComponent As Obj 阅读全文
posted @ 2021-10-09 19:50 南胜NanSheng 阅读(551) 评论(0) 推荐(0)
摘要: netdxf介绍github库 https://github.com/haplokuon/netDxf netDxf是一个.net库,用C语言编程,用于读取和写入AutoCAD DXF文件。它支持文本和二进制格式的AutoCad2000、AutoCad2004、AutoCad2007、AutoCad 阅读全文
posted @ 2021-03-27 07:56 南胜NanSheng 阅读(4484) 评论(0) 推荐(2)
摘要: 主程序代码 删除dll依旧可以执行 https://files.cnblogs.com/files/NanShengBlogs/sample.zip 1 static void Main(string[] args) 2 { 3 //PrincipalContext ctx = new Princi 阅读全文
posted @ 2020-10-17 21:01 南胜NanSheng 阅读(2470) 评论(0) 推荐(1)
摘要: 1# 设置页面设置 2# 输入publish 命令,发布为改为pdf,将所有布局的页面设置设为刚才设置的页面设置,选中需要打印的布局点击发布完成批量打印 , 打印到我的文档下面,自动以dwg的文件名称命名而且自动合并在一起了 阅读全文
posted @ 2020-10-15 21:19 南胜NanSheng 阅读(1976) 评论(0) 推荐(0)
摘要: 不说了,直接上代码,参照kean的博客吗,这是添加边界的代码 https://www.keanw.com/2012/10/querying-for-xclip-information-inside-autocad-using-net.html 1 using Autodesk.AutoCAD.App 阅读全文
posted @ 2020-10-15 19:42 南胜NanSheng 阅读(666) 评论(0) 推荐(0)
摘要: 1 %~dp0regasm.exe %~dp0comDll.dll /tlb %~dp0comDll.tlb 2 pause regasm.exe 来自下面的图片所示的位置,具体的使用方法见msdn的文档 https://docs.microsoft.com/zh-cn/dotnet/framewo 阅读全文
posted @ 2020-10-13 20:45 南胜NanSheng 阅读(664) 评论(0) 推荐(0)
摘要: 主要的过程,日后操作autocad lt也应该可以用此方法 1 var pros = Process.GetProcessesByName("acad"); 2 if (pros.Length == 0) 3 { 4 MessageBox.Show("没有找到acad进程,请检查后再运行本程序!") 阅读全文
posted @ 2020-10-04 13:26 南胜NanSheng 阅读(1284) 评论(0) 推荐(0)
摘要: 输入参数copy砖红色的内容到cad的命令行就可以画出对应的形状 阅读全文
posted @ 2020-09-27 20:36 南胜NanSheng 阅读(465) 评论(1) 推荐(0)
摘要: 定义自定义类,用于表达cad netapi生成的命令 1 public class myAutoCADNetCmd 2 { 3 public string DllName { get; set; } 4 public string className { get; set; } 5 public s 阅读全文
posted @ 2020-09-27 20:22 南胜NanSheng 阅读(1517) 评论(0) 推荐(2)
摘要: 批处理调用autocad打印 窗口内的内容 1.调用autocad 的acad.exe 执行文件 %~dp 获取bat/cmd文件的文件夹路径 1 "C:\Program Files (x86)\AutoCAD 2008\acad.exe" "%~dp02.dwg" /nologo /b "%~dp 阅读全文
posted @ 2020-09-27 20:07 南胜NanSheng 阅读(620) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8 9 10 下一页