Community Tip - If community subscription notifications are filling up your inbox you can set up a daily digest and get all your notifications in a single email. X
Hello everyone,
I require your expert assistance in setting up a 2D parametric plot to represent the geometry of a miter bend.
The attached Prime 7 worksheet contains the formulas driving the plot.
Although I utilized AutoCAD to sketch the miter elbow from the results from the worksheet, I need to recreate it in Mathcad through a 2D plot.
The ultimate aim is to generate a DXF of the 3D object for import into the 3D design software but my first priority now is to achieve the 2D plot in MathCAD prime.
Solved! Go to Solution.
Something like the attached might be of help, I hope.
Success!
Luc
Hello @LucMeekes ,
Your solution is very interesting.
Could you please explain the purpose of each function and how do they work?
Additionally, could you provide the coordinates of each point or vertices? I will compare them with the CAD drawing to ensure the calculations are accurate.
The dimension O should not be a user input.
Below is an image with some comments.
P.S. I have Prime 9.
The matrix(r,c,f) function creates a matrix with r rows and c columns where the elements are creating by feeding the r and c values to function f.
Thus the expression matrix(4,1,max) creates a 4 element (1 column) vector with sequential numbers from 0 to 3. Multiply the result with 2 and 1 to get odd numbers 1,3,5,7. And multiply that with BA/N to divide angles over the BA range. That's how phi works.
Polar creates polar coordinates of the points along your approximated curve, using R1 and Do. Notice that Polar uses the function matrix() again, but now with min as the 3rd argument. That creates a vector of all zero elements.
Rect uses the Polar results and adds them to the end pieces.
The amount of extension wasn't clear from your picture, so I decided to introduce O, but I think I have it solved now and I removed the parameter O.
If you want to see the vertex coordinates, simply type:
and you will get a table with the (x,y) coordinates.
For the cut lines I created a new function and added a trace to the plot.
See updated file, attached. Prime 7.
Success!
Luc
P.S. You'll notice that it works fine for different values of N, R1 and Do. But if you choose BA other than 90°, funny things happen. It's not perfect yet.
Hello @LucMeekes ,
This is quite intriguing. Upon reviewing the vertex coordinates, they don't seem to add up. The expected value for Do is 10.75, but calculations from the coordinates yield 10.544. The vertex coordinates should exactly match the data from the CAD system.
Hello @ttokoro san,
Your solution is looking very good. I will review and accept the solution soon. Thank you for your support.
Hello @ttokoro san,
I reviewed the solution, and it is perfect. I created a CSV file, imported the points into the CAD system, and everything works perfectly.
I have a question regarding the Mathcad plot: how to improve the lines to extend to the outer vertices?
Just change the radius from to .