随笔分类 -  AutoCAD

摘要:关于编译形状和字体文件 AutoCAD 2018 Help | About Compiling Shape and Font Files | Autodesk 可以定义、创建和编译形状和字体文件,以便在图形中使用自定义符号和文本字体。 形状是像块一样使用的对象。块比形状更通用,更易于使用和插入。但是 阅读全文
posted @ 2023-11-25 12:22 rf8862 阅读(102) 评论(0) 推荐(0) 编辑
摘要:一,导入命名空间 二、使用事务处理 三、打开各种表 四、各种Get 五、定义图块、插入图块 一、导入命名空间 Imports AcApps = Autodesk.AutoCAD.ApplicationServices Imports Autodesk.AutoCAD.DatabaseServices 阅读全文
posted @ 2023-06-22 16:52 rf8862 阅读(320) 评论(0) 推荐(0) 编辑
摘要:用.net开发Autocad时,自己写的命令在Refedit中使用时, 工作集外被选中的物体也会被修改, 这时就先需要判断一个物体是否包含在当前工作集, 然后决定要不要对其进行修改。 原文链接:Résolu : How to check if entity is part of "Working S 阅读全文
posted @ 2023-06-22 11:54 rf8862 阅读(26) 评论(0) 推荐(0) 编辑
摘要:一、CommandFlags 1、ActionMacro:可以用动作录制器录制命令动作; 2、DocReadLock:命令执行时将被只读锁定; 3、Interruptible:提示用户输入时可以中断命令; 4、Modal:别的命令运行时不能运行此命令; 5、NoActionRecording:不能用 阅读全文
posted @ 2023-03-14 04:08 rf8862 阅读(94) 评论(0) 推荐(0) 编辑
摘要:var ed = Application.DocumentManager.MdiActiveDocument.Editor; var opts = new PromptSelectionOptions(); opts.AllowSubSelections = true; opts.SingleOnl 阅读全文
posted @ 2022-04-23 04:58 rf8862 阅读(74) 评论(0) 推荐(0) 编辑
摘要:case Acad::eAlreadyActive:lstrcpy(Glb_AcadErrorInfo,_T("已经是活动的了"));break; case Acad::eAlreadyInactive:lstrcpy(Glb_AcadErrorInfo,_T("已经是不活动的了"));break; 阅读全文
posted @ 2022-04-18 18:21 rf8862 阅读(1925) 评论(0) 推荐(0) 编辑
摘要:AutoCAD.NET API不包含用于访问从AutoCAD的[选项]对话框中可访问的选项的类别和方法。这些选项包括ActiveX® 使用自动库访问。 使用从Application对象的Preferences属性返回的COM对象。获得Preferences COM对象后,可访问选项相关的9个对象。 阅读全文
posted @ 2021-09-11 01:20 rf8862 阅读(146) 评论(0) 推荐(0) 编辑
摘要:TransformBy方法可以将点或位移从一个坐标系转换到另一个坐标系。可以使用AlignCoordinateSystem方法指定要从哪个坐标系转换以及要从哪个坐标系转换。AlignCoordinateSystem方法需要以下内容: 从中平移的坐标系的原点 三个三维矢量,表示要从中平移的坐标系的X、 阅读全文
posted @ 2021-09-09 19:11 rf8862 阅读(1157) 评论(0) 推荐(0) 编辑
摘要:[CommandMethod("Matrix_PrintOut")] public static void Matrix_PrintOut() { Editor ed = MgdAcApplication.DocumentManager.MdiActiveDocument.Editor; Datab 阅读全文
posted @ 2021-09-07 08:00 rf8862 阅读(962) 评论(0) 推荐(1) 编辑
摘要:Dim doc As ApplicationServices.Document = ApplicationServices.Application.DocumentManager.MdiActiveDocument Using Tr As DatabaseServices.Transaction = 阅读全文
posted @ 2021-08-20 10:50 rf8862 阅读(459) 评论(0) 推荐(0) 编辑
摘要:QUICKPROPERTIES 阅读全文
posted @ 2020-12-17 21:31 rf8862 阅读(475) 评论(0) 推荐(0) 编辑
摘要:1、根据图块名过滤 Dim tksTV(0) As DatabaseServices.TypedValue tksTV.SetValue(New DatabaseServices.TypedValue(DatabaseServices.DxfCode.BlockName, tkNames), 0) 阅读全文
posted @ 2020-11-10 22:25 rf8862 阅读(62) 评论(0) 推荐(0) 编辑
摘要:Dim L1 As New DatabaseServices.Line(P1, P3) Dim angle As Double = New DatabaseServices.Line(ppr1.Value, ppr2.Value).Angle - Math.PI / 4 Dim vector As 阅读全文
posted @ 2020-11-07 05:01 rf8862 阅读(338) 评论(0) 推荐(0) 编辑
摘要:AutoCAD2014二次开发需要引用三个程序集:accoremgd.dll、acdmgd.ll、acmgd.dll; 项目属性中的生成,使用平台改为:x64; 目标框架选择.net framework4.0及以上版本; 调用COM的SendCommand函数访问AutoCAD命令的方法已经失效; 阅读全文
posted @ 2020-11-06 01:47 rf8862 阅读(595) 评论(0) 推荐(0) 编辑
摘要:第一步: 右键单击开始菜单打开运行,输入regedit打开注册du表编辑器.打开注册表编辑器,定位到ROOT\installer\Products\7D2F的两个zhi键值并删dao除。 第二步:C:\ProgramData\FLEXnet。注意删除FLEXnet整个文件夹,就是软件的注册信息。注意 阅读全文
posted @ 2020-10-13 21:29 rf8862 阅读(594) 评论(0) 推荐(0) 编辑
摘要:https://forums.autodesk.com/t5/net/trouble-with-getsubentities/td-p/5000316 阅读全文
posted @ 2020-10-09 11:07 rf8862 阅读(64) 评论(0) 推荐(0) 编辑
摘要:Dim doc As Autodesk.AutoCAD.ApplicationServices.Document = Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocument Dim Lisp 阅读全文
posted @ 2020-08-30 12:58 rf8862 阅读(208) 评论(0) 推荐(0) 编辑
摘要:文字对齐应使用 DBText.AlignmentPoint 属性,而不能使用 Position 属性 阅读全文
posted @ 2020-07-04 21:58 rf8862 阅读(176) 评论(0) 推荐(0) 编辑
摘要:Dim doc As Autodesk.AutoCAD.ApplicationServices.Document = Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocument Dim ed A 阅读全文
posted @ 2020-02-24 12:57 rf8862 阅读(647) 评论(0) 推荐(0) 编辑
摘要:1、创建单行文字 Dim dt As New DatabaseServices.DBText() With dt .TextString = psr.StringResult .Justify = AttachmentPoint.MiddleCenter .AlignmentPoint = ppr. 阅读全文
posted @ 2020-02-21 04:00 rf8862 阅读(118) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示