Unexpected behavior when copy-pasting sub-sheets
Description
Application: KiCad Schematic Editor (64-bit)
Steps to reproduce:
- Open a new project in the schematic editor and call it "Fladder"
- Create a hierarchical subsheet (just leave name as "Untitled Sheet" and filename as "untitled.kicad_sch"
- Highlight the subsheet so it is marked blue and press "Ctrl-C"
- Find a blank place on the screen and press "Ctrl-V"
- There is now a subsheet copy with "Untitled Sheet1" and filename as "untitled.kicad_sch"
- Right-click on the new subsheet, choose "Properties", rename the sheet "Power" and change filename to "Power.kicad_sch"
- Click OK. Kicad now comes with a popup "Create new file 'Power.kicad_sch' with contents of 'untitled.kicad_sch'? Yes/No"
The expectation here would be that answering "Yes" creates a "Power.kicad_sch" with the contents of "untitled.kicad_sch", answering no creates a blank "Power.kicad_sch". That is not what happens. Answering "Yes" does create a "Power.kicad_sch" with the contents of "untitled.kicad_sch", but answering "No" just jumps back to "Sheet Properties" In effect that means that there is no other meaningful answer than "Yes", and the sub-sheet you create cannot be edited to be anything but a copy of the sheet it is copied from.
Not sure if it is a bug or just "stunted functionality" (aka. a feature request). It is an advantage to be able to just copy and paste sub-sheets because you don't need to worry about the sizing, and it is easier than going to the toolbar and select the icon. It would be even more of an advantage if you could choose between a verbatim copy and a blank copy.
KiCad Version
Application: KiCad Schematic Editor (64-bit)
Application: KiCad x64 on x64
Version: 8.0.2, release build
Libraries:
wxWidgets 3.2.4
FreeType 2.12.1
HarfBuzz 8.3.0
FontConfig 2.14.2
libcurl/8.5.0-DEV Schannel zlib/1.3
Platform: Windows 11 (build 22621), 64-bit edition, 64 bit, Little endian, wxMSW
Build Info:
Date: Apr 27 2024 23:05:17
wxWidgets: 3.2.4 (wchar_t,wx containers)
Boost: 1.83.0
OCC: 7.7.1
Curl: 8.5.0-DEV
ngspice: 42
Compiler: Visual C++ 1936 without C++ ABI
Build settings: