Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: Division formula 1/3, 1/2, 2/3?

  1. #1
    The Silent Type CADMama's Avatar
    Join Date
    2016-01
    Location
    Where reference planes have Defines Origin checked
    Posts
    1,040
    Login to Give a bone
    0

    Default Division formula 1/3, 1/2, 2/3?

    I have a vertical division that I want to make an instance parameter with the option of the division being on either 1/3 or 1/2 or 2/3 the width of a window.

    I can get the 1/3 and the 1/2 but I just can't seem to get the 2/3 option.

    I have tried doing three yes/no parameters to select one bases on Steve Stafford's blog message on yes/no options. That did not seem to work for me.

    Any suggestions?

  2. #2
    AUGI Addict
    Join Date
    2015-11
    Location
    Madison, WI
    Posts
    1,318
    Login to Give a bone
    0

    Default Re: Division formula 1/3, 1/2, 2/3?

    Quote Originally Posted by CADMama View Post
    I have a vertical division that I want to make an instance parameter with the option of the division being on either 1/3 or 1/2 or 2/3 the width of a window.

    I can get the 1/3 and the 1/2 but I just can't seem to get the 2/3 option.

    I have tried doing three yes/no parameters to select one bases on Steve Stafford's blog message on yes/no options. That did not seem to work for me.

    Any suggestions?
    Hi Donnia,

    I'm having a hard time picturing what you are trying to do. But, my first thought would be formula's don't like instances imbedded into them. Second, would using an array be more benefical to your efforts? Could you please post the family you're working on, so we can see it first hand?

    Thanks,
    Jeff S.

  3. #3
    The Silent Type CADMama's Avatar
    Join Date
    2016-01
    Location
    Where reference planes have Defines Origin checked
    Posts
    1,040
    Login to Give a bone
    0

    Default Re: Division formula 1/3, 1/2, 2/3?

    I want to vertical division to either be 1/3 the width from the left, half way, or else 2/3 the width from the left.

    I am developing this for a class that I am to teach. I don't have the geometry in here yet - still working on the reference planes and formulas.

    Let me know if you have any questions after looking at my family and formulas.
    Last edited by CADMama; 2009-09-22 at 03:51 PM.

  4. #4
    AUGI Addict
    Join Date
    2015-11
    Location
    Madison, WI
    Posts
    1,318
    Login to Give a bone
    0

    Default Re: Division formula 1/3, 1/2, 2/3?

    Quote Originally Posted by CADMama View Post
    I want to vertical division to either be 1/3 the width from the left, half way, or else 2/3 the width from the left.

    I am developing this for a class that I am to teach. I don't have the geometry in here yet - still working on the reference planes and formulas.

    Let me know if you have any questions after looking at my family and formulas.
    I could be wronge, but doesn't yes/no only allow you to be either 0 or 1? This only would allow you two choices. Would it be better to use an index? Let me do some more digging for you...

    I'll post what I find hopefully soon.

    Jeff S.

  5. #5
    Revit Forum Manager Steve_Stafford's Avatar
    Join Date
    2001-12
    Location
    Irvine, CA
    Posts
    7,567
    Login to Give a bone
    0

    Default Re: Division formula 1/3, 1/2, 2/3?

    Well this is one way...I suppose...
    Attached Files Attached Files
    Last edited by Steve_Stafford; 2008-04-03 at 08:24 PM.

  6. #6
    AUGI Addict
    Join Date
    2015-11
    Location
    Madison, WI
    Posts
    1,318
    Login to Give a bone
    0

    Smile Re: Division formula 1/3, 1/2, 2/3?

    Quote Originally Posted by Steve_Stafford View Post
    Well this is one way...I suppose...

    Steve you Rock!!!

    I was along the similar lines, but I couldn't get the formula to work. Is there a Tutorial out there that goes over proper formula creation?

    if(Index Vert Div = 1, "((Width/1')/3)", if(Index Vert Div = 2, "((Width/1') / 2)", if(Index Vert Div = 3, "((Width/1')*(1/3)")))


    Thanks again Steve, I'll be referencing this family often.

    Jeff S.

  7. #7
    Revit Forum Manager Steve_Stafford's Avatar
    Join Date
    2001-12
    Location
    Irvine, CA
    Posts
    7,567
    Login to Give a bone
    0

    Default Re: Division formula 1/3, 1/2, 2/3?

    It is sort a kind a like LISP...lost in stupid parenthesis. The help file does explain the syntax, pretty well...you be the judge. I've managed with that info. I've attached another version, same technique except I did the "math" in separate fixed parameters so I could use plainer English in the long formula.

    Edit: fixed the math...
    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by Steve_Stafford; 2008-04-03 at 08:26 PM.

  8. #8
    The Silent Type CADMama's Avatar
    Join Date
    2016-01
    Location
    Where reference planes have Defines Origin checked
    Posts
    1,040
    Login to Give a bone
    0

    Default Re: Division formula 1/3, 1/2, 2/3?

    That was it - almost.
    I changed the formula to this

    if(Vertical Divisions = 1, (Width / 3), if(Vertical Divisions = 2, (Width / 2), if(Vertical Divisions = 3, (Width / 3) * 2, Width)))


    That gave me the 2/3 division.

  9. #9
    Revit Forum Manager Steve_Stafford's Avatar
    Join Date
    2001-12
    Location
    Irvine, CA
    Posts
    7,567
    Login to Give a bone
    0

    Default Re: Division formula 1/3, 1/2, 2/3?

    haha...no wonder my bank account never balances fixed the attachments and image file.

  10. #10
    The Silent Type CADMama's Avatar
    Join Date
    2016-01
    Location
    Where reference planes have Defines Origin checked
    Posts
    1,040
    Login to Give a bone
    0

    Default Re: Division formula 1/3, 1/2, 2/3?

    OK - question about the integer parameter - can you set a max and a min?
    If I try to go above what the forumla using that parameter uses - or below for that matter - it gives me an error. Is there some what to lock it to just the 1,2, or 3 integers?

Page 1 of 2 12 LastLast

Similar Threads

  1. I wish I could group keynotes by division
    By revit.wishlist1942 in forum Revit Architecture - Wish List
    Replies: 0
    Last Post: 2010-03-12, 05:57 AM
  2. MasterFormat 16 Division vs. 2004
    By christo4robin in forum Revit - In Practice
    Replies: 4
    Last Post: 2006-05-02, 02:30 PM
  3. Division of Labor
    By bbacker in forum ACA General
    Replies: 8
    Last Post: 2005-05-13, 04:28 PM
  4. Curtainwall Division Question
    By pashley in forum Revit Architecture - General
    Replies: 2
    Last Post: 2005-04-04, 03:54 PM
  5. Room division lines
    By Wagurto in forum Revit Architecture - General
    Replies: 1
    Last Post: 2004-10-13, 03:08 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
  •