[Solved] Spreadsheet issue with App::PropertyFloatList

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help

Also, be nice to others! Read the FreeCAD code of conduct!
Post Reply
TheMarkster
Veteran
Posts: 5505
Joined: Thu Apr 05, 2018 1:53 am

[Solved] Spreadsheet issue with App::PropertyFloatList

Post by TheMarkster »

*** Issue now resolved with https://github.com/FreeCAD/FreeCAD/comm ... 70c4ca68e0 ***


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")
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 go 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.

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)
Last edited by TheMarkster on Sat Oct 13, 2018 6:12 pm, edited 1 time in total.
User avatar
DeepSOIC
Veteran
Posts: 7896
Joined: Fri Aug 29, 2014 12:45 am
Location: used to be Saint-Petersburg, Russia

Re: Spreadsheet issue with App::PropertyFloatList

Post by DeepSOIC »

confirmed.


OS: Windows 10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.14495 (Git)
Build type: Release
Branch: master
Hash: c717d1121d888fe6cfbd8971b5f59311a34b37bc
Python version: 2.7.14
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.2.0
Locale: Russian/RussianFederation (ru_RU)
eivindkvedalen
Posts: 602
Joined: Tue Jan 29, 2013 10:35 pm

Re: Spreadsheet issue with App::PropertyFloatList

Post by eivindkvedalen »

TheMarkster wrote: Sat Sep 22, 2018 9:29 pm The spreadsheet does not get updated when the contents of App::PropertyFloatList are updated.
...
Confirmed. Please register this in the bug tracker.

Eivind
TheMarkster
Veteran
Posts: 5505
Joined: Thu Apr 05, 2018 1:53 am

Re: Spreadsheet issue with App::PropertyFloatList

Post by TheMarkster »

Post Reply