I'm trying to have a pad length in one of my bodies to be linked to a geometry in my master body.
One way to do it is to create a line in my master sketch and reference the edge length with Shape.Edge7.Length but the text is long and the edge is not named so its not very friendly for further usage or if I want to use this method for many other references.
Since the geometry of my master sketch is constrained and the needed distance is defined geometrically, creating a named length constraint is no go. i felt like I could create a reference length constraint and name it for further usage in the pad and other formulas.
However this does not seem to work well, as creating the reference geometry bumps into the already known (and being addressed) issue of redundancy checking. Fine. If you update the sketch the redundancy disappears and my reference constraint is there, bright and blue.
But if I try to name it, the constraint automatically reverts back to real constraint and redundancy appears...etc.
Basically, I cannot seem to be able to name a reference length constraint for further usage.
Further investigation of the behavior actually shows the following:
- If I create a simple line that is otherwise unconstrained, then create a reference constraint and name it, the reference constraint automatically becomes real constraint.
- If i then click on the constraint, and press the "reference" tool (switch everything to blue) then the constraint is correctly blue, named and constrained.
- If i double click the constraint for editing, it switches to real constraint: that is an issue in my book.
- If i try to constrain this line with the reference constraint already applied to existing geometry by coincidence, then there is a conflict between the two.
Shouldn't a reference constraint be adapted to the length of the object and not the other way around?
How to obtain a usable named length, that is dependent on existing and constrained geometry, for further usage in formulas?
OS: Windows 7
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.16093 (Git)
Build type: Release
Python version: 2.7.14
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.2.0
Locale: French/Switzerland (fr_CH)
Last edited by RatonLaveur
on Fri Aug 23, 2019 1:21 pm, edited 1 time in total.