|
|
Home | Forums |
Downloads | Gallery |
News & Articles | Resources |
Jobs | FAQ |
| Join |
Welcome !
|
57 Users Online (55 Members):
Show Users Online
- Most ever was 626 - Mon, Jan 12, 2015 at 2:00:17 PM |
Forums
Forums >> Revit Building >> Technical Support >> Tricky Formula Question
|
|
active
Joined: Sat, Apr 3, 2010
144 Posts
|
I am creating a Detail Component that is a circle repeated along a line, with parametric spacing. For example, if I draw a 4' line, with 1/2" spacing, the circles run the full length at 1/2" intervals. If I change the spacing to 3", I still want them to run the full length, but the overall number to diminish so that they are now spread out across the same 4' line, but at 3" intervals.
I have almost got this working using circles grouped to detail lines, and then an array. It is ALMOST great, but I can't figure out the right formula for the number of circles so that they always draw the maximum number of circles that will fit in the length that I draw. If, for example, I do (Length - Spacing) / Spacing + 1 then the number will round down and not always draw an extra one even though there is space. If I do (Length / Spacing) + 1 then it will sometimes draw an extra hole BEYOND the length I have drawn.
If this makes any sense, what formula would I use?
Thanks.
|
This user is offline |
|
|
|
active
Joined: Wed, Oct 7, 2009
654 Posts
|
I've run into the same problem, and it seems to come from Revit rounding integer parameters. I have a family that arrays table legs, and checks to see if Revit is rounding down when it's not supposed to (or rather when I don't want it to). I have attached the family along with a .txt file that explains how the parameters work.
|
This user is offline |
|
|
active
Joined: Wed, Mar 2, 2011
106 Posts
|
I suggest you send the file you already started in order to study the case
|
This user is offline |
|
|
active
Joined: Sat, Apr 3, 2010
144 Posts
|
I sat down and thought for a while about it and tried (length / spacing) + .5, and that worked perfectly. Thanks for your suggestions.
|
This user is offline |
|
|
|
Similar Threads |
basic formula question regarding parameter use |
Community >> Newbies
|
Wed, Jun 16, 2010 at 5:34:23 PM
|
4
|
Tricky? Roof |
Revit Building >> Technical Support
|
Mon, Sep 24, 2018 at 2:12:05 PM
|
2
|
Using schedule total in formula? |
Revit Building >> Technical Support
|
Fri, Apr 4, 2014 at 10:29:50 AM
|
9
|
One family parameter has formula one has none |
General Discussion >> Revit Project Management
|
Wed, Jun 25, 2014 at 1:05:54 PM
|
7
|
Parameter Formula |
Revit Building >> Technical Support
|
Fri, Mar 5, 2010 at 12:09:09 PM
|
6
|
|
|
Site Stats
Members: | 2056704 | Objects: | 23074 | Forum Posts: | 152327 | Job Listings: | 3 |
|