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

Limited GUI support for adding properties while designing #13139

Open
2 tasks done
pieterhijma opened this issue Mar 25, 2024 · 2 comments · May be fixed by #13626
Open
2 tasks done

Limited GUI support for adding properties while designing #13139

pieterhijma opened this issue Mar 25, 2024 · 2 comments · May be fixed by #13626
Labels
Core Issue or PR touches core sections (App, Gui, Base) of FreeCAD Feature FR for improvements or new features UI/UX

Comments

@pieterhijma
Copy link
Contributor

Is there an existing issue for this?

  • I have searched the existing issues

Problem description

The workflow in FreeCAD is suboptimal for parametric design. While designing, the user may want to create a parameter, for example for a Pad on a Sketch. As soon as the user decides how to name the parameter, the user has to temporarily abort the Pad task and go to some document object or a spreadsheet to create the parameter.

In case of a document object, the user has to choose a document object, create a property which of itself has a limited workflow as discussed in #13038. In case of a spreadsheet, the user has to go to the spreadsheet of choice, create a cell with a name for the parameter, create another cell (preferably close by, for example the next column) with the value, then add an alias to the cell that matches the name of the first cell (making sure the names are the same).

Then for both of these situations, the user has to remember how to access these variables (the path to the variables), going into the Pad task again, click on the expression symbol and type the path of the expression (for example file#Spreadsheet.Height).

The main issue is that users cannot add a parameter while still in the design task, therefore discouraging parametric design.

An obvious solution to this workflow problem is to create the parameters before doing the design. However, unless it is very clear beforehand what the constraints of the design are, it is common to encounter situations that would benefit from having parameters. These situations are subsequently hampered by the limitations of workflow just described.

Full version info

OS: Arch Linux
Word size of FreeCAD: 64-bit
Version: 0.22.0dev.36330 +9 (Git)
Build type: DEBUG
Branch: direct-properties
Hash: a1801e61b5cf79b8eaacb3093d2f771c2cf78190
Python 3.11.6, Qt 5.15.12, Coin 4.0.2, Vtk , OCC 7.7.2
Locale: English/United States (en_US)
Installed mods: 
  * OpenDark 2023.12.17
  * Ondsel-Lens 2024.1.22.01
  * backup 0.2.3
  * BIM 2021.12.0
  * Assembly3 0.12.2
  * Manipulator 1.5.7
  * fasteners 0.5.10
  * Assembly4 0.50.7
  * DynamicData 2.60.0

Subproject(s) affected?

Core

Anything else?

Context

Related

The Sketcher workbench has limited support to add properties while designing: It allows the user to name a constraint. However, this is not a general approach that works beyond the Sketcher workbench, the entered name is not a direct property of the Sketch, but a property inside the property Constraints within the Sketch. Moreover, the user cannot choose where to store the parameter, it has to reside in the Constraints property within the Sketch.

Code of Conduct

  • I agree to follow this project's Code of Conduct
@maxwxyz maxwxyz added Core Issue or PR touches core sections (App, Gui, Base) of FreeCAD UI/UX Feature FR for improvements or new features labels Mar 25, 2024
@FlachyJoe
Copy link
Contributor

FlachyJoe commented Mar 25, 2024

FYI I've started a currently named Expression Manager macro to list all the expressions of a document, another tab will show named constraints.
It could has a third tab to list custom properties but it seems there is currently no way to know if a property is user created. EDIT: getPropertyStatus returns 21 for dynamically added properties

ref https://forum.freecad.org/viewtopic.php?t=86378

@pieterhijma
Copy link
Contributor Author

pieterhijma commented Mar 25, 2024

Thanks for letting me know. I think this comment is more fitting to issue #13038. Looks great and it seems we think alike. I've just created PR #13112. Please let me know what you think.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Core Issue or PR touches core sections (App, Gui, Base) of FreeCAD Feature FR for improvements or new features UI/UX
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants