FreeCAD / FreeCAD/FreeCAD

Sketcher: Automatic rename of Sketch (after copy-paste operation) seems to be probably causing not-existing internal sketch name and causing probably FAILURE of AdditiveLoft operation

Open
#21,833 8 comments 0 reactions 0 assignees View on GitHub
Mod: Part Design Mod: Sketcher Status: Needs confirmation
Dominant language
C++
Stars
33.6k
Forks
6k
Avg merge
3d 15h
Merged PRs (30d)
196

Description

### Is there an existing issue for this?

- [x] I have searched the existing issues

### Problem description

During my work with AdditiveLoft construction (Design of Air-Duct-pipe-construction) I was facing following Warning/Error message:

**PartDesign::AdditiveLoft: Link(s) to object(s)** 'XXXXXX===>**Not existing Sketch name!' go out of the allowed scope** 'AdditiveLoftYYYY'. **Instead, the linked object(s) reside within 'N/A'.**

Where XXXX was name of Not at all! visible Sketcher, which is probably just Internal Wrong/Faulty/Not_correct name.

This internal error is observed AFTER updates of Spreadscheet/Table variable/parametr (of my construction).

Rename of sketch from FreeCad GUI is NOT solving, and NOT fixing Error/Warning message. It looks like File is broken internally as permanent internal crashed? issue.

Three example FreeCad files to reproduce Issue are provided/attached, and Third file could be Easily used to trigger BRep_API: Command not done (of AdditiveLoft operation when ADDING remainig sketches to complete Component, which I wanted to complete, but I cannot finish mostprobably because of Issues Reported).

I have feeling that WRONG sketcher name MAY cause failure/corruption of some more complex AdditiveLoft operation, and may also cause API BRep_API_Failure......

P.S. Sorry to inform all, that new member Registration [I tryied during 14days] on FreeCad-forum is not possible/broken, therefore I could not get support from more experienced members, because I MAY do some mistakes in my construction/building procedure.

### Full version info

```shell
Issue were confirmed on both:
official FreeCad 1.0.1 release
previous Development windows Build 1.1.0dev.41866 (Git) 2025/05/26 16:31:05

OS: Windows 10 build 19043
Architecture: x86_64
Version: 1.0.1.39285 (Git) Conda
Build type: Release
Branch: (HEAD detached at 1.0.1)
Hash: 878f0b8c9c72c6f215833a99f2762bc3a3cf2abd
Python 3.11.12, Qt 5.15.15, Coin 4.0.3, Vtk 9.3.0, OCC 7.8.1
Locale: Czech/Czech Republic (cs_CZ)
Stylesheet/Theme/QtStyle: FreeCAD Dark.qss/FreeCAD Dark/Fusion
Installed mods:
* 3D_Printing_Tools
* AddonManager 2025.5.1a
* FreeCAD-Documentation-html 1.0.0-alpha
* GDT
* kicadStepUpMod 11.7.1
* offline-documentation 1.0.0-alpha
* toSketch 1.0.1
* WB_Organizer 2024.1.29

Confirmed on Latest Night-Dev-Build release:
OS: Windows 10 build 19043
Architecture: x86_64
Version: 1.1.0dev.41866 (Git)
Build date: 2025/05/26 16:31:05
Build type: Release
Branch: main
Hash: bc5616dbf6cbe3a2d88992dc9572d6f5b5bb502f
Python 3.11.12, Qt 6.8.3, Coin 4.0.3, Vtk 9.3.1, boost 1_86, Eigen3 3.4.0, PySide 6.8.3
shiboken 6.8.3, xerces-c 3.2.5, IfcOpenShell 0.8.2, OCC 7.8.1
Locale: Czech/Czechia (cs_CZ)
Navigation Style/Orbit Style/Rotation Mode: OpenSCAD/Trackball/Drag at cursor
Stylesheet/Theme/QtStyle: FreeCAD Dark.qss/FreeCAD Dark/
Logical DPI/Physical DPI/Pixel Ratio: 96/81.6656/1
Installed mods:
* 3D_Printing_Tools
* AddonManager 2025.5.1a
* FreeCAD-Documentation-html 1.0.0-alpha
* GDT
* kicadStepUpMod 11.7.1
* offline-documentation 1.0.0-alpha
* toSketch 1.0.1
* WB_Organizer 2024.1.29
```

### Subproject(s) affected?

None

### Anything else?

Example1: That renaming of Sketch using FreeCad Gui have NOT solved/fixed Error/Warning message.

[MISS03-AdditiveLoft-0123-AND-34567-Sketch009-problem-start.zip](https://github.com/user-attachments/files/20634896/MISS03-AdditiveLoft-0123-AND-34567-Sketch009-problem-start.zip)

![Image](https://github.com/user-attachments/assets/ba2d2d2b-b273-43e8-abd3-36d6e3f75f35)

Example2: Basic example that Shown NAME of Sketch in FreeCad Gui seems to have NOT same name as internaly reported Sketch by Warning/Error message.

[MISS03-AdditiveLoft-012345-AND-56-start.zip](https://github.com/user-attachments/files/20634904/MISS03-AdditiveLoft-012345-AND-56-start.zip)

![Image](https://github.com/user-attachments/assets/2373bfc3-7835-4b01-993f-58ae2e64d47b)

Example3: This attachment shows situation where MULTIPLE sketch names were reported = Warning/Error.

[MISS03-AdditiveLoft-BPI_Fail_start-position.zip](https://github.com/user-attachments/files/20634920/MISS03-AdditiveLoft-BPI_Fail_start-position.zip)

![Image](https://github.com/user-attachments/assets/b4f35c97-9c92-42bb-93e9-0f87f8d22e97)

>>>>>>>>>>>>>>>>>>>
This picture [probably REDUNDANT] just highlight that Automatic Rename of Sketchers are really not-consistent with PROBABLY internal names of Sketches used for Warnng/Error messages.

![Image](https://github.com/user-attachments/assets/2a392d6f-c483-4f1f-a4d1-f2c78331e23a)

>>>>>>>>>>>>>>>>>>>
Procedure to trigger BRep_Api Command not done: first adding (remaining) Sketches to active AdditiveLoft is needed:

![Image](https://github.com/user-attachments/assets/b7ed001c-0fed-4faa-8dd0-cf6465d17323)

And after clicking OK Button, CPU utilisation will overload my computer ( high amount of memory is offupied), AND then operation will Fail:

![Image](https://github.com/user-attachments/assets/d0fc283e-c98b-44ca-bb2a-35360739c488)

>>>>>>>>>>>>>>>>>>>

Please PRIORITY of this ticket should be WRONG/Faulty Sketcher NAMES, to split Complex Reported Issues into some smaller ==> Easier problems to be analyzed/fixed/repaired....

Thank you very much in advance!

### Code of Conduct

- [x] I agree to follow this project's Code of Conduct

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.