FreeCAD relabels edges after opening and closing a sketch without modifying it

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
luekbaja
Posts: 5
Joined: Thu Mar 03, 2022 12:14 am

FreeCAD relabels edges after opening and closing a sketch without modifying it

Post by luekbaja »

When I click into a sketch, Sketch009 for example, and click cancel without doing anything, some edges will get re-labeled. I don't know if that is the correct term but some external edges I reference change and parts break, especially in the last sketch, Sketch027, and it happens consistently. Every time I open and close Sketch009, the 2 external edges in Sketch027 will change seemingly randomly, sometimes to another line, an ellipse, or a b-spline. I have done this 3 times, each time restarting FreeCAD without saving my changes, and it has happened every time I have tested it.

Here is the file:
https://drive.google.com/file/d/1awnRkd ... sp=sharing

Code: Select all

OS: Windows 10 Version 2009
Word size of FreeCAD: 64-bit
Version: 0.20.1.29410 (Git)
Build type: Release
Branch: releases/FreeCAD-0-20
Hash: f5d13554ecc7a456fb6e970568ae5c74ba727563
Python 3.8.10, Qt 5.15.2, Coin 4.0.1, Vtk 8.2.0, OCC 7.6.3
Locale: English/United States (en_US)
Installed mods: 
  * 3DfindIT 1.2.0
  * A2plus 0.4.60e
  * Assembly4 0.12.4
  * ExplodedAssembly
  * fcgear 1.0.0
  * parts_library
chrisb
Veteran
Posts: 53920
Joined: Tue Mar 17, 2015 9:14 am

Re: FreeCAD relabels edges after opening and closing a sketch without modifying it

Post by chrisb »

I get an error on a full recompute from FCGear, which stops further investigation.

Code: Select all

Traceback (most recent call last):
  File "/Users/cb/Library/Application Support/FreeCAD/Mod/fcgear/./freecad/gears/features.py", line 106, in execute
    gear_shape = self.generate_gear_shape(fp)
  File "/Users/cb/Library/Application Support/FreeCAD/Mod/fcgear/./freecad/gears/features.py", line 248, in generate_gear_shape
    r_head = float(fp.head_fillet * fp.module)
<class 'AttributeError'>: 'FeaturePython' object has no attribute 'head_fillet'
06:29:51  Recompute failed! Please check report view.
Did you use the latest version to build it, or was it made with a previous version?

Code: Select all

OS: macOS 10.16
Word size of FreeCAD: 64-bit
Version: 0.21.31035 (Git)
Build type: Release
Branch: master
Hash: c8074a972ee233d303e50e5d525aecae09c1cd04
Python 3.10.6, Qt 5.15.4, Coin 4.0.0, Vtk 9.1.0, OCC 7.6.3
Locale: C/Default (C)
Installed mods: 
  * FC_SU
  * DynamicData 2.46.0
  * freecad.gears 1.0.0
  * FeedsAndSpeeds 0.4.0
  * fcgear 1.0.0
  * fasteners 0.4.16
  * sheetmetal 0.2.57
  * ExplodedAssembly
  * Curves 0.6.1
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
GeneFC
Veteran
Posts: 5373
Joined: Sat Mar 19, 2016 3:36 pm
Location: Punta Gorda, FL

Re: FreeCAD relabels edges after opening and closing a sketch without modifying it

Post by GeneFC »

I saw the same error.

My version of the gears addon is labeled "freecad.gears 1.0.0". The readout in the first post shows "fcgear 1.0.0".

Where did that come from?

Gene
User avatar
papyblaise
Veteran
Posts: 7868
Joined: Thu Jun 13, 2019 4:28 pm
Location: France

Re: FreeCAD relabels edges after opening and closing a sketch without modifying it

Post by papyblaise »

it's not a good idea to do the pinion first, it requires a lot of resources and time with each recalculation
during the first search, I get an error sketch and I am blocked
it would have been better to make a total arm then to duplicate it X3 then the pinion
User avatar
Shalmeneser
Veteran
Posts: 9474
Joined: Wed Dec 23, 2020 12:04 am
Location: Fr

Re: FreeCAD relabels edges after opening and closing a sketch without modifying it

Post by Shalmeneser »

:idea:
Attachments
RC Car _SHALM.FCStd
(530.93 KiB) Downloaded 9 times
Capture d’écran 2022-11-29 162444.jpg
Capture d’écran 2022-11-29 162444.jpg (79.51 KiB) Viewed 256 times
luekbaja
Posts: 5
Joined: Thu Mar 03, 2022 12:14 am

Re: FreeCAD relabels edges after opening and closing a sketch without modifying it

Post by luekbaja »

@chrisb I just updated to 0.20.1 and the gear was created with 0.19.something.
chrisb
Veteran
Posts: 53920
Joined: Tue Mar 17, 2015 9:14 am

Re: FreeCAD relabels edges after opening and closing a sketch without modifying it

Post by chrisb »

luekbaja wrote: Tue Nov 29, 2022 4:07 pm @chrisb I just updated to 0.20.1 and the gear was created with 0.19.something.
You may have to recreate it.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Post Reply