#region 将handle转换为objectid
        /// <summary>
        /// 将handle转换为objectid
        /// </summary>
        /// <param name="db">database</param>
        /// <param name="handle">handle字符串</param>
        /// <returns>ObjectId</returns>
        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

 

相关文章:

  • 2022-12-23
  • 2021-05-21
  • 2022-12-23
  • 2022-02-16
  • 2021-08-17
  • 2022-12-23
  • 2022-02-20
  • 2021-12-01
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-02-25
  • 2021-07-06
  • 2021-06-15
  • 2021-12-23
  • 2022-01-17
相关资源
相似解决方案