Announcement

Collapse
No announcement yet.

More Parametric Freakyness

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

    More Parametric Freakyness

    Here's one to wrap your head around during the weekend.
    I had to create a real "simple" parametric shelve system with wallrail. Only it had to take into account the maximum height and in-between distance off the wall rails and maximum length of the shelves.

    Took me a few days and a LOT of :banghead: to figure it out...
    Attached Files
    Martijn de Riet
    Professional Revit Consultant | Revit API Developer
    MdR Advies
    Planta1 Revit Online Consulting

    #2
    Overall it is pretty nice. The only thing I would do is to constrain aantal planken so that users cannot set this to 1 as it will break the family. This can be done with a control parameter that reads something like 'if(aantal planken < 2, 2, aantal planken)'. This could be expanded to force a maximum number as well by simply adding an or to the statement but that may not work out well for this family. So the control parameter would control your aantal planken array and the original aantal planken array would still be where people type in their desired number of shelves, however, the control would work to prevent users from specifying something that will not work.

    Comment


      #3
      Originally posted by hypnox1 View Post
      Overall it is pretty nice. The only thing I would do is to constrain aantal planken so that users cannot set this to 1 as it will break the family. This can be done with a control parameter that reads something like 'if(aantal planken < 2, 2, aantal planken)'. This could be expanded to force a maximum number as well by simply adding an or to the statement but that may not work out well for this family. So the control parameter would control your aantal planken array and the original aantal planken array would still be where people type in their desired number of shelves, however, the control would work to prevent users from specifying something that will not work.
      And besides the control parameter "if(aantal planken < 2, 2, aantal planken)" you could create a yes/no parameter using the formula "if(aantal planken < 2) and have that display a warning to the user, i.e. model text saying:
      aantal planken must be at least 2
      (Then at least the user will know that they did something wrong) :beer:
      Klaus Munkholm
      "Do. Or do not. There is no try."

      Comment


        #4
        Thanks for the feedback, I will put it in there. It's somewhat dated (guessing 2-3 years old) and didn't have that knowledge back then. That's the problem with designing families, they get outdated as your knowledge increases... but hey, works for me (and the guy I designed it for) because we both know the limitations.

        Don't have the time right now but I will pos the updated version soon... Maybe there's even a blog post in it on how these constraints work.
        Martijn de Riet
        Professional Revit Consultant | Revit API Developer
        MdR Advies
        Planta1 Revit Online Consulting

        Comment

        Related Topics

        Collapse

        Working...
        X