Code: Select all

```
>>> ActiveSketch.getGeometryWithDependentParameters()
[(0L, 2L), (0L, 0L)]
```

Any input before I PR it?

I have written a new Python function of the sketch object (aka ActiveSketch), which provides the elements that the solver indicates they have dependent parameters (so they are not constraint, are movable,...). I looks like this:

So it returns a list of tuples, each tuple being (GeoId,PosId).

Any input before I PR it?

Code: Select all

```
>>> ActiveSketch.getGeometryWithDependentParameters()
[(0L, 2L), (0L, 0L)]
```

Any input before I PR it?

I think @Joel_graff might dig this

Joel_graff wrote:poke

Want to contribute back to FC? Checkout:

#lowhangingfruit**|** Use the Source, Luke. **|** How to Help FreeCAD **|** How to report FC bugs and features

#lowhangingfruit

- Joel_graff
**Posts:**1499**Joined:**Fri Apr 28, 2017 4:23 pm-
**Contact:**

Hmmm.. I admit I'm not sure, exactly, what that does...

FreeCAD Trails workbench for transportation engineering: https://www.github.com/joelgraff/freecad.trails

pivy_trackers 2D coin3D library: https://www.github.com/joelgraff/pivy_trackers

pivy_trackers 2D coin3D library: https://www.github.com/joelgraff/pivy_trackers

You ask:Joel_graff wrote: ↑Sat Jun 09, 2018 11:58 amHmmm.. I admit I'm not sure, exactly, what that does...

ActiveSketch.getGeometryWithDependentParameters()

You get replied with a list of tuples:

[(0L, 2L), (0L, 0L)]

each element of the list represents an edge or a vertex. The first element of the tuple is the GeoID, the second element of the tuple is the PosID. For example, with the output above the Sketcher is telling you: "The solver detects that the endpoint of the element with GeoID=0 is not fully constraint, so it is "movable", or if you want you need to constraint it, directly or indirectly, if you want to arrive to a fully constraint sketch. The same happens with the Edge of the geometry with GeoID=0. It is basically telling you were your DoFs are.

- Joel_graff
**Posts:**1499**Joined:**Fri Apr 28, 2017 4:23 pm-
**Contact:**

Ahhh. gotcha. Very clear! That looks really useful.abdullah wrote: ↑Sat Jun 09, 2018 2:08 pmYou ask:Joel_graff wrote: ↑Sat Jun 09, 2018 11:58 amHmmm.. I admit I'm not sure, exactly, what that does...

ActiveSketch.getGeometryWithDependentParameters()

You get replied with a list of tuples:

[(0L, 2L), (0L, 0L)]

each element of the list represents an edge or a vertex. The first element of the tuple is the GeoID, the second element of the tuple is the PosID. For example, with the output above the Sketcher is telling you: "The solver detects that the endpoint of the element with GeoID=0 is not fully constraint, so it is "movable", or if you want you need to constraint it, directly or indirectly, if you want to arrive to a fully constraint sketch. The same happens with the Edge of the geometry with GeoID=0. It is basically telling you were your DoFs are.

FreeCAD Trails workbench for transportation engineering: https://www.github.com/joelgraff/freecad.trails

pivy_trackers 2D coin3D library: https://www.github.com/joelgraff/pivy_trackers

pivy_trackers 2D coin3D library: https://www.github.com/joelgraff/pivy_trackers

Is there a documentation page where we can quickly post that tidbit to ?abdullah wrote: ↑Sat Jun 09, 2018 2:08 pmYou ask:

ActiveSketch.getGeometryWithDependentParameters()

You get replied with a list of tuples:

[(0L, 2L), (0L, 0L)]

each element of the list represents an edge or a vertex. The first element of the tuple is the GeoID, the second element of the tuple is the PosID. For example, with the output above the Sketcher is telling you: "The solver detects that the endpoint of the element with GeoID=0 is not fully constraint, so it is "movable", or if you want you need to constraint it, directly or indirectly, if you want to arrive to a fully constraint sketch. The same happens with the Edge of the geometry with GeoID=0. It is basically telling you were your DoFs are.

Want to contribute back to FC? Checkout:

#lowhangingfruit**|** Use the Source, Luke. **|** How to Help FreeCAD **|** How to report FC bugs and features

#lowhangingfruit

None to my knowledge.Kunda1 wrote: ↑Mon Jun 11, 2018 12:07 amIs there a documentation page where we can quickly post that tidbit to ?abdullah wrote: ↑Sat Jun 09, 2018 2:08 pmYou ask:

ActiveSketch.getGeometryWithDependentParameters()

You get replied with a list of tuples:

[(0L, 2L), (0L, 0L)]

each element of the list represents an edge or a vertex. The first element of the tuple is the GeoID, the second element of the tuple is the PosID. For example, with the output above the Sketcher is telling you: "The solver detects that the endpoint of the element with GeoID=0 is not fully constraint, so it is "movable", or if you want you need to constraint it, directly or indirectly, if you want to arrive to a fully constraint sketch. The same happens with the Edge of the geometry with GeoID=0. It is basically telling you were your DoFs are.

Documentation from code will be generated... whenever it is generally generated, but probably it would be great to have all this bits somewhere...