用.Net开发Cad

Cad二次开发

 

2011年9月19日

如何将新增加的textstyletablerecord设为当前

摘要: Database.Textstyle = Tools.AddTextStyle("断面"); //设置当前文字样式public static ObjectId AddTextStyle(string StyleName) { ObjectId id; Database db = Tools.Database; DBTransMan tm = Tools.TransactionManager; Transaction ta = tm.StartTransaction(); TextStyleTable textStyleTable = (TextStyleTable)tm.G 阅读全文

posted @ 2011-09-19 20:00 xuguangren 阅读(697) 评论(0) 推荐(0) 编辑

删除扩展数

摘要: 文章地址:http://bbs.mjtd.com/forum-33-1.html public static void RemoveXData(Entity EntObject, string XDataName) { Editor ed = Application.DocumentManager.MdiActiveDocument.Editor; Database db = HostApplicationServices.WorkingDatabase; using (DocumentLock... 阅读全文

posted @ 2011-09-19 19:19 xuguangren 阅读(236) 评论(0) 推荐(0) 编辑

导航