#12124·FreeCAD

Core: UserEditModes not passed to `App::GeometryPython` objects correctly

Author: Roy-043Created Jan 26, 2024Updated Sep 30, 2026
LabelsType: BugMod: CoreStatus: Confirmedno-auto-close

Is there an existing issue for this?

  • I have searched the existing issues

Problem description

UserEditModes are not passed to App::GeometryPython objects correctly.

Steps to reproduce:

  1. Edit Mod/Arch/ArchBuildingPart.py: Add print(mode) as the 1st line in the setEdit function.
  2. Restart.
  3. Switch to the Arch WB.
  4. Create an Arch_BuildingPart.
  5. Change UserEditMode to Cutting.
  6. Double-click the BuildingPart in the Tree view.
  7. Result: mode should be 2, but is zero.

Full version info

OS: Windows 8 build 9600
Word size of FreeCAD: 64-bit
Version: 0.22.0dev.35720 (Git)
Build type: Release
Branch: main
Hash: 00cd50bbf49c810555899efe112ec7595c76cd3a
Python 3.10.13, Qt 5.15.8, Coin 4.0.2, Vtk 9.2.6, OCC 7.6.3
Locale: Dutch/Netherlands (nl_NL)
Installed mods:

Subproject(s) affected?

Core

Anything else?

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct