FreeCAD-library icon indicating copy to clipboard operation
FreeCAD-library copied to clipboard

Spreadsheet references are not updated when parts are added and spreadsheet names are changed

Open azuk opened this issue 3 years ago • 1 comments

There are parts in the library that contain spreadsheets. For example, each sprocket part in the directory https://github.com/FreeCAD/FreeCAD-library/tree/master/Mechanical%20Parts/Chains/Sprocket/ISO%20606/Simplex%20%201%C2%BDx1 contains a spreadsheet named "Data" that contains parameters for the part.

When I add the first sprocket to my empty document, all is well. When I add another sprocket, the system automatically renames second sprocket's "Data" spreadsheet to "Data001". However, references to spreadsheet cells are not renamed -- they are not <<Data001>>.Wt, they are <<Data>>.Wt. In other words, the second sprocket uses the parameters of the one that was added first.

OS: Ubuntu 20.04.3 LTS (KDE/plasma) Word size of FreeCAD: 64-bit Version: 0.20.24436 (Git) Build type: Debug Branch: master Hash: bf527ba5ed9cbde0813e702c2f3793fb55f5be7c Python version: 3.8.10 Qt version: 5.12.8 Coin version: 4.0.0 OCC version: 7.3.0 Locale: English/United States (en_US)

azuk avatar Oct 10 '21 01:10 azuk