Donate Now Goal amount for this year: 3000 USD, Received: 1207 USD (40%)

Page 1 of 3 123 LastLast
Results 1 to 10 of 30
Like Tree5Likes

Thread: Array has an invalid value (1)

  1. #1
    Junior Member
    Join Date
    November 21, 2017
    Posts
    8
    Current Local Time
    11:23 AM

    Array has an invalid value (1)

    Dear Forum users,

    I started creating family's in Revit not so long time ago. I cant get trough the next error;

    I have an extrusion (pipe), and i have an nestled family (rozet). My intension is to Array "rozet family" every 500mm in height, depending on the length (Lengte) . All this works for me now. I also made an second family (rozet) that turns on visible at (Lengte < 999 mm).

    I get the Array error at counting (1) so i cant make my family work. I think i am missing an Parameter to keep the array count at (2) and turn the visibility off at length < 1000 mm.


    Array counts 500mm = 1 , 1000mm =2 etc.

    Can you guys help me with this problem, i cant get the right formula or do i have to make it work in an different way.
    Thanks for your help guyss.
    Attached Files Attached Files

  2. #2
    Senior Member Andres Franco's Avatar
    Join Date
    June 21, 2012
    Location
    Tours, France
    Posts
    937
    Current Local Time
    12:23 PM
    you cannot have an array to a sole object, the minimum objects for an array is set to 2, so it may be your problem, HTH

  3. #3
    Junior Member
    Join Date
    November 21, 2017
    Posts
    8
    Current Local Time
    11:23 AM
    Thanks for your Reply Andres,

    I understand that you can not have an array to a sole object, but thats what i want to keep the array at 2 when lenght is < 1000mm to prevent the error, and turn off the Array (visibility) in combination of turning on the second family (sole object).

    But i can't make it happen, don't know how to write the formula.

  4. #4
    Moderator Robin Deurloo's Avatar
    Join Date
    July 7, 2011
    Location
    Rotterdam, Holland
    Posts
    1,169
    Current Local Time
    12:23 PM
    There are tricks for this.
    What you need to do is add a new parameter that holds the actual amount of rozetten (aantal_calc). This should then have a formula, something like IF (aantal < 2, 2, aantal). This means that if the value is smaller then 2 it still takes 2 as the value. This solves the array of 1 issue. BUT you still have an array of 2 left.

    So next step is to add a visibility parameter to the array that hides it when the value of 'aantal' is less then 2.

    Next step is to add one of the rozetten on top of the first one of your array and add visibility parameter to it that hides it when the value of 'aantal' is greater then 1.


    What this all means is that the array will be shown when you value of 'aantal' is 2 or heigher and that the single rozet will be shown when the value of 'aantal' is less then 2.

    To make it easier I would add the array to a nested family, that way you can hide the entire family all at once.


    oh and of course the most important bit, Welcome to the forum !
    uaifestival likes this.

  5. #5
    Junior Member
    Join Date
    November 21, 2017
    Posts
    8
    Current Local Time
    11:23 AM
    Thank you for your reply Robin,

    And thanks for the welcome.

    The part about the visibility is clear. Also the first part about adding a new parameter but i can't get it work. Maybe its because of the fact that i'm new with formula's. Can you add this parameter (in the correct way) in my Family model?. That will help a lot because i'm struggeling with this.

    I think i will get the visibility parameters done by myself.

  6. #6
    Forum Addict josephpeel's Avatar
    Join Date
    May 3, 2012
    Posts
    1,396
    Current Local Time
    12:23 PM
    Another way (If you do need to sometimes show only 1 object) is to set the distance between the last to objects to zero (Or as close as possible if that breaks) if the count is less than 2. So visually there is 1 object even though the array is 2.
    (Obviously if you are arraying shared families that you want to schedule it will still count 2).

  7. #7
    Junior Member
    Join Date
    November 21, 2017
    Posts
    8
    Current Local Time
    11:23 AM
    Hi guys,

    I think i just did it now . Thanks Robin, it solved my problem. ( And i think i remember you from BSA WDB, i did my internship at the same Company a few years ago).

  8. #8
    Moderator Robin Deurloo's Avatar
    Join Date
    July 7, 2011
    Location
    Rotterdam, Holland
    Posts
    1,169
    Current Local Time
    12:23 PM
    Quote Originally Posted by Erdem01 View Post
    Hi guys,

    I think i just did it now . Thanks Robin, it solved my problem. ( And i think i remember you from BSA WDB, i did my internship at the same Company a few years ago).
    Yep that's where I used to work about a year ago now. I think I remember your name, but there were a lot of interns during the years, so I'm afraid I don't have a sharp recollection of you . Send me a message with your info (LinkedIn for example) so we can connect.

    Good that you solved it on your own, much better way to learn!

    Had not looked at your family before now, looks like you are building scaffolding?

  9. #9
    Moderator DaveP's Avatar
    Join Date
    January 10, 2011
    Location
    St Paul, MN
    Posts
    2,949
    Current Local Time
    05:23 AM
    While you're at it, swing over to the Revit Ideas page and upvote this Idea
    https://forums.autodesk.com/t5/revit.../idi-p/6352220
    so we (hopefully) won't have to do these silly workarounds in the future.
    THe Idea is "Under Review", so it does have a chance of being worked on if it gets enough votes.
    Robin Deurloo likes this.

  10. #10
    Senior Member Andres Franco's Avatar
    Join Date
    June 21, 2012
    Location
    Tours, France
    Posts
    937
    Current Local Time
    12:23 PM
    Quote Originally Posted by DaveP View Post
    While you're at it, swing over to the Revit Ideas page and upvote this Idea
    https://forums.autodesk.com/t5/revit.../idi-p/6352220
    so we (hopefully) won't have to do these silly workarounds in the future.
    THe Idea is "Under Review", so it does have a chance of being worked on if it gets enough votes.
    Great Idea I've just voted!!, thank's Dave

Page 1 of 3 123 LastLast

Similar Threads

  1. Making Grade Beams - Invalid Family Category
    By cbaze in forum Architecture and General Revit Questions
    Replies: 1
    Last Post: July 8th, 2017, 03:02 AM
  2. 401 - Unauthorized: Access is denied due to invalid credentials
    By buildbod in forum Worksharing, Revit Server & C4R
    Replies: 0
    Last Post: August 16th, 2013, 10:24 AM
  3. New Floor Sketch Invalid
    By Steve Faust in forum Third party Add-Ins, API and R&D
    Replies: 5
    Last Post: July 5th, 2013, 07:24 PM
  4. Element ID Invalid
    By Drew in forum Architecture and General Revit Questions
    Replies: 8
    Last Post: April 4th, 2013, 07:58 PM
  5. Revit OpEd: Invalid References
    By Revit OpEd in forum Blog Feeds
    Replies: 0
    Last Post: September 14th, 2012, 03:15 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
  •