View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0001174 | FreeCAD | Feature | public | 2013-07-11 11:54 | 2014-02-23 17:10 |
Reporter | sliptonic | Assigned To | |||
Priority | normal | Severity | feature | Reproducibility | N/A |
Status | closed | Resolution | fixed | ||
Fixed in Version | 0.14 | ||||
Summary | 0001174: Allow user to input simple mathematical expressions when setting values to constraints. | ||||
Description | This was a feature in Qcad/Librecad that I found very useful. Instead of requiring a specific value, the user could put in a simple mathematical expression. The expression would be evaluated and the result stored. In other words, it isn't necessary to store the expression, just the result. | ||||
Additional Information | I prefer to model in metric units but often have to translate from imperial units. It's nice to just input '25.4*8.3' instead of opening a calculator app, doing the same thing and then either cutting/pasting or retyping '210.82' I'm not a programmer so forgive me if I'm being stupid but this seems helpful: http://www.boost.org/doc/libs/1_54_0/libs/spirit/doc/html/index.html | ||||
Tags | constraints, formula, sketcher | ||||
FreeCAD Information | |||||
|
The boost spirit library is one option. A much simpler option is to execute the input string as Python code. There you can even use trigonometric functions or the exponential function and so on without having to create a complicated grammar file. |
|
isn't this related to http://www.freecadweb.org/tracker/view.php?id=800 |
|
Yes it is. This feature should be marked as duplicate of 0000800 which is already assigned. |
|
In my view they're different things. I think 800 implies a deeper idea that constraints can be driven by equations. I would expect this means the equations are stored and evaluated whenever the underlying parameters change. What I'm talking about here is purely UI. The equation is evaluated at input time and the result is stored. The scope might be larger than just the sketcher since it would be nice to input simple equations for dimensions of solids in Part workbench, for example. If the feature described in 800 were globally implemented, it would be a superset of this feature and I'm o.k. with merging them for that reason. However, I think they're two distinct features and might have different scopes. In other words, it might make sense to store the equations in some places and only the results in others. |
|
it's not a duplicate but it is surly related |
|
AFAIK jriegel's recent code changes in the Sketcher cover this report. Shouldn't it be closed? http://forum.freecadweb.org/viewtopic.php?f=9&t=5151 |
|
Everything I implied with the original request has been met by recent changes. I'm good with closing it. |
Date Modified | Username | Field | Change |
---|---|---|---|
2013-07-11 11:54 | sliptonic | New Issue | |
2013-07-12 15:09 | wmayer | Note Added: 0003392 | |
2013-07-22 15:04 | tanderson69 | Note Added: 0003423 | |
2013-07-22 16:48 | normandc | Note Added: 0003424 | |
2013-07-30 11:55 | sliptonic | Note Added: 0003434 | |
2014-02-20 22:53 | tanderson69 | Note Edited: 0003423 | |
2014-02-21 12:58 | shoogen | Note Added: 0004256 | |
2014-02-21 12:58 | shoogen | Relationship added | related to 0000800 |
2014-02-21 12:59 | shoogen | Note Edited: 0004256 | |
2014-02-21 12:59 | shoogen | Tag Attached: constraints | |
2014-02-21 12:59 | shoogen | Tag Attached: formula | |
2014-02-21 12:59 | shoogen | Tag Attached: sketcher | |
2014-02-22 02:21 | normandc | Note Added: 0004261 | |
2014-02-23 16:26 | sliptonic | Note Added: 0004276 | |
2014-02-23 17:10 | shoogen | Status | new => closed |
2014-02-23 17:10 | shoogen | Resolution | open => fixed |
2014-02-23 17:10 | shoogen | Fixed in Version | => 0.14 |