Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Renaming elements in the DataTab can make Expressions invalid #5721

Closed
FreeCAD-Bug-Importer opened this issue Feb 7, 2022 · 3 comments
Closed
Labels
Bug This issue or PR is related to a bug WB Part Design Related to the Part Design Workbench

Comments

@FreeCAD-Bug-Importer
Copy link
Collaborator

Issue imported from https://tracker.freecad.org/view.php?id=3151

  • Reporter: chrisb
  • Date submitted: 8/8/2017
  • FreeCAD version: 0.17
  • Category: Bug
  • Status: assigned
  • Tags: spreadsheet

Original report text

There is a forum topic containing a model and screenshot.

In that Model I use Expressions

  • I have given the name "R" to the radius of Sketch
  • I use it in the second sketch, dividing it by 2 and give that small radius the name "r"
  • I pad the second sketch and use an expression Sketch001.r for the length.

Next I want to rename the Sketch001 to something more sensible, let's say "SketchInner"

I go to the Data Tab and delete "001". The problem is, that on every keystroke the name is set - to be seen in the python console. So there is a point where both sketches have the same name. I add "Inner" and leave the input field. I had expected that the second pad would break, but the second sketch breaks as well, because instead of "Sketch.R" it uses now "SketchI.R". The renaming mechanism inserts the first "I" of "Inner".

Other bug information

  • Priority: low
  • Severity: minor
  • Category: Bug
  • OS: MacOS 11
  • Platform: Macbook
  • Updated: 2/6/2021
@FreeCAD-Bug-Importer FreeCAD-Bug-Importer added Bug This issue or PR is related to a bug WB Part Design Related to the Part Design Workbench labels Feb 7, 2022
@adrianinsaval
Copy link
Member

I can't reproduce this issue in master, seems to be fixed

@adrianinsaval
Copy link
Member

OP (chrisb) confirmed it's fixed in the forum. Issue can be closed

@luzpaz
Copy link
Contributor

luzpaz commented Mar 11, 2022

Thx! Closing

@luzpaz luzpaz closed this as completed Mar 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug This issue or PR is related to a bug WB Part Design Related to the Part Design Workbench
Projects
None yet
Development

No branches or pull requests

3 participants