Donate Now Goal amount for this year: 2500 USD, Received: 1627 USD (65%)

Results 1 to 4 of 4
Like Tree5Likes
  • 3 Post By Twiceroadsfool
  • 1 Post By DavidLarson
  • 1 Post By DavidLarson

Thread: Arrays in families

  1. #1
    Senior Member DavidLarson's Avatar
    Join Date
    July 10, 2015
    Location
    Boise, Idaho
    Posts
    664
    Current Local Time
    12:01 PM

    Arrays in families

    Is there a way to have an array in a family have only one instance? Say I have a bunch of equipment that I want to have arrayed. The configuration may be as short as a single instance going up to dozens of them. I need them to be able to report the count.

    I have no problem as long as there are at least two in the array. But I need it to be able to be a single instance. This is due to another array that will start immediately after the first array. The equipment typically is one or two of 'A' followed by many 'B'.

  2. #2
    Forum Co-Founder Twiceroadsfool's Avatar
    Join Date
    December 7, 2010
    Location
    Dallas, TX
    Posts
    10,200
    Current Local Time
    01:01 PM
    Yes and No.

    Parameter: COUNT: Integer : Formula: Length / 6"
    Parameter: CountAct: Integer : Formula: if(COUNT > 1, COUNT, 2)
    Parameter: ArrayVis: Y/N: Formula: COUNT > 1
    Parameter: SingleVis: Y/N: Formula: not(ArrayVis)

    Then you have the array, and you ALSO have a single instance sitting there (not part of the array). Single instance visibility controlled by SingleVis. Array Item Visibility controlled by ArrayVis.

    EDIT: Forgot to mention, CountAct has to be the one ASSIGNED to the Array, even though COUNT is the one doing the math.
    EDIT EDIT: Changed the Formula for SingleVis. Makes more sense this way. Im overtired...

    Does exactly what you want with scheduling.
    Last edited by Twiceroadsfool; May 1st, 2018 at 10:52 PM.

  3. #3
    Senior Member DavidLarson's Avatar
    Join Date
    July 10, 2015
    Location
    Boise, Idaho
    Posts
    664
    Current Local Time
    12:01 PM
    Remind me to buy you a beer or three if you ever come to Boise. Thanks
    Twiceroadsfool likes this.

  4. #4
    Senior Member DavidLarson's Avatar
    Join Date
    July 10, 2015
    Location
    Boise, Idaho
    Posts
    664
    Current Local Time
    12:01 PM
    Thanks for the update. It works with those parameters.
    Twiceroadsfool likes this.

Similar Threads

  1. Formula Help - Arrays & Visibility
    By cellophane in forum Architecture - Family Creation
    Replies: 3
    Last Post: September 20th, 2017, 04:12 PM
  2. Global Parameters & Arrays
    By cellophane in forum Architecture and General Revit Questions
    Replies: 2
    Last Post: June 2nd, 2016, 02:32 AM
  3. Replies: 0
    Last Post: March 12th, 2015, 05:45 AM
  4. Applying materials to arrays
    By cheinaranta in forum Architecture - Family Creation
    Replies: 3
    Last Post: April 19th, 2013, 11:06 AM
  5. How do you set up arrays less than 2
    By simon1688 in forum Architecture - Family Creation
    Replies: 10
    Last Post: December 16th, 2011, 04:04 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •