摘要:
usingAutodesk.AutoCAD.ApplicationServices;usingAutodesk.AutoCAD.DatabaseServices;usingAutodesk.AutoCAD.EditorInput;usingAutodesk.AutoCAD.Runtime;using... 阅读全文
posted @ 2014-07-07 17:42
swtool
阅读(1554)
评论(0)
推荐(0)
摘要:
usingAutodesk.AutoCAD.Runtime;usingAutodesk.AutoCAD.ApplicationServices;usingAutodesk.AutoCAD.DatabaseServices;usingAutodesk.AutoCAD.EditorInput;using... 阅读全文
posted @ 2014-07-07 08:31
swtool
阅读(423)
评论(0)
推荐(0)
摘要:
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Runtime.InteropServices;using Autodesk.AutoCAD.Runtime;... 阅读全文
posted @ 2014-07-07 08:30
swtool
阅读(763)
评论(0)
推荐(1)
摘要:
/// /// 从句柄转换成ObjectId /// Version : 2010.03.29 Sieben /// /// 句柄,可以是Handle,string,int,long数据类型 /// 成功返回句柄所对应的ObjectId,否则返回ObjectId.Null publi... 阅读全文
posted @ 2014-07-07 07:57
swtool
阅读(634)
评论(0)
推荐(0)
摘要:
§LinemyLine = (Line)myObject;§‘as’操作符-Line myLine = myObjectasLine; -§如果失败,没有异常,但对象为null !§‘is’操作符–if (myObj is Line) …§typeof操作符 – if typeof (obj1) =... 阅读全文
posted @ 2014-07-07 07:56
swtool
阅读(179)
评论(0)
推荐(0)
摘要:
/// /// 过滤选择集合 /// 调用方法如: ObjectIdCollection EntityCollection = GetSelection(); /// /// 对象集合 public static ObjectIdCollection GetSelection() { Docu... 阅读全文
posted @ 2014-07-07 07:54
swtool
阅读(653)
评论(0)
推荐(0)
摘要:
/// /// 作线的垂线 /// [CommandMethod("sText_MoveOfLine")] public void sText_MoveOfLine() { Database db = HostApplicationServices.WorkingDatabase; Editor... 阅读全文
posted @ 2014-07-07 07:48
swtool
阅读(515)
评论(0)
推荐(0)
摘要:
/// /// 文字打断 /// [CommandMethod("sText_break")] public void sText_break() { Document doc = MgdAcApplication.DocumentManager.MdiActiveDocument; Datab... 阅读全文
posted @ 2014-07-07 07:46
swtool
阅读(456)
评论(0)
推荐(0)
摘要:
//测试注册表 ////////////////////////////////////////////////////////////////////////// /// /// 读注册表 /// /// 获取路径 /// 要得到的值 /// 返回注册表指定键值 public static ... 阅读全文
posted @ 2014-07-07 07:45
swtool
阅读(339)
评论(0)
推荐(0)
摘要:
......省略一些usingusing Autodesk.AutoCAD.ApplicationServices;using Autodesk.AutoCAD.DatabaseServices;using Autodesk.AutoCAD.Runtime;using Autodesk.AutoCA... 阅读全文
posted @ 2014-07-07 07:43
swtool
阅读(914)
评论(0)
推荐(0)
摘要:
ObjectIdCollection ids = STools.GetSelection(); if (ids.Count == 0) return; using (Transaction trans = doc.TransactionManager.StartTransaction()) { Li... 阅读全文
posted @ 2014-07-07 07:42
swtool
阅读(483)
评论(0)
推荐(0)
摘要:
当下主流Qt进行C++GUI开发很多,但是网上比较新的资料较少,并且Qt官网上面的搜索相应时间也很慢。参考了很多网上的资料结合自己的实践写一篇关于在VS2010环境中部署配置QT的博文。概述:主要配置步骤:1.进行VS2010安装配置2.进行QT库安装3.进行VS2010QT插件安装4.测试安装结果... 阅读全文
posted @ 2014-07-07 07:39
swtool
阅读(8517)
评论(0)
推荐(0)

浙公网安备 33010602011771号