Import of multi-object STEP file leads to "Bad Object"

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!
Post Reply
ctgreybeard
Posts: 6
Joined: Mon Jul 06, 2020 4:43 pm
Location: Bethel, CT, USA

Import of multi-object STEP file leads to "Bad Object"

Post by ctgreybeard »

Freecad version:

Code: Select all

OS: macOS 10.16
Word size of FreeCAD: 64-bit
Version: 0.20.29177 (Git)
Build type: Release
Branch: (HEAD detached at 0.20)
Hash: 68e337670e227889217652ddac593c93b5e8dc94
Python 3.9.13, Qt 5.12.9, Coin 4.0.0, Vtk 9.1.0, OCC 7.5.3
Locale: C/Default (C)
Installed mods: 
  * Behave-Dark-Colors 0.1.1
  * ProDarkThemePreferencePack 1.0.0
  * Render 2022.2.0
STEP file download: https://cdn-learn.adafruit.com/assets/a ... 1650568029

1. Create a New empty document.
2. Ensure "Enable STEP compound merge" is OFF in Import/Export (STEP) preferences.
3. Import the STEP file (You will be prompted to Save the file, pick a name)
4. You will see three bodies (Parts?) created.
5. Create a new Body
6. Try dragging one of the parts (I am using the small Top part) into the Body
7. Error pop-up

Code: Select all

Bad Object "Unnamed#Part__Feature002 (Part::Feature) linked to the Origin of Unnamed#Body"
I can't seem to make it work although someone on Reddit tried it and it apparently worked for them.

I must be doing something wrong but I don't know what that might be.
Attachments
Screen Shot 2022-08-02 at 9.13.12 PM.png
Screen Shot 2022-08-02 at 9.13.12 PM.png (862.43 KiB) Viewed 1057 times
User avatar
thomas-neemann
Veteran
Posts: 11940
Joined: Wed Jan 22, 2020 6:03 pm
Location: Osnabrück DE 🇩🇪
Contact:

Re: Import of multi-object STEP file leads to "Bad Object"

Post by thomas-neemann »

ctgreybeard wrote: Wed Aug 03, 2022 1:25 am ...
in realthuder, it is posible
Bildschirmfoto_2022-08-03_07-26-08.png
Bildschirmfoto_2022-08-03_07-26-08.png (34.49 KiB) Viewed 979 times
OS: Ubuntu 20.04.1 LTS (XFCE/xubuntu)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 2022.704.28821 (Git) AppImage
Build type: Release
Branch: LinkStage3
Hash: c83a0368027dcdb972bfb3e0a00fbf9c26536fcd
Python version: 3.9.13
Qt version: 5.12.9
Coin version: 4.0.1
OCC version: 7.5.3
Locale: German/Germany (de_DE)


https://github.com/realthunder/FreeCAD/releases
Gruß Dipl.-Ing. (FH) Thomas Neemann

https://www.youtube.com/@thomasneemann5 ... ry=freecad
User avatar
papyblaise
Veteran
Posts: 8011
Joined: Thu Jun 13, 2019 4:28 pm
Location: France

Re: Import of multi-object STEP file leads to "Bad Object"

Post by papyblaise »

for me, it works very well
pay attention to the reported overlap
Attachments
v9.FCStd
(98 KiB) Downloaded 13 times
v9.JPG
v9.JPG (41.27 KiB) Viewed 927 times
User avatar
easyw-fc
Veteran
Posts: 3633
Joined: Thu Jul 09, 2015 9:34 am

Re: Import of multi-object STEP file leads to "Bad Object"

Post by easyw-fc »

to be able to compare the result we need to apply the same STEP import options

EDIT:
a workaround is to add a binder
binding-option.FCStd
(149.31 KiB) Downloaded 15 times
ctgreybeard
Posts: 6
Joined: Mon Jul 06, 2020 4:43 pm
Location: Bethel, CT, USA

Re: Import of multi-object STEP file leads to "Bad Object"

Post by ctgreybeard »

papyblaise wrote: Wed Aug 03, 2022 7:10 am for me, it works very well
pay attention to the reported overlap
Yes, it is that very overlap which prompted me to try this.

Did you do the exact same steps I did? If not, then what steps did you follow? If Yes, then what could be the difference that causes mine to fail?
ctgreybeard
Posts: 6
Joined: Mon Jul 06, 2020 4:43 pm
Location: Bethel, CT, USA

Re: Import of multi-object STEP file leads to "Bad Object"

Post by ctgreybeard »

easyw-fc wrote: Wed Aug 03, 2022 7:53 am to be able to compare the result we need to apply the same STEP import options

EDIT:
a workaround is to add a binder
binding-option.FCStd
Can you elaborate a bit and explain what you mean?

Did you try the same steps that I did and get different results? If so, what could be the difference?

Is that error a bug or user error in your opinion? I don’t rule out user error as I am fairly new to Freecad.
User avatar
easyw-fc
Veteran
Posts: 3633
Joined: Thu Jul 09, 2015 9:34 am

Re: Import of multi-object STEP file leads to "Bad Object"

Post by easyw-fc »

ctgreybeard wrote: Wed Aug 03, 2022 12:03 pm Can you elaborate a bit and explain what you mean?
the other users should have used the same STEP import option to be able to compare their results with your
go to FC Preferences
Image
just disable the first checkbox in the 'Import' section
ctgreybeard wrote: Wed Aug 03, 2022 12:03 pm Did you try the same steps that I did and get different results? If so, what could be the difference?
same results with the same error
ctgreybeard wrote: Wed Aug 03, 2022 12:03 pm Is that error a bug or user error in your opinion? I don’t rule out user error as I am fairly new to Freecad.
a bug imo
zanga
Posts: 5
Joined: Thu Dec 14, 2023 2:24 pm

Re: Import of multi-object STEP file leads to "Bad Object"

Post by zanga »

Hello,
Unfortunately I have the same issue while trying to import this step file: https://github.com/SuperHouse/AQS/blob/ ... e-v16.step

Code: Select all

OS: Windows 10 build 19045
Word size of FreeCAD: 64-bit
Version: 0.21.1.33694 (Git)
Build type: Release
Branch: (HEAD detached at 0.21.1)
Hash: f6708547a9bb3f71a4aaade12109f511a72c207c
Python 3.10.12, Qt 5.15.8, Coin 4.0.0, Vtk 9.2.5, OCC 7.6.3
Locale: English/Ireland (en_IE)
Installed mods: 
  * Curves 0.6.18
  * sheetmetal 0.3.13

Code: Select all

09:15:09  Traceback (most recent call last):
  File "<string>", line 1, in <module>
<class 'RuntimeError'>: Bad object "Unnamed#AQS_Display_Case_v16"(App::Part) linked to the Origin of "Unnamed#Body"
Post Reply