当前位置: 代码迷 >> 综合 >> C#ObjectArx Cad加载块符号(用于成图需要)
  详细解决方案

C#ObjectArx Cad加载块符号(用于成图需要)

热度:72   发布时间:2023-12-17 03:56:54.0
        /// <summary>/// 加载管点的符号库(block)/// </summary>/// <param name="foderPath">文件夹路径</param>public static void LoadPointSymbols(String foderPath){try{DirectoryInfo TheFolder = new DirectoryInfo(foderPath);if (!TheFolder.Exists)return;Document doc = Application.DocumentManager.CurrentDocument;doc.AddBlockDefinition(foderPath);}catch (Exception ex){throw;}}