I'm probably blind. Checking out some things and ended up with this simple construction.
file attached.
Load File
Click on Spreadsheet to select it.
^C to copy
=> Result: DocumentObject::getOutListRecursive(): cyclic dependency detected!
I don't see any cycles there.
The cube gets its dimensions from the spreadsheet.
The cube's dimensions are used in expressions in other cells in the spreadsheet.
But there are no cycles.
The error can be delayed by double-clicking on the spreadsheet to display it,
then selecting the cube
clicking on the Box.Length data and trying to edit it by clicking the blue squiggle icon,
but it's the same error.
Clues? Bug? IUE? (Illiterate User Error)
OS: UNIX (freebsd)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.dace2f39cf
Build type: Release
Python version: 2.7.15
Qt version: 4.8.7
Coin version: 3.1.3
OCC version: 7.3.0
Locale: C/Default (C)
cyclic dependancy detected?
Forum rules
and Helpful information
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!
Also, be nice to others! Read the FreeCAD code of conduct!
cyclic dependancy detected?
- Attachments
-
- test_3.FCStd
- (7.79 KiB) Downloaded 21 times
Re: cyclic dependancy detected?
I don't think it can unroll this kind of dependency. Every object is calculated once on recalculate. And the dependent object is the spreadsheet and not each of its cells.
You can have two spreadsheets - one with dimensions and one with properties read from the model. This should work.
You can have two spreadsheets - one with dimensions and one with properties read from the model. This should work.
Re: cyclic dependancy detected?
Thanks, that's what I needed to knowkisolre wrote: ↑Tue Mar 05, 2019 10:58 pm I don't think it can unroll this kind of dependency. Every object is calculated once on recalculate. And the dependent object is the spreadsheet and not each of its cells.
You can have two spreadsheets - one with dimensions and one with properties read from the model. This should work.
Re: cyclic dependancy detected?
It was in the docs Expressions - known issues. Also take note that by default Spreadsheet numbers are unitless. I will make some experiments and post problems that could arise from that later.
Re: cyclic dependancy detected?
Thanks, found that and something similar at end of spreadsheet. I'm working on spreadsheet and will be moving some things from there to expressions as soon as I have time -- stuff that is not unique to spreadsheet.kisolre wrote: ↑Thu Mar 07, 2019 11:07 am It was in the docs Expressions - known issues. Also take note that by default Spreadsheet numbers are unitless. I will make some experiments and post problems that could arise from that later.
Re: cyclic dependancy detected?
Take a look at my post for unitless values for constraint/spreadsheet https://forum.freecadweb.org/viewtopic.php?f=3&t=34713
Re: cyclic dependancy detected?
Thanks, will do.kisolre wrote: ↑Thu Mar 07, 2019 3:27 pm Take a look at my post for unitless values for constraint/spreadsheet https://forum.freecadweb.org/viewtopic.php?f=3&t=34713