|Draw in Autacad|
with 6 Circles
|Draw in Revit|
Only One Circle?
But, there's nothing like that in Revit. Center point-Radius, this is the only way.
So, here is a question. Is it possible to make circle with 2-points or 3-points method in Revit just like in Autocad? To tell the conclusion first, yes it is.
- Draw a line with adaptive points at the both ends
- Place a point at the middle of the line
- Draw a circle that has it's center point at the drawn point.
- Give lables and connect them with formulas.
3-Points CircleDeveloping 3-Points Circle is even more complicated. Because a center point can be anywhere depends on the positions of three points.
1st Approach - Using Angles
First of all, Pattern Based templates that has adaptive reference lines must be used for using angle parameters as reporting ones and make available using in formulas. If not, this error message shows up.
Before make this, I had to analyse the relation between a triangle and a circumscribed circle of it.
From this, I found that two more points(P4,P5) and one angle(a3) are necessary except adaptive ones.
P1,P2,P3 and a1, a2 and d can be get as reporting parameter from adaptive points and lines.
P4 will be always at the middle of the line P1-P2, and P5 can be located from P4 if we can get h.
h and r can be found if we have a3 and d/2 using trigonometric function.
With some formulas that I learned centuries ago, I could get this formula.
And d/2? It's already given. Now h and r can be found like this.
And this worked!
2nd Approach - Using Distances
Angle method that I explained above is not very difficult, but if angles can not be used as reporting parameters that can be used in formulas? Reference lines can be host references only in Pattern Based templates.
I tried to make another way without using angles for reporting parameters in a Genetic Adaptive template. Only distances between three adaptive points were used for reporting parameters.
To get the location of center points, angles are always necessary. I just didn't use angels but distances as reporting parameters to get what I needed.
After analysation, I found it that area of a triangle is necessary to get angles of it. And areas can be found with distances using 'Heron's formula'.
when s= d1+d2+d3
This is it. And from this formulas I could get angles using trigonometric.
Rest of necessary numbers can be found just like Angle-Method that I explained at the 1st approach.
But, after I made this in Revit, I found there is a little faulty in this formulas.
If distance d1 is not the longest one, a circle goes the wrong way. It's because a degree over 90˚ can't be found with these formulas.
I could fix this with <if> formula like this. (used Pythagorean theorem to recognize 90˚)
Finally, the family could make circle only with distances between three points.
3rd Approach - Inscribed Circle
After I got circumscribed circle, making inscribed circle was much easier because I've got lots of numbers already. Only one page of my note was all I need.
|(I know I have bad hand writing. I rarely use this)|
I could make this with some more numbers.
Let's see how this works.
You can download all families above here
What for is this necessary?
It's not necessary at all. But this can make it easier to make some adaptive families.
Here's an example I made.
I used 3Points-Circle to make a 3Points-Arch based family. I'm sure you can make more useful ones with it.
Curved frame Family download link