bug report, formula changes on its own

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
polemidis
Posts: 36
Joined: Thu Feb 09, 2017 4:58 pm

bug report, formula changes on its own

Post by polemidis »

Hello , guys I am positive this is a bug.
OS: Ubuntu Eoan Ermine (development branch)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.3.
Build type: Release
Python version: 3.7.4
Qt version: 5.12.4
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/United States (en_US)
Basket.FCStd
(20.11 KiB) Downloaded 46 times
This is a simple sample file.
The item "Cube" has a formula on Position Y, equals of "Cube.Width / -2" which actually centers the cube to the origin at the Y axis.

So far so good.
But now if I create a new Part/Cube, which gets the name "Cube00x", the formula above that exists on the Cube.Position.Y, changes from "Cube.Width / -2" to "Cube00x.Width / -2" !!!

So if you open the file above, highlight the Cube, to see the Position property formula, and you create a new cube the formula changes.

Thank you! My apologies I didn't research if someone posted this before.
polemidis
Posts: 36
Joined: Thu Feb 09, 2017 4:58 pm

Re: bug report, formula changes on its own

Post by polemidis »

I downloaded the file to double check it, and everything looks normal. I do not know what happend. My original file keeps doing this change in the formula
kisolre
Veteran
Posts: 4166
Joined: Wed Nov 21, 2018 1:13 pm

Re: bug report, formula changes on its own

Post by kisolre »

I had something similar in the past with clones changing link to another geometry but i am not sure If i succeeded to properly track it down and if it was resolved.
openBrain
Veteran
Posts: 9041
Joined: Fri Nov 09, 2018 5:38 pm
Contact:

Re: bug report, formula changes on its own

Post by openBrain »

This is reported as issue #4015 ;)
polemidis
Posts: 36
Joined: Thu Feb 09, 2017 4:58 pm

Re: bug report, formula changes on its own

Post by polemidis »

you are right. Sorry I wasted your time. Take care guys!
kisolre
Veteran
Posts: 4166
Joined: Wed Nov 21, 2018 1:13 pm

Re: bug report, formula changes on its own

Post by kisolre »

It is not a waste. If you check that bugs comment thread it has nothing similar to what you encounter so not easy to link to your observations or find it in the forum. Extra view point in always welcome :)
openBrain
Veteran
Posts: 9041
Joined: Fri Nov 09, 2018 5:38 pm
Contact:

Re: bug report, formula changes on its own

Post by openBrain »

I second kisolre. I just posted the link to the existing issue to prevent a duplicate. ;)
Nothing bad in discussing here what you observe. :)
TheMarkster
Veteran
Posts: 5513
Joined: Thu Apr 05, 2018 1:53 am

Re: bug report, formula changes on its own

Post by TheMarkster »

Instead of referring to "Cube" in the expression use its internal name "Box".

I think these were (probably) originally referred to as Box, but then it was changed to Cube at some later time. Cube is the label, but Box is the internal name. Perhaps it was decided not to change the internal name so not to break existing models / code.
Post Reply