Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicate object results in <Exception> Object can only be in a single GeoFeatureGroup #6278

Open
FreeCAD-Bug-Importer opened this issue Feb 7, 2022 · 5 comments
Labels
Bug This issue or PR is related to a bug Missing: feedback If feedback is requested WB Sketcher Related to the Sketcher Workbench

Comments

@FreeCAD-Bug-Importer
Copy link
Collaborator

FreeCAD-Bug-Importer commented Feb 7, 2022

Issue imported from https://tracker.freecad.org/view.php?id=4775

  • Reporter: kisolre
  • Date submitted: 10/31/2021
  • FreeCAD version: 0.2
  • Category: Bug
  • Status: new
  • Tags:

Original report text

When duplicating a PD body object sometimes features from the newly created body are mapped to the duplicated body.

image
image

Additional information

Forum thread

Steps to reproduce

Example file: ColumnSpiral with only one column.FCStd.gz

Start FreeCAD.
Create new Body.
Draw something in a sketch, pad sketch.
Select Body.
Invoke Duplicate selected object, confirm dialog.
Error is thrown:

16:29:00  Traceback (most recent call last):
  File "<string>", line 1, in <module>
<class 'RuntimeError'>: Object can only be in a single GeoFeatureGroup

and sketch from the second body is mapped to a plane in the first body.

FreeCAD Info

OS: Windows 8.1 Version 6.3 (Build 9600)
Word size of FreeCAD: 64-bit
Version: 0.20.26255 (Git)
Build type: Release
Branch: master
Hash: 2a9fd08e7f74630c1ad25ec06d984ce06d609d13
Python version: 3.8.6+
Qt version: 5.15.2
Coin version: 4.0.1
OCC version: 7.5.0
Locale: Bulgarian/Bulgaria (bg_BG)

Other bug information

  • Priority: normal
  • Severity: major
  • Category: Bug
  • OS: Windows
  • Platform: PC
  • Updated: 10/31/2021
@FreeCAD-Bug-Importer FreeCAD-Bug-Importer added WB Sketcher Related to the Sketcher Workbench Bug This issue or PR is related to a bug labels Feb 7, 2022
@kisolre
Copy link
Contributor

kisolre commented Jun 5, 2022

Still shows the same error on PD Body duplication.

OS: Windows 10 Version 2009
Word size of FreeCAD: 64-bit
Version: 0.20.29035 (Git)
Build type: Release
Branch: master
Hash: 7e638a624e0fad12691a4ac1dd82b57d2dd1146a
Python 3.8.6+, Qt 5.15.2, Coin 4.0.1, OCC 7.5.3
Locale: Bulgarian/Bulgaria (bg_BG)
Installed mods: 
  * 3DfindIT 1.2.0
  * A2plus 0.4.56
  * AirPlaneDesign 0.4.0
  * AnimationFreeCAD 1.0.0
  * ArchTextures
  * Assembly3 0.11.3
  * Assembly4 0.11.12
  * BIM 2021.12.0
  * BOLTSFC
  * CfdOF 1.16.4
  * CubeMenu
  * CurvedShapes 1.0.3
  * Curves 0.3.0
  * CycloidGearBox
  * Defeaturing
  * Design456
  * DesignSPHysics 0.6.1-2201-31-01
  * dodo
  * DynamicData 2.46.0
  * ExplodedAssembly
  * fasteners 0.3.41
  * FCGear 1.0.0
  * FCPDWorkbench 0.2.0
  * FEM_FrontISTR 0.1.0
  * frame
  * freecad.xray 2022.4.17
  * FreeCAD_mcm_addon
  * Help 1.0.0-alpha
  * InvGears 0.1.2
  * kicadStepUpMod 10.12.4
  * lattice2 1.0.0
  * Launcher
  * MakerWorkbench
  * Manipulator 1.4.3
  * Mechatronic
  * MeshRemodel 1.8919.0
  * MnesarcoUtils 0.1.0
  * Nikra-DAP
  * nurbs
  * OpticsWorkbench 1.0.8
  * ose-piping
  * parts_library
  * PlacementTools
  * Plot 2022.4.17
  * Pyramids-and-Polyhedrons
  * Reinforcement
  * Render 2022.1.0
  * Rocket 2.4.1
  * SearchBar 1.0.1
  * SelectorToolbar
  * sheetmetal 0.2.49
  * Ship 2022.4.11
  * Silk
  * SlopedPlanesMacro
  * StemfieWB
  * symbols_library
  * ThreadProfile 1.81.0
  * toSketch
  * Woodworking 1.0.0
  * workfeature
  * workfeature-macro

@luzpaz
Copy link
Contributor

luzpaz commented Aug 13, 2023

Added images and example file (from forum thread) in to this ticket

@luzpaz luzpaz changed the title Duplicate object results in <Exception> Object can only be in a single GeoFeatureGroup Duplicate object results in <Exception> Object can only be in a single GeoFeatureGroup Aug 13, 2023
@luzpaz luzpaz added the Missing: feedback If feedback is requested label Aug 13, 2023
@kisolre
Copy link
Contributor

kisolre commented Aug 15, 2023

Still happens with the release 0.21.0

@luzpaz
Copy link
Contributor

luzpaz commented Sep 20, 2023

@PaddleStroke i know you're busy, Would you have a moment to weigh-in on this ? TIA 🙏

@PaddleStroke
Copy link
Contributor

I don't know this part of the code so I wouldn't be very helpful.

However what I can say is that this 'duplicate object' command is wrong on a UI standpoint. We should be able to do simple copy paste of object.
By the way if you do copy paste you don't have the same error message as the duplicate command.

I don't understand the point of this duplicate command. And copy paste works (even though the copy paste is needlessly complex with the dependency window). It should probably be removed imo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug This issue or PR is related to a bug Missing: feedback If feedback is requested WB Sketcher Related to the Sketcher Workbench
Projects
None yet
Development

No branches or pull requests

4 participants