Problem importing Step (.stp) - File

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!
User avatar
NormandC
Veteran
Posts: 18589
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: Problem importing Step (.stp) - File

Post by NormandC »

Those calls refer to libraries from the OCC geometric kernel. I'm not sure there's anything that can be done here. It's possible that the original STEP file is faulty. It may be surprising, but some commercial CAD packages have very poor STEP export capability.

You could try importing the STEP file in another CAD program or viewer. For example there is CAD Assistant, a viewer made by Open Cascade (maker of the OCC kernel that FreeCAD uses). There's a Windows version. https://www.opencascade.com/content/cad-assistant
wmayer
Founder
Posts: 20321
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: Problem importing Step (.stp) - File

Post by wmayer »

Traceback (most recent call last):
File "<string>", line 1, in <module>
<type 'exceptions.RuntimeError'>: Access violation
Traceback (most recent call last):
File "<string>", line 1, in <module>
<type 'exceptions.RuntimeError'>: Access violation
The Access violation message usually is an indication that a segmentation fault occurred somewhere. Because on Windows FreeCAD is built with the SEH option the application in many cases survive the segmentation fault. There is a good chance that the bug is with OCCT 7.2.

Above you said that it imports fine with CAD Assistant which is also based on OCCT. Can you figure out on which OCCT version your installation of CAD Assistant depends on?
arknut
Posts: 7
Joined: Mon Oct 30, 2023 8:44 pm

Re: Problem importing Step (.stp) - File

Post by arknut »

Latest version of FreeCAD 0.21.1 works well displaying the whole composed picture, importing correctly the external references and combining them. The only minor complain is that it shows the external references in the Combo View also alongside with the main (*MASTER) tree, which I'm not sure it that should happen.

Other apps don't do that which I think looks nicer.

Image

Image

Do you think a patch should be required?
Attachments
FreeCAD.jpg
FreeCAD.jpg (165.95 KiB) Viewed 172 times
cad-assistant.jpg
cad-assistant.jpg (106.5 KiB) Viewed 172 times
Post Reply