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
- 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)

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)

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)

>>>>>>>>>>>>>>>>>>>
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.

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

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

>>>>>>>>>>>>>>>>>>>
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
Assessment
This issue has not been assessed yet.