Hot to add a driven dimension?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
What I try to do can be done easily in the editor, but I cannot find documentation on how to code it.
I have 2 lines formed by 3 points (2 edges).
line1 = sketch.project(cornerEdge0).item(0)
line2 = sketch.project(cornerEdge1).item(0)
AngleBetween = sketch.sketchDimensions.addAngularDimension(line1, line2, utils.findMidPoint(line1))
Since these ar projected, they are already constrained (I and want to keep it this way to make sure further modification of the edges will impact the new stuff)
The problem is, when trying to add the Angular dimension, I get the "Overconstrained" error message.
I want this dimension to be driven since it is only a step in the process of getting some other value (half angle constraint between edges)
Is there any way to specify that I DO want the addAngularDimension to be a driven dimension, and get no error?
Many thanks