View Issue Details

IDProjectCategoryView StatusLast Update
0002658FreeCADFeaturepublic2016-08-05 09:17
Reportertrampas Assigned To 
PrioritynormalSeveritytweakReproducibilityalways
Status closedResolutionno change required 
PlatformWindows 10OSWindows 10OS Version10
Product Version0.16 
Fixed in Version0.15 
Summary0002658: Variables in Sketches
DescriptionWhat I would like to be able to do is create a variable in a sketch. For example if I am creating a gear where I have several teeth with a height of 1.0mm. Then I would like to create a variable in the sketch and assign it 1.0mm. Then when I enter that variable name for a constraint it would use the value of the variable.
This would allow me to change all the teeth height's by changing the one variable.

I know that there is the SCAD interface which can offer this feature, however it is not always the easiest for non programmers.

I also know there is the "equal" constraint which might be able to provide some of this capability, however a variable would be cleaner as you can see what the height is constrained to. That is for the equal constraint when you look at sketch it is hard to figure out what it is equal to.



TagsNo tags attached.
FreeCAD Information

Activities

wmayer

2016-08-05 09:17

administrator   ~0007242

Since version 0.15 we support expressions. There you can define a name for a constraint. Then for other constraints you can reference to this named constraint to use the same value. This way only one value needs to be changed if required.
Additionally, the dimensional constraints of a sketch appear in the property editor.

For more information visit the forum.

Issue History

Date Modified Username Field Change
2016-08-04 12:08 trampas New Issue
2016-08-05 09:17 wmayer Note Added: 0007242
2016-08-05 09:17 wmayer Status new => closed
2016-08-05 09:17 wmayer Resolution open => no change required
2016-08-05 09:17 wmayer Fixed in Version => 0.15