Toolbar icons disappear

A forum for research and development of the user interface of FreeCAD
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
chrisb
Veteran
Posts: 53920
Joined: Tue Mar 17, 2015 9:14 am

Re: Toolbar icons disappear

Post by chrisb »

I have no issues with the icons. But I see this error message when editing "Frame Sketch":

Code: Select all

06:42:27  Traceback (most recent call last):
  File "<string>", line 12, in <module>
  File "/Users/cb/Desktop/FreeCAD.app/Contents/Resources/Mod/Show/mTempoVis.py", line 443, in sketchClipPlane
    editDoc = Gui.editDocument()
<class 'NameError'>: name 'Gui' is not defined
06:42:27  ViewProviderSketch::setEdit: visibility automation failed with an error: 

Code: Select all

OS: macOS 13.0
Word size of FreeCAD: 64-bit
Version: 0.21.0.31709 (Git)
Build type: Release
Branch: master
Hash: e188802ca6997d2564e7570ab648462e6a059f87
Python 3.10.8, Qt 5.15.6, 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.5.0
  * dxf-library
  * fcgear 1.0.0
  * fasteners 0.4.54
  * sheetmetal 0.2.60
  * ExplodedAssembly
  * Curves 0.6.6
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
chrisb
Veteran
Posts: 53920
Joined: Tue Mar 17, 2015 9:14 am

Re: Toolbar icons disappear

Post by chrisb »

You have 24 dimensions in your sketch which you may not really need all. Using geometric constraints instead can be advised.

This part of the sketch looks rather cumbersome, especially the selected dimensions seems rather arbitrary. Seeing the expression I rather guess it should be the difference between the radii. There are similar things on the left.

Here is a proposal where I have reduced the number of dimensions to 10.
Attachments
PartHolder_cb.FCStd
(22.49 KiB) Downloaded 43 times
SnipScreenshot-57ca3d.png
SnipScreenshot-57ca3d.png (30.42 KiB) Viewed 568 times
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
User avatar
Shalmeneser
Veteran
Posts: 9474
Joined: Wed Dec 23, 2020 12:04 am
Location: Fr

Re: Toolbar icons disappear

Post by Shalmeneser »

:idea:
7 dimensions but
don't know if big and small arcs have the same center (+1 dimension otherwise)
don't know if round corner is always tangent (+1? dimension otherwise)
fillet forgetten (+1)
Attachments
Parametric Part Holder _SHALM.FCStd
(38.96 KiB) Downloaded 42 times
Capture d’écran 2023-02-07 100647.jpg
Capture d’écran 2023-02-07 100647.jpg (56.31 KiB) Viewed 536 times
jenkins007
Posts: 15
Joined: Mon Jan 25, 2021 11:52 am

Re: Toolbar icons disappear

Post by jenkins007 »

Thank you. Am still learning this system. The frame sketch is not finished and should have been removed, but was using it as the example.

I reset preferences, and I have yet to see the error.

As far as all the constraints, thank you. This is a parametic toolbox drawer dependent on the PLA spool size, which varies by vendor. I will adjust using your constraints, instead of the plethora that I used.
Attachments
image.gif
image.gif (627 Bytes) Viewed 487 times
Post Reply