FreeCAD 0.15 Windows - import stp file Error

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help

Also, be nice to others! Read the FreeCAD code of conduct!
archang
Posts: 69
Joined: Wed Aug 27, 2014 5:22 am

FreeCAD 0.15 Windows - import stp file Error

Post by archang »

OS: Windows 7
Word size of OS: 32-bit
Word size of FreeCAD: 32-bit
Version: 0.15.4671 (Git)
Branch: releases/FreeCAD-0-15
Hash: 244b3aef360841646cbfe80a1b225c8b39c8380c
Python version: 2.7.8
Qt version: 4.8.6
Coin version: 4.0.0a

When I import the stp file in Windows, the following error occurs:
Traceback (most recent call last):
File "<string>", line 1, in <module>
<class 'Base.FreeCADError'>: cannot read STEP file

However, the stp file import graphics is normal in Ubuntu.
May I ask what is the solution?
test.stp
(410 KiB) Downloaded 242 times
User avatar
sgrogan
Veteran
Posts: 6499
Joined: Wed Oct 22, 2014 5:02 pm

Re: FreeCAD 0.15 Windows - import stp file Error

Post by sgrogan »

Solid works reports "File contains No Solid Data"
CadExchanger opens an empty file.
Normal step import works on a known good file on my system in FreeCAD.

Are you sure this works on Ubuntu?

OS: Windows 7
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.15.4671 (Git)
Branch: releases/FreeCAD-0-15
Hash: 244b3aef360841646cbfe80a1b225c8b39c8380c
Python version: 2.7.8
Qt version: 4.8.6
Coin version: 4.0.0a
OCC version: 6.8.0.oce-0.17
"fight the good fight"
User avatar
shoogen
Veteran
Posts: 2823
Joined: Thu Dec 01, 2011 5:24 pm

Re: FreeCAD 0.15 Windows - import stp file Error

Post by shoogen »

I can open the file in IDA-STEP, gCAD3D-2.20, and FreeCAD
OS: Debian GNU/Linux 7.8 (wheezy)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.16.4838 +367 (Git)
Branch: danfalck/path-module,dev-skiprecompute,dev-bb
Hash: f9c375cfa203f341a085c4ebbde9bbd46b6f760d
Python version: 2.7.3
Qt version: 4.8.2
Coin version: 4.0.0a
OCC version: 6.9.0.dev-f483f2e

I can't open it in CAD Exchanger 2.5.3 (5130) 32-bit using wine 1.4.1
User avatar
sgrogan
Veteran
Posts: 6499
Joined: Wed Oct 22, 2014 5:02 pm

Re: FreeCAD 0.15 Windows - import stp file Error

Post by sgrogan »

@shoogen
Can you save as .step from FreeCAD and post the file?
"fight the good fight"
User avatar
shoogen
Veteran
Posts: 2823
Joined: Thu Dec 01, 2011 5:24 pm

Re: FreeCAD 0.15 Windows - import stp file Error

Post by shoogen »

quite big.
Attachments
test-fc-export.step
(1.12 MiB) Downloaded 118 times
User avatar
sgrogan
Veteran
Posts: 6499
Joined: Wed Oct 22, 2014 5:02 pm

Re: FreeCAD 0.15 Windows - import stp file Error

Post by sgrogan »

Thanks shoogen

Your model opens clean and passes BOP checks in FreeCAD on Win.
CadExchanger opens it a shell
Solid works opens with a "General Geometry error" (see screenshot) which SW was able to heal.

I'll look for the differences in the step files.
Attachments
Test_STEP_FCLinux_to_FCWin.PNG
Test_STEP_FCLinux_to_FCWin.PNG (159.09 KiB) Viewed 3263 times
"fight the good fight"
archang
Posts: 69
Joined: Wed Aug 27, 2014 5:22 am

Re: FreeCAD 0.15 Windows - import stp file Error

Post by archang »

OS: Windows 7
Word size of OS: 32-bit
Word size of FreeCAD: 32-bit
Version: 0.15.4671 (Git)
Branch: releases/FreeCAD-0-15
Hash: 244b3aef360841646cbfe80a1b225c8b39c8380c
Python version: 2.7.8
Qt version: 4.8.6
Coin version: 4.0.0a

Windows import (FreeCAD 0.14) --> NG
Windows import (FreeCAD 0.15) --> NG

OS: Ubuntu 14.04.2 LTS
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.16.4806 (Git)
Branch: master
Hash: a7c346606fe588b0f2faa251e3ae72e9ef833184
Python version: 2.7.6
Qt version: 4.8.6
Coin version: 4.0.0a
OCC version: 6.7.0

Ubuntu import (FreeCAD 0.15) --> OK
Ubuntu import (FreeCAD 0.16) --> OK

The stp file is the same.
User avatar
shoogen
Veteran
Posts: 2823
Joined: Thu Dec 01, 2011 5:24 pm

Re: FreeCAD 0.15 Windows - import stp file Error

Post by shoogen »

archang wrote:OS: Windows 7
Word size of OS: 32-bit
Word size of FreeCAD: 32-bit
Version: 0.15.4671 (Git)
Branch: releases/FreeCAD-0-15
Hash: 244b3aef360841646cbfe80a1b225c8b39c8380c
Python version: 2.7.8
Qt version: 4.8.6
Coin version: 4.0.0a

Windows import (FreeCAD 0.14) --> NG
Windows import (FreeCAD 0.15) --> NG
Did you compile it with OCCT enabled?
archang
Posts: 69
Joined: Wed Aug 27, 2014 5:22 am

Re: FreeCAD 0.15 Windows - import stp file Error

Post by archang »

Sorry! I don't know you meant to say, I installed use the "FreeCAD-0.15.4671_x86_setup.exe".
User avatar
shoogen
Veteran
Posts: 2823
Joined: Thu Dec 01, 2011 5:24 pm

Re: FreeCAD 0.15 Windows - import stp file Error

Post by shoogen »

Code: Select all

grep -P -n "[\x80-\xFF]" test.stp
7965:#9392=DESCRIPTIVE_REPRESENTATION_ITEM('P_NAME','^Z<A7><B7><8F><AB><A9><8F><A2><B4>^Z<8E><E0>^Z<8F><AB><A9>^Z^Z^Z<A7><B3>^Z');
7977:#9416=DESCRIPTIVE_REPRESENTATION_ITEM('DESIGNED','<8F><AA><A2>^Z<8F><AA><A2><8F><AB><C2>');
7989:#9440=DESCRIPTIVE_REPRESENTATION_ITEM('PLACE_1','<8F><A2><F0><8F><AA><D2>');
8004:#9470=DESCRIPTIVE_REPRESENTATION_ITEM('P_NAME_UP','nanoSIM^Z^Z<8F><A2><C2>^Z^Z^Z^Z^Z^Z<8F><A2><B4>^Z<8F><A2><C4>');
Post Reply