Announcement

Collapse
No announcement yet.

radial array in a family : number of elemnts = parameter

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    radial array in a family : number of elemnts = parameter

    hello
    everything is in the title
    i'd like to be able to put a paramter in the case num in a radial array
    i'm working on a family and i need to create several "arm" on a wheel
    when the radius of the wheel changes, the number of arms changes too (i put a formula) so i need to put a parameter in the array but when i try to do it i have the message "enter a positive integer (not sure of the sentence because i'm working on a french computer - with an ENU revit langage - but the message is in french!!)
    the parameter is a integer of course but i didn't work!!
    Phil
    Freelance WWTP/HVAC Designer
    Revit 2019

    #2
    Are you testing for less than zero?
    I've developed a habit of never dumping formula results into arrays directly.

    SO, in pseudocode:
    qqq = formula
    Qty + if(qqq<0,qqq=-1,qqq) [Qty ought be set as an Integer Type]
    Use Qty for the array count.

    But, that's only my ƒ2 worth.

    Comment


      #3
      What is your formula? Does it generate a positive integer for the radius entered? I haven't worked with radial arrays, but I regularly use formulas to control linear arrays and haven't gotten that warning.
      Julie Kidder
      Architect + BIM Director
      Hartman + Majewski Design Group

      Comment


        #4
        hi
        the formula give an integer like this
        if(volant_diametre < 200 mm, 3, if(volant_diametre < 250 mm, 4, if(volant_diametre < 300 mm, 5, 6)))
        it takes a lenght a determine an integer with this lenght
        radial array can't be an interger under 3 so it stars with 3 until 6
        it should work but...
        Freelance WWTP/HVAC Designer
        Revit 2019

        Comment


          #5
          interesting - I don't have an issue with that formula on basic array. Two items I can think of:
          1. Is it an array to second or array to last array? I was testing on an array to last
          2. Are you using a separate family for the blade, and then linking the instance parameter in the blade to a parameter in the family or are you controlling the array form and blade with the same formula? Arrays work best with a nested family. I got an error experimenting with dimensioning directly, but it was the standard "constraints not satisfied" error


          If neither of those answer your question, flex the formula in your properties browser and look for the result it generates befefore you hit apply. Maybe there is something off in your formula (or another formula) that does push it over 200. Otherwise, dial it back. Rewrite the formula with one if statement, get that working, then introduce the others.
          Julie Kidder
          Architect + BIM Director
          Hartman + Majewski Design Group

          Comment


            #6
            Are you linking the array number to a label or writing the parameter into the field? It looks like you're trying to write the parameter name inside the array count field.
            Developer at Anguleris BIMsmith Marketplace.
            Previously at Sumex Design for ARCAT.com

            Comment


              #7
              Create an integer parameter and type in the formula, then select the array and link the parameter.

              Comment


                #8
                Originally posted by binhe615 View Post
                Create an integer parameter and type in the formula, then select the array and link the parameter.
                But, please test it, first.
                To wit,
                qqq = [formula type of measurement, integer]
                qqi = if(qqq<3,3,qqq)

                And link the qqi value to the count dimension. I generally stash these in the Other category, so as to make a cleaner interface for the User.
                That's me and a my 2¢

                Comment

                Related Topics

                Collapse

                Working...
                X