#region 将handle转换为objectid ////// 将handle转换为objectid /// /// database /// handle字符串 ///ObjectId public static ObjectId GetObjectId(this Database db, string handle) { Handle h = new Handle(Int64.Parse(handle, NumberStyles.AllowHexSpecifier)); ObjectId id = ObjectId.Null; db.TryGetObjectId(h, out id); return id; } #endregion