I am trying to create a parametric triangle family. My method is to use a simple parametric rectangle and take a reference line from opposite corners, creating a parametric right triangle. However, I don't know how to lock the dividing reference line to the corners.
Gelöst! Gehe zur Lösung
Gelöst von RDAOU. Gehe zur Lösung
You will probably need angle dimensions and parameters to ensure the angles stay correct (and Trig)
But you should be able to lock the end of a line or reference line to the two side and end planes?
Might consider using 3 reference lines each with an angle and length parameter calculated from trig? Make the right angle corner the origin and location where all lines extend from
Is there a way to lock the dividing reference to the intersecting references?
Are you referring to the hypotenuse? If its a reference line then yes. Plane no. Plane will need an angle paramerter to keep it in line with the width and height. BUT it might not move in the correct directions to stay a true triangle. Reference line is what you need here
Here are 2 families, one uses a reference plane and length. Seems to flex to the different sizes I tried. I started with a 3,4,5 triangle to make sure it worked out.
Second uses a plane and the opposite angle with the tangent to calculate the angle of the RP. It also seems to keep up with the changes in size I tried.
Family 1 will be able to easily report the Hypotenuse length, and the 2 variable angles using reporting parameters. The second can really only report the angles because the hypotenuse doesn't have any length properties.
None of the planes are locked. This will have fewer constraint issues
You do not need a diagonal Reference plane or Reference Line ...simply align and lock the end points of the sketch or model lines to the vertical and horizontal Reference planes
Do not over complicate things and do more than is necessary to constrain a component. The more Ref Lines and Planes you use the more it is likely to break
YOUTUBE | BIM | COMPUTATIONAL DESIGN | PARAMETRIC DESIGN | GENERATIVE DESIGN | VISUAL PROGRAMMING
If you find this reply helpful kindly hit the LIKE BUTTON and if applicable please ACCEPT AS SOLUTION
You can assign the angle parameter to a line as well.
Its not true that more RL/RP create breaks. Mostly its math issues at the extreme ends of the flexing. (Too small or big) By using calculations you eliminate the too big issue as mine will grow as large as needed. It can even change the long/short leg with no issue and since its a reference line can also control elements in the Z or xy plane.
But if the OP is trying to use geometry a line will just add extra graphics and the RL will be more stable.
If have found that locking to RP creates more potential for constraint issues or elements disconnecting in more extreme movements.
We have truss families that use angles and distances and almost never break Our doors used locks and RP and were breaking all the time till we changed to calculated parameters. Now only break when items get too small. (future upgrade is to add min/max calcs as well.
Works well and is fully parametric in 3D view. Thanks.
Sie finden nicht, was Sie suchen? Fragen Sie die Community oder teilen Sie Ihr Wissen mit anderen.