- 积分
- 155
- 明经币
- 个
- 注册时间
- 2012-12-4
- 在线时间
- 小时
- 威望
-
- 金钱
- 个
- 贡献
-
- 激情
-
|

楼主 |
发表于 2012-12-28 16:50:52
|
显示全部楼层
找到了,是这样的:
string newGroupName = "TEXT" ;
Group gp = new Group(newGroupName, true);
DBDictionary dict = (DBDictionary)trans.GetObject(PublicMethod.CurrentDB.GroupDictionaryId, Autodesk.AutoCAD.DatabaseServices.OpenMode.ForWrite);
dict.SetAt(newGroupName, gp);
if (ids == null)
{
PublicMethod.ShowMessage("\n 用户取消!");
return;
}
gp.Append(objIDsCode);
trans.AddNewlyCreatedDBObject(gp, true); |
|