Coder Social home page Coder Social logo

khimaros / freecad-build Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 0.0 147 KB

build tools for FreeCAD based CAD projects, including Git diff integration and headless part export

License: GNU General Public License v3.0

Makefile 6.06% Python 63.04% Shell 30.90%
cad fcstd file-converter freecad headless meshdiff step

freecad-build's People

Contributors

khimaros avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

freecad-build's Issues

failed to generate diff

I'm getting the following error when I attempt to use this tool to diff two FreeCAD files

!!! failed to generate diff for /tmp/meshdiff.GzagNrvO/modified/intake.step in /tmp/meshdiff.GzagNrvO

Steps to Reproduce

Here's the commands I ran:

git clone https://github.com/khimaros/freecad-build.git

# main repo with old file to diff
git clone https://github.com/Eco-Libre/life-line.git
mv life-line/ eco-libre-life-line
cd eco-libre-life-line
git reset --hard e253913e2b06574ef150e16a960c00321d0d160f
cd ..

# forked repo with new file to diff
git clone https://github.com/Matterhorn777/life-line.git
mv life-line matterhorn777-life-line
cd matterhorn777-life-line
git reset --hard 362ec16ce9a9391e0a2766ea2841d9d87ef574eb
cd ..

# make step files
cd freecad-build/
./freecad-export ../eco-libre-life-line/intake.FCStd ../eco-libre-life-line/intake.step
./freecad-export ../matterhorn777-life-line/intake.FCStd ../matterhorn777-life-line/intake.step

# do diff
./freecad-diff ../eco-libre-life-line/intake.step ../matterhorn777-life-line/intake.step 

Full Output

Here is the complete output of the last command (with error and traceback)

user@eco-libre:~/sandbox/freecad-build$ ./freecad-diff ../eco-libre-life-line/intake.step ../matterhorn777-life-line/intake.step 
>>> starting freecad-diff ../eco-libre-life-line/intake.step ../matterhorn777-life-line/intake.step
FreeCAD 0.20.2, Libs: 0.20.2R
(c) Juergen Riegel, Werner Mayer, Yorik van Havre and others 2001-2022
FreeCAD is free and open-source software licensed under the terms of LGPL2+ license.
FreeCAD wouldn't be possible without FreeCAD community.
  #####                 ####  ###   ####  
  #                    #      # #   #   # 
  #     ##  #### ####  #     #   #  #   # 
  ####  # # #  # #  #  #     #####  #   # 
  #     #   #### ####  #    #     # #   # 
  #     #   #    #     #    #     # #   #  ##  ##  ##
  #     #   #### ####   ### #     # ####   ##  ##  ##

### loading document /tmp/meshdiff.nUaFqGNL/previous/intake.step step
### active document 
Recompute......
### finding part with label intake
### found labeled part
### found usable part Unnamed#Part__Feature Part::Feature
Traceback (most recent call last):
  File "<string>", line 1, in <module>
<class 'OSError'>: cannot read STEP file
Exception while processing file: /tmp/meshdiff.nUaFqGNL/previous.step [cannot read STEP file]
FreeCAD 0.20.2, Libs: 0.20.2R			(100 %)		
(c) Juergen Riegel, Werner Mayer, Yorik van Havre and others 2001-2022
FreeCAD is free and open-source software licensed under the terms of LGPL2+ license.
FreeCAD wouldn't be possible without FreeCAD community.
  #####                 ####  ###   ####  
  #                    #      # #   #   # 
  #     ##  #### ####  #     #   #  #   # 
  ####  # # #  # #  #  #     #####  #   # 
  #     #   #### ####  #    #     # #   # 
  #     #   #    #     #    #     # #   #  ##  ##  ##
  #     #   #### ####   ### #     # ####   ##  ##  ##

### loading document /tmp/meshdiff.nUaFqGNL/modified/intake.step step
### active document 
Recompute......
### finding part with label intake
### found labeled part
### found usable part Unnamed#Part__Feature Part::Feature
Traceback (most recent call last):
  File "<string>", line 1, in <module>
<class 'OSError'>: cannot read STEP file
Exception while processing file: /tmp/meshdiff.nUaFqGNL/modified.step [cannot read STEP file]
FreeCAD 0.20.2, Libs: 0.20.2R			(100 %)		
(c) Juergen Riegel, Werner Mayer, Yorik van Havre and others 2001-2022
FreeCAD is free and open-source software licensed under the terms of LGPL2+ license.
FreeCAD wouldn't be possible without FreeCAD community.
  #####                 ####  ###   ####  
  #                    #      # #   #   # 
  #     ##  #### ####  #     #   #  #   # 
  ####  # # #  # #  #  #     #####  #   # 
  #     #   #### ####  #    #     # #   # 
  #     #   #    #     #    #     # #   #  ##  ##  ##
  #     #   #### ####   ### #     # ####   ##  ##  ##

### loading document /tmp/meshdiff.nUaFqGNL/modified.step step
Traceback (most recent call last):
  File "<string>", line 1, in <module>
<class 'OSError'>: cannot read STEP file
Exception while processing file: /tmp/meshdiff.nUaFqGNL/modified.step [cannot read STEP file]
Traceback (most recent call last):
  File "<string>", line 1, in <module>
<class 'OSError'>: cannot read STEP file
Exception while processing file: /tmp/meshdiff.nUaFqGNL/previous.step [cannot read STEP file]
Traceback (most recent call last):
  File "<string>", line 1, in <module>
<class 'OSError'>: cannot read STEP file
Exception while processing file: /tmp/meshdiff.nUaFqGNL/diff-output.step [cannot read STEP file]
!!! failed to generate diff for /tmp/meshdiff.nUaFqGNL/modified/intake.step in /tmp/meshdiff.nUaFqGNL
user@eco-libre:~/sandbox/freecad-build$

Additional Context

I received this error on Debian 12 using the latest version of FreeCAD available in the apt repos as of 2023-12-09

user@eco-libre:~$ cat /etc/issue
Debian GNU/Linux 12 \n \l

user@eco-libre:~$ uname -a
Linux eco-libre 6.1.62-1.qubes.fc32.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Nov 14 07:11:33 CET 2023 x86_64 GNU/Linux
user@eco-libre:~$ sudo dpkg -l | grep -i freecad
ii  freecad                                       0.20.2+dfsg1-4                          all          Extensible Open Source CAx program
ii  freecad-common                                0.20.2+dfsg1-4                          all          Extensible Open Source CAx program - common files
ii  freecad-python3                               0.20.2+dfsg1-4                          amd64        Extensible Open Source CAx program - Python 3 binaries
ii  libfreecad-python3-0.20                       0.20.2+dfsg1-4                          amd64        Extensible Open Source CAx program - Python 3 library files
user@eco-libre:~$ 

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.