摘要:
以下为 AutoCAD 的版本号,对应程序开发必备,请大家一起来补充之。CAD 内部版本为 Rxx.x, 其中: xx 为主版本号, x 为副版本号; xx 升级后,对应的 SDK 库会更新,所以 arx 也得跟着更新。 AutoCAD R14-1998.1 AutoCAD 2000 (R15.0)
阅读全文
posted @ 2019-11-22 09:55
swtool
阅读(416)
推荐(1)
摘要:
db.TransactionManager.QueueForGraphicsFlush(); db.GetEditor().Regen();
阅读全文
posted @ 2019-11-13 19:18
swtool
阅读(166)
推荐(0)
摘要:
将namespace与class名字修改成不一样后就可以找到命令了,而在2013里面就没有这个问题。
阅读全文
posted @ 2019-11-12 11:04
swtool
阅读(161)
推荐(0)
摘要:
Application object events are used to respond to the application window. Once an Application event is registered, it remains registered until AutoCAD
阅读全文
posted @ 2019-11-08 16:15
swtool
阅读(581)
推荐(0)
摘要:
SQlite本身没有top功能,无法向TSQL一样下Select top 100 * from tb_table,但SQLite提供了一个Limit关键字用来取得相应行数的资料 具体语法实例:Select * from tb_table order by tb_ser limit 5 offset
阅读全文
posted @ 2019-11-07 13:51
swtool
阅读(123)
推荐(0)
摘要:
按照正常的SQL语句,创建一个数据表,并设置主键是这样的语句: 但使用这种办法,在SQLite中创建的的数据表,如果使用Insert语句插入记录,如下语句: 那么在实际添加的记录中,主键EventId对应的值不是一个自增的整数,而是一个null值。 经查询得知,在SQLite数据库中,使用int数据
阅读全文
posted @ 2019-11-06 09:58
swtool
阅读(218)
推荐(0)
摘要:
1:获取当前数据库中的所有用户表 select Name from sysobjects where xtype='u' and status>=0 2:获取某一个表的所有字段 select name from syscolumns where id=object_id('表名') 3:查看与某一个表相关的视图、存储过程、函数 select a.* from sysobjects a, sysco
阅读全文
posted @ 2019-11-04 15:48
swtool
阅读(168)
推荐(0)
摘要:
List<string> lstSpare = lbSpare.Items.Cast<string>().Select(p => p.ToString()).ToList();
阅读全文
posted @ 2019-11-04 10:38
swtool
阅读(442)
推荐(0)
摘要:
bigint DECIMAL bigint binary(n) BINARY(n) bytea(n) bit BIT boolean, bool char(n) CHAR(n) char(n) datetime DATETIME timestamp(date, time) decimal DECIM
阅读全文
posted @ 2019-11-01 09:00
swtool
阅读(200)
推荐(0)
摘要:
frm.StartPosition = FormStartPosition.Manual; var result = Autodesk.AutoCAD.ApplicationServices.Application.ShowModalDialog(AcadApp.MainWindow.Handle,
阅读全文
posted @ 2019-10-30 16:26
swtool
阅读(325)
推荐(0)
摘要:
[CommandMethod("cloneWS")] public void cloneWorkSpace() { try { string sourceCuiFileName = @"C:\TEST.CUIX"; if (!File.Exists(sourceCuiFileName)) return; string curCuiFileName = Application.GetSystemVa
阅读全文
posted @ 2019-10-14 09:52
swtool
阅读(446)
推荐(0)
摘要:
1.DocumentManager_DocumentToBeDestroyed 2.DocumentManager_DocumentDestroyed 3.AcadApp_BeginQuit
阅读全文
posted @ 2019-10-09 20:46
swtool
阅读(369)
推荐(0)
摘要:
public static class StringHelper { static string sXiaoShuBuFen =@"(\.\d+)?"; //分数、带分数 public static string sMatchNumInch = @"(([1-9]\d*-)?[1-9]\d*/[1-9]\d*|[1-9]\d*)"""; //正整数 public st...
阅读全文
posted @ 2019-09-27 13:41
swtool
阅读(320)
推荐(0)
摘要:
AutoCAD 幻灯片文件是由 MSLIDE 命令写入并由 VSLIDE 命令读取的屏幕图像。 本节介绍幻灯文件的格式,以便于希望在程序中融入幻灯支持的开发人员进行开发。 幻灯文件由标题部分(31 字节)以及一个或多个可变长度的数据记录组成。 写入幻灯文件的所有坐标和大小都基于创建幻灯时显示设备的图
阅读全文
posted @ 2019-09-23 10:27
swtool
阅读(463)
推荐(0)
摘要:
程序中需要判断是attdef和text时应该把attdef放在前面,因为attdef是text的继承类
阅读全文
posted @ 2019-09-17 09:40
swtool
阅读(386)
推荐(0)
摘要:
有时候需要在执行了一个命令后把一个文件夹给打开,但是如果该文件夹已经打开了就没有必要再开一个文件夹了,但是C#中并没有专门的函数来解决此问题。 下面是用moveto的方法来曲线救国。
阅读全文
posted @ 2019-09-12 20:32
swtool
阅读(352)
推荐(0)
摘要:
tvList.SelectedNode = tnSon;
阅读全文
posted @ 2019-09-09 15:10
swtool
阅读(167)
推荐(0)
摘要:
以前WIN7的系统中没有什么排版的问题,现在用了WIN10后经常发现控件显示问题; label:anchor left,right,align用middleleft或者middleright 在没有特定要求的情况下行高35,label街市30可;
阅读全文
posted @ 2019-09-09 15:09
swtool
阅读(293)
推荐(0)
摘要:
public void MXBFY() { TranslateMxb Translate = new TranslateMxb(); FrmTranslateMxb frm = new FrmTranslateMxb(); CadBaseSet.RH.MoveBackWindows(frm); frm.Translate = Translate; Autodesk.AutoCAD.Applicat
阅读全文
posted @ 2019-09-08 21:40
swtool
阅读(247)
推荐(0)
摘要:
原文链接:https://segmentfault.com/a/1190000003036617 简易使用说明- 简介- 操作符- 值- 函数- 参数简单表达式 Expression e = new Expression("2 + 3 * 5"); Debug.Assert(17 == e.Eval
阅读全文
posted @ 2019-09-06 11:08
swtool
阅读(386)
推荐(0)
摘要:
private void sendcmd(string sCmd) { Document doc = Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocument; string esc = ""; string cmds = (string)AcadApp.GetSystemVariable(
阅读全文
posted @ 2019-09-05 09:17
swtool
阅读(552)
推荐(0)
摘要:
//dimadec 1.使用 dimdec 设置的小数位数绘制角度标注;0-8 使用 dimadec 设置的小数位数绘制角度标注。 //dimalt 控制标注中换算单位的显示:关.禁用换算单位 开.启用换算单位 //dimaltd 控制换算单位中小数位的位数。 //dimaltf 控制换算单位乘数。
阅读全文
posted @ 2019-09-03 10:07
swtool
阅读(1345)
推荐(0)
摘要:
用outlook 收到DOMINO上的邮件后,发现原来的"\r\n"不能显示为回车换行。 刚才试了一下又搞定了,当你设置发送TYPE为text/plain这个时,你用\n\t就可以了 当你设置发送TYPE为text/html时,你用<br>就可以了
阅读全文
posted @ 2019-08-28 10:29
swtool
阅读(2793)
推荐(0)
摘要:
版权声明:本文为CSDN博主「HisinWang」的原创文章,遵循CC 4.0 by-sa版权协议,转载请附上原文出处链接及本声明。原文链接:https://blog.csdn.net/hisinwang/article/details/78797068 从 AutoCAD 2009 版开始,引入了
阅读全文
posted @ 2019-08-16 09:19
swtool
阅读(820)
推荐(0)
摘要:
#region 添加子菜单 int i = 0; foreach (string MenuParentName in MenuParentNameList) { i++; //当前子集数据 var SonMenuData = SwtoolMenu.AsEnumerable() .Where(p =>
阅读全文
posted @ 2019-08-15 09:54
swtool
阅读(769)
推荐(0)
摘要:
ID:指其本身的objectid BlockId:指其所在的块定义的id OwnerId:指其所在的块参照的id 初学者肯定比较晕
阅读全文
posted @ 2019-08-08 11:37
swtool
阅读(486)
推荐(0)
摘要:
ResultBuffer中的TypedValue ,5005,5006,5009都代表什么类型?
阅读全文
posted @ 2019-08-08 09:04
swtool
阅读(874)
推荐(0)
摘要:
public void Kill(string filePath) { var wmiQueryString = "SELECT ProcessId, ExecutablePath, CommandLine FROM Win32_Process"; using (var searcher = new ManagementObje...
阅读全文
posted @ 2019-08-02 16:05
swtool
阅读(1167)
推荐(0)
摘要:
public static Random rNumber = new Random();//实例化一个随机数对象 public static int smm = rNumber.Next(0, 59);
阅读全文
posted @ 2019-08-01 18:49
swtool
阅读(230)
推荐(0)
摘要:
private ModelLicence GetModelLicense() { //取得当前方法名 //System.Reflection.MethodBase mb = System.Reflection.MethodBase.GetCurrentMethod(); //父方法 System.Diagnostics.StackTrace ss = n...
阅读全文
posted @ 2019-07-28 10:32
swtool
阅读(190)
推荐(0)
摘要:
网上查了,有各种所谓的注册表修改的办法,但是发现我的注册表根本不用修改,因为和他们说的要修改的一样,这就尴尬了。后来终于找到方法了,其实就是为了解决VBA开发的公用库问题,安装CAD2007后它将原来office2007中的比较新的公用库文件覆盖成老的库文件了,所以只需要将VBA的几个库文件覆盖成新
阅读全文
posted @ 2018-11-18 12:12
swtool
阅读(6596)
推荐(1)
posted @ 2018-11-09 14:53
swtool
阅读(278)
推荐(0)
摘要:
第12行在复制粘贴过程中忘记改成zHideSelectItems,导致程序在未开启时就死循环。
阅读全文
posted @ 2018-11-09 14:51
swtool
阅读(153)
推荐(0)
摘要:
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Wrox.ProCSharp.Delegates { class BubbleSorter { static public void Sort(IList sortArray, Func ...
阅读全文
posted @ 2018-09-26 11:05
swtool
阅读(257)
推荐(0)
摘要:
这里的自定义控件是由普通控件组合而成的。 希望事件响应代码推迟到使用自定义控件的窗体里写。 步骤一:新建一个用户控件,放两个按钮,Tag分别是btn1,btn2. 这两个按钮的共用单击事件处理代码如下: using System; using System.Collections.Generic;
阅读全文
posted @ 2018-09-25 16:35
swtool
阅读(5313)
推荐(0)
摘要:
Graphics graphics = CreateGraphics(); SizeF sizeF = graphics.MeasureString(字符串, new Font("宋体", 9)); MessageBox.Show(string.Format("字体宽度:{0},高度:{1}", s
阅读全文
posted @ 2018-07-27 11:21
swtool
阅读(723)
推荐(0)
摘要:
public void DrawText(Graphics g, Pen blackPen, float fFontHeight) { SolidBrush mybrush = new SolidBrush(Color.White); Font myfont = new Font("黑体", fFontHeight); PointF mypoi...
阅读全文
posted @ 2018-07-18 09:01
swtool
阅读(206)
推荐(0)
摘要:
char[] arr = "显示的字符串".ToCharArray(); Array.Reverse(arr); string s = new string(arr); e.Graphics.DrawString(s, new Font("宋体", 12, FontStyle.Regular), n
阅读全文
posted @ 2018-07-09 11:04
swtool
阅读(139)
推荐(0)
摘要:
仅当使用了列列表并且 IDENTITY_INSERT 为 ON 时,才能为表'Address'中的标识列指 解决办法,将主键的ID自增长先设置为false
阅读全文
posted @ 2018-07-02 08:55
swtool
阅读(2702)
推荐(1)
摘要:
VS的资源中导入png文件时会将“-”转换为“_",因此在命名png时就应该注意了
阅读全文
posted @ 2018-06-26 16:10
swtool
阅读(239)
推荐(0)