View Issue Details

IDProjectCategoryView StatusLast Update
0003610Expressions[FreeCAD] Bugpublic2018-10-13 12:02
ReporterTheMarksterAssigned Towmayer 
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
PlatformWindows 10 64 bitOSOS Version
Product Version[FreeCAD] 0.18 
Target VersionFixed in Version[FreeCAD] 0.18 
Summary0003610: App::PropertyFloatList not updating in Spreadsheet
Description[url=https://forum.freecadweb.org/viewtopic.php?f=3&t=31096]https://forum.freecadweb.org/viewtopic.php?f=3&t=31096[/url]

When referencing a property of type App::PropertyFloatList from a cell in a spreadsheet the spreadsheet does not get updated when the property changes.
Steps To ReproduceTo 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=python]obj = App.ActiveDocument.addObject("App::FeaturePython","test")
obj.addProperty("App::PropertyFloatList","float")[/code]


Open "float" property (click the ... in the property view) and add 3 values:

0.0
1.0
2.0

Create a new spreadsheet. In cell A1 enter
Code: Select all

= test.float[2]
Cell A1 now shows 2.0 (all good so far)

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.
Additional InformationOS: 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)
Tagsexpressions, python feature, spreadsheet

Activities

wmayer

2018-10-13 12:02

administrator   ~0012018

https://github.com/FreeCAD/FreeCAD/commit/c6745d1b5b0af8284f8dd485046ec570c4ca68e0

Issue History

Date Modified Username Field Change
2018-09-24 17:36 TheMarkster New Issue
2018-09-24 17:36 TheMarkster Tag Attached: expressions
2018-09-24 17:36 TheMarkster Tag Attached: python feature
2018-09-24 17:36 TheMarkster Tag Attached: spreadsheet
2018-09-24 23:35 Kunda1 Status new => confirmed
2018-09-24 23:35 Kunda1 Project FreeCAD => Expressions
2018-10-13 12:02 wmayer Assigned To => wmayer
2018-10-13 12:02 wmayer Status confirmed => closed
2018-10-13 12:02 wmayer Resolution open => fixed
2018-10-13 12:02 wmayer Fixed in Version => 0.18
2018-10-13 12:02 wmayer Note Added: 0012018