• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • Discussion Groups

    Autodesk Revit Architecture

    Reply
    Valued Contributor
    Posts: 83
    Registered: ‎05-26-2005
    Accepted Solution

    Conditional Statement to insert door offset or centered

    177 Views, 3 Replies
    01-16-2013 08:09 AM

    Is it possible to read the current wall thickness of a door's host and use that dimension in a conditional statement to locate the frame's setback?

     

    If the wall is deeper than the frame I want the door flush with the wall, if the frame is deeper than the wall, I want the door centered.

     

    I set up a Wall Width paramenter in my door family but I keep getting the "Inconsistent units" error message.

     

    Any insight would be appreciated!

    Please use plain text.
    *Expert Elite*
    Alfredo_Medina
    Posts: 2,258
    Registered: ‎06-11-2009

    Re: Conditional Statement to insert door offset or centered

    01-25-2013 01:01 PM in reply to: roothcad

    Put a dimension between the faces of the wall, as an instance reporting parameter. Then, use that parameter in a formula.

    ----------------------------------------------------------------
    Planta1 Revit Online Consulting | info@planta1.com
    Please use plain text.
    Contributor
    Posts: 22
    Registered: ‎06-06-2012

    Re: Conditional Statement to insert door offset or centered

    01-29-2013 02:07 AM in reply to: roothcad

    This functionality is only available from Revit 2011 onwards.  As Alfredo pointed out, dimensioning to the wall thickness will create a reporting parameter, this can then be used within instance based formulas.

     

    Attached is my recommended formulas to control this.  By putting the Calculated Frame Width back into the Wall Setback formula it ensures the frame is never wider than the wall thickness. 

     

    In addition when creating the reporting parameter, unsure you tab to select the wall exterior edges and not the reference plance.  I've found that you get better results reporting from geometry rather than reference plans.

     

    Hope this helps.

     

    K

    Kevin Fielding
    BIM Coordinator
    AEW Architects
    Manchester, UK

    If my post solves your issue, please accept this as a solution and give me a thumbs up!
    Please use plain text.
    Valued Contributor
    Posts: 83
    Registered: ‎05-26-2005

    Re: Conditional Statement to insert door offset or centered

    01-29-2013 06:12 AM in reply to: roothcad

    Excellent - thanks for the explanation. I was tripped up by trying to have the type parameter use the wall thickness info.

     

    Cheers

    Please use plain text.