跳到主要內容

發表文章

目前顯示的是 5月 2, 2021的文章

FreeCAD、IfcOpenShell 安裝:Ubuntu / Xubuntu

目前 FreeCAD 最新穩定版是 0.19。 FreeCAD 安裝 軟體中心 提供 0.18 版安裝。 免安裝版 提供 AppImage 單一執行檔下載( FreeCAD Download )。 PPA 由於軟體中心提供的不是最新版,使用者可以加入 FreeCAD 維護團隊的軟體庫 PPA,以獲得最新穩定版的 FreeCAD。 PPA 網址及添加方法: FreeCAD Stable Releases : “FreeCAD maintainers” team 添加完後,更新軟體庫資訊: sudo apt-get update 安裝 FreeCAD sudo apt-get install freecad IfcOpenShell 安裝 IfcOpenShell 是開源的軟體函式庫,以 Python 程式語言撰寫,幫助軟體開發者處理 ifc 格式檔案。FreeCAD 必須要有 IfcOpenShell 才能匯出、匯入 ifc 格式檔案。 FreeCAD 的免安裝 AppImage 軟體包內含 IfcOpenShell,但以 PPA 方式安裝的 FreeCAD 則須要另外安裝 IfcOpenShell。 啓動 FreeCAD,到 Python Consolo: import sys print(sys.path) 列出應用程式的相關路徑,找到類似路徑如: /usr/local/lib/python3.8/dist-packages/  得知 FreeCAD 使用的 Python3.8,到 IfcOpenShell-python 網站下載相對應的作業系統及Python 版本如 IfcOpenShell-python for python 3.8 64bit Linux 。 下載下來的檔案是 zip 壓縮檔。將其解壓縮,得到一個 ifcopenshell 資料夾。用以下指令將 ifcopenshell 資料夾移到 /usr/local/lib/python3.8/dist-packages/ 路徑內: sudo mv -t /usr/local/lib/python3.8/dist-packages/ ifcopenshell/ References: IfcOpenShell - FreeCAD Documentation