cyclic dependancy detected?

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
garya
Posts: 422
Joined: Tue Nov 20, 2018 1:00 am
Location: Ovando, MT, USA

cyclic dependancy detected?

Post by garya »

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)
Attachments
test_3.FCStd
(7.79 KiB) Downloaded 21 times
kisolre
Veteran
Posts: 4166
Joined: Wed Nov 21, 2018 1:13 pm

Re: cyclic dependancy detected?

Post by kisolre »

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.
garya
Posts: 422
Joined: Tue Nov 20, 2018 1:00 am
Location: Ovando, MT, USA

Re: cyclic dependancy detected?

Post by garya »

kisolre 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.
Thanks, that's what I needed to know
kisolre
Veteran
Posts: 4166
Joined: Wed Nov 21, 2018 1:13 pm

Re: cyclic dependancy detected?

Post by kisolre »

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.
garya
Posts: 422
Joined: Tue Nov 20, 2018 1:00 am
Location: Ovando, MT, USA

Re: cyclic dependancy detected?

Post by garya »

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.
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
Veteran
Posts: 4166
Joined: Wed Nov 21, 2018 1:13 pm

Re: cyclic dependancy detected?

Post by kisolre »

Take a look at my post for unitless values for constraint/spreadsheet https://forum.freecadweb.org/viewtopic.php?f=3&t=34713
garya
Posts: 422
Joined: Tue Nov 20, 2018 1:00 am
Location: Ovando, MT, USA

Re: cyclic dependancy detected?

Post by garya »

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
Thanks, will do.
Post Reply