@leeminardi wrote:
@j.palmeL29YX Too bad AutoCAD's parametric features do not include splines for constraints or you could make the solution more automatic.
My above shown graphic method can in a little modified manner solve all that asked.
Assuming we have a given spline. (See >>video<<). To avoid that the further steps will change the spline I lock the geometry of the spline using a Fix constraint.
Now:
- draw a Line_1 and add Coincident constraints between their endpoints and the spline object.
- Add a Length d1 to this line. For demonstration I used for now a value of 25. In later steps we will see, the smaller this value of d1 the more precise will be the result. I can drag this line along the spline.
- draw a Line_2. Add a Coincident constraint midpoint to midpoint and a perpendicular constraint to Line_1. I'd suggest also to fix its length to any value (here I used 30). While dragging the lines along the spline the Line_2 will always stay perpendicular to the spline.
- draw a Line_3, add a horizontal constraint and a coincident constraint to the intersection between Line_2 and this Line_3 (as reference line for the following angular dimensions).
- Now we can add an angular dimension to show the angle of Line_2. But this is not what we need.
- As graphical representative of the spline's slope add a Line_4 parallel and coincident to Line_1 (red). You can now move the lines to any point along the spline and see the slope value.
- Assuming you need the slope at any given point you should add a coincident constraint between the Line_2 object and this point.
- If you move the lines to a point where the spline is not symmetrical in the range between the endpoints of Line_1 you can see, that Line_2 is not perpendicular to the spline (and Line_4 not tangential to the spline at this point). You can increase the accuracy of the result by decreasing the value of d1. In the video I got a precision of three digits with a d1 of 0.01.
What also can you do:
You search the point along the spline, where the slope has a given value.
- Because there may be several solutions you should first drag the lines near to the whished position. (e.g. in the shown example we find 5 points with a slope of 135°).
- Now we add a dimensional constraint (dcangular) with the whished value and the lines will snap to the right place. the intersection between Line_2 and the spline is the asked point. Be aware: the smaller d1 the more accurate will be the result.)
- If you want to drag the lines to another place, you first must either delete the dimensional constraint or convert it to a Reference Dimension (as done in the video).
This is only a rough description of the basic idea. Of course you can refine the workflow to meet your requirements closer.
HTH
Jürgen Palme
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
