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

1. Login to Give a bone

## 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. Login to Give a bone

## Re: 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?
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. Login to Give a bone

## 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.

4. Login to Give a bone

## 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.
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. Login to Give a bone

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

Well this is one way...I suppose...

6. Login to Give a bone

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

Originally Posted by Steve_Stafford
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. Login to Give a bone

## 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...

8. Login to Give a bone

## 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. Login to Give a bone

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

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

10. Login to Give a bone

## 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 Last

#### Posting Permissions

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