FreeCAD / FreeCAD/FreeCAD

Sketcher/Expressions: Copying parts of an expression sketch after pasting breaks the expression (Ctrl+C / Ctrl+V).

Open
#15,579 15 comments 0 reactions 0 assignees View on GitHub
Mod: Sketcher no-auto-close Status: Confirmed Topic: Expressions Topic: User Interface Type: Bug
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

If we copy an element with an assigned expression and paste it, then the inserted element will display the correct constraint value, but it will no longer be an expression.
However, there is no way to identify this in the 3D window. To see this you need to open constraints.

https://github.com/user-attachments/assets/a345bb9b-8021-48a7-998a-6dfdc5ffea29

[Copy-Paste.FCStd.del_this_and_zip.zip](https://github.com/user-attachments/files/16348460/Copy-Paste.FCStd.del_this_and_zip.zip)

### Full version info

```shell
OS: Manjaro Linux (KDE/plasma)
Word size of FreeCAD: 64-bit
Version: 0.22.0dev.38314 (Git) AppImage
Build type: Release
Branch: main
Hash: 3fa339e9eb71d34542e463b3f4581857a9e696fb
Python 3.11.9, Qt 5.15.13, Coin 4.0.2, Vtk 9.2.6, OCC 7.7.2
Locale: Russian/Russia (ru_RU)
Installed mods:
* OpenTheme 2024.7.3
* PitchedRoof
```

### Subproject(s) affected?

Sketcher

### Anything else?

_No response_

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