使用Foxfly.Net读取STEP文件

Foxfly.Net是具备基本的几何建模和CAD文件读取功能。本文主要介绍读取STP/STEP文件的使用方法。

1.初始化

项目中引入FoxflyNet.dll程序集,在Program.cs中初始化建模引擎

        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            foxfly.ModelingEngine.Initialize();
            Application.Run(new Form1());
        }

  

2.读取STP文档内容

相关类:

  • XdeDocument

  • XdeLabel

  • XdeLabelIterator

2.1 打开文件

详细过程和代码参考链接

原文地址:https://www.cnblogs.com/anycad/p/11072724.html