View Issue Details

IDProjectCategoryView StatusLast Update
0004015Expressions[FreeCAD] Bugpublic2019-06-12 14:19
ReporteropenBrainAssigned To 
PrioritynormalSeveritymajorReproducibilityalways
Status confirmedResolutionopen 
Product Version[FreeCAD] 0.18 
Target VersionFixed in Version 
Summary0004015: Expression "jumps" to new object when created
DescriptionAn expression using an object referrer can inappropriately "jump" to a new object when this latter is created.
From first investigations, it happens only if referrer is the object label, not if it is its (internal) name.
---
Forum thread
Steps To ReproduceFrom a blank new design :
  1. Go to Part WB and create a cube => Will be labeled "Cube" in the tree view
  2. Add a second cube (=> Will be labeled "Cube001" in the tree view) then set its Z position as being "Cube.Length"
  3. Add a third cube (=> Will be labeled "Cube002") ==> Ouch ! FreeCAD immediately complains about a cyclic dependency. If you look back at Cube001 properties, its Z position has "jumped" to Cube002.Length instead of Cube.Length

---
It doesn't happen if internal name is used in expression (i.e. Box.Length instead of Cube.Length), but FreeCAD however complains about a cyclic dependency.
Additional Information
OS: Ubuntu 18.04.2 LTS
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.1.
Build type: Release
Python version: 2.7.15rc1
Qt version: 5.9.5
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: French/France (fr_FR)

and
OS: Ubuntu 18.04.2 LTS (KDE/plasma)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19. (2019/06/09)
Build type: Release
Python version: 3.6.7
Qt version: 5.9.5
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: French/France (fr_FR)
Tagsexpressions

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2019-06-10 18:14 openBrain New Issue
2019-06-10 18:14 openBrain Tag Attached: expressions
2019-06-12 14:19 wmayer Status new => confirmed