Skip to content

Operation on internal face fails on first attempt after closing sketch #145

Description

@uhelfenstein

Problem description

If I close the sketch, select internal face and try to execute an operation it fails with the message "Cannot use selected object. Selected object must belong to the active body". If I select and execute the operation again, it will work as expected.

Image

Workbench affected?

Part Design

Steps to reproduce

  1. Create a drawing with a closed shape
  2. Close the drawing
  3. Select the internal face from the closed shape
  4. Activate an operation (e.g. pad)
  5. The message "Cannot use selected object. Selected object must belong to the active body" appears
  6. Close the message
  7. Select the internal face again and repeat the operation -> now it works as expected
  8. Open and close the sketch
  9. Select the internal face
  10. Start the operation -> Error Message.

Expected behavior

Operation on the first attempt without the error message.

Actual behavior

Error Message on the first attempt

260517151628-2277.mp4

Development version About Info (in Safe Mode)

I tried on the latest AstoCAD and FreeCAD with the same behavior. 

OS: Windows 11 build 22631
Architecture: x86_64
Version: 1.1.0dev.20260420 (Git shallow)
Build date: 2026/04/20 16:26:14
Build type: Release
Branch: AstoCAD
Hash: dbb04c744b862e5daa8ffdcccaa2066f971f7077
Python 3.11.15, Qt 6.8.3, Coin 4.0.8, Vtk 9.3.1, boost 1_86, Eigen3 3.4.0, PySide 6.8.3
shiboken 6.8.3, xerces-c 3.3.0, IfcOpenShell 0.8.2, OCC 7.8.1
Locale: German/Switzerland (de_CH)
Stylesheet/Theme/QtStyle: FreeCAD Dark.qss/Dark/
Navigation Style/Orbit Style/Rotation Mode: TinkerCAD/Rounded Arcball/Object center
Logical DPI/Physical DPI/Pixel Ratio: 96/141.585/1
Installed mods:
  * Curves workbench 0.6.70
  * Fasteners Workbench 0.5.51

Last known good version (optional)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions