The spreadsheet does not get updated when the contents of App::PropertyFloatList are updated.
To recreate:
Create a feature python object and add a property of type App::PropertyFloatList to it. Add 3 values to it using the property editor: 0.0,1.0,2.0. Create a new spreadsheet. In cell A1 enter the reference to one of the floats in the property list. Update the list. Spreadsheet cell does not update.
Create the feature python object:
Code: Select all
obj = App.ActiveDocument.addObject("App::FeaturePython","test")
obj.addProperty("App::PropertyFloatList","float")
0.0
1.0
2.0
Create a new spreadsheet. In cell A1 enter
Code: Select all
= test.float[2]
Open the "float" property again and change it to:
0.0
1.0
2.2
Recompute the document.
Expectation: spreadsheet cell A1 updates to 2.2, but it doesn't update (stays at 2).
This same technique works with PropertyFloatList items when referencing from sketcher constraints and from other properties, so the change signal is getting emitted when the property changes. The signal that the float list property was updated is either not being received by the spreadsheet module or isn't being acted upon.
Edit: forgot to include info
OS: Windows 10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.14784 (Git)
Build type: Release
Branch: master
Hash: ac21bcc35c56b360e03c646f5cfdcf15e5769717
Python version: 2.7.14
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.2.0
Locale: English/UnitedStates (en_US)