rba032
Marine/Ocean
- Jul 19, 2012
- 3
Hi All,
I need some help with the positioning & quantity of brackets when writing Conditional formula "AND" & "OR" Commands.
I'm looking to create a variable part model to replace 28 single plates,
The plate is circular with a starting inside dia of 50 up to dia 320.
The size of the holes and the quantities of the holes change at set points.
I have written these Conditional formulas (which work) as:
[-HOLE QTY-] =ABS(4*( INSIDE_DIA <110)OR(6*( INSIDE_DIA <190)AND( INSIDE_DIA >=110)OR(8*( INSIDE_DIA <330)AND( INSIDE_DIA >=190))))
[-HOLE DIA/DRILL SIZE-] =ABS(13*( INSIDE_DIA <70)OR(19*( INSIDE_DIA <240)AND( INSIDE_DIA >=70)OR(26*( INSIDE_DIA <330)AND( INSIDE_DIA >=240))))
but when I repeat this formula for the (P.C.D'S and) outer diameter the model is not adjusting and only correct for the max size 330:
=ABS(164*( INSIDE_DIA <60)OR(174*( INSIDE_DIA <70)AND( INSIDE_DIA >=60)OR(220*( INSIDE_DIA <80)OR(230*( INSIDE_DIA <90)AND( INSIDE_DIA >=80)OR(240*( INSIDE_DIA <100)OR(250*( INSIDE_DIA <110)AND( INSIDE_DIA >=100)OR(260*( INSIDE_DIA <120)OR(270*( INSIDE_DIA <130)AND( INSIDE_DIA >=120)OR(280*( INSIDE_DIA <140)OR(300*( INSIDE_DIA <150)AND( INSIDE_DIA >=140)OR(310*( INSIDE_DIA <160)OR(320*( INSIDE_DIA <170)AND( INSIDE_DIA >=160)OR(330*( INSIDE_DIA <180)OR(340*( INSIDE_DIA <190)AND( INSIDE_DIA >=180)OR(350*( INSIDE_DIA <200)OR(360*( INSIDE_DIA <210)AND( INSIDE_DIA >=200)OR(370*( INSIDE_DIA <220)OR(380*( INSIDE_DIA <230)AND( INSIDE_DIA >=220)OR(390*( INSIDE_DIA <240)OR(405*( INSIDE_DIA <250)AND( INSIDE_DIA >=240)OR(415*( INSIDE_DIA <260)OR(425*( INSIDE_DIA <270)AND( INSIDE_DIA >=260)OR(435*( INSIDE_DIA <280)OR(445*( INSIDE_DIA <290)AND( INSIDE_DIA >=280)OR(455*( INSIDE_DIA <300)OR(465*( INSIDE_DIA <310)AND( INSIDE_DIA >=300)OR(485*( INSIDE_DIA <320)OR(495*( INSIDE_DIA <330)AND( INSIDE_DIA >=320)))))))))))))))))))))))))))))
This is the original link used to reference:
I want the part model to be written with Conditional formula so when placed into an assembly it can be adjusted to suit with a single adjustable dimension entry. The inside diameter.
Thanks
I need some help with the positioning & quantity of brackets when writing Conditional formula "AND" & "OR" Commands.
I'm looking to create a variable part model to replace 28 single plates,
The plate is circular with a starting inside dia of 50 up to dia 320.
The size of the holes and the quantities of the holes change at set points.
I have written these Conditional formulas (which work) as:
[-HOLE QTY-] =ABS(4*( INSIDE_DIA <110)OR(6*( INSIDE_DIA <190)AND( INSIDE_DIA >=110)OR(8*( INSIDE_DIA <330)AND( INSIDE_DIA >=190))))
[-HOLE DIA/DRILL SIZE-] =ABS(13*( INSIDE_DIA <70)OR(19*( INSIDE_DIA <240)AND( INSIDE_DIA >=70)OR(26*( INSIDE_DIA <330)AND( INSIDE_DIA >=240))))
but when I repeat this formula for the (P.C.D'S and) outer diameter the model is not adjusting and only correct for the max size 330:
=ABS(164*( INSIDE_DIA <60)OR(174*( INSIDE_DIA <70)AND( INSIDE_DIA >=60)OR(220*( INSIDE_DIA <80)OR(230*( INSIDE_DIA <90)AND( INSIDE_DIA >=80)OR(240*( INSIDE_DIA <100)OR(250*( INSIDE_DIA <110)AND( INSIDE_DIA >=100)OR(260*( INSIDE_DIA <120)OR(270*( INSIDE_DIA <130)AND( INSIDE_DIA >=120)OR(280*( INSIDE_DIA <140)OR(300*( INSIDE_DIA <150)AND( INSIDE_DIA >=140)OR(310*( INSIDE_DIA <160)OR(320*( INSIDE_DIA <170)AND( INSIDE_DIA >=160)OR(330*( INSIDE_DIA <180)OR(340*( INSIDE_DIA <190)AND( INSIDE_DIA >=180)OR(350*( INSIDE_DIA <200)OR(360*( INSIDE_DIA <210)AND( INSIDE_DIA >=200)OR(370*( INSIDE_DIA <220)OR(380*( INSIDE_DIA <230)AND( INSIDE_DIA >=220)OR(390*( INSIDE_DIA <240)OR(405*( INSIDE_DIA <250)AND( INSIDE_DIA >=240)OR(415*( INSIDE_DIA <260)OR(425*( INSIDE_DIA <270)AND( INSIDE_DIA >=260)OR(435*( INSIDE_DIA <280)OR(445*( INSIDE_DIA <290)AND( INSIDE_DIA >=280)OR(455*( INSIDE_DIA <300)OR(465*( INSIDE_DIA <310)AND( INSIDE_DIA >=300)OR(485*( INSIDE_DIA <320)OR(495*( INSIDE_DIA <330)AND( INSIDE_DIA >=320)))))))))))))))))))))))))))))
This is the original link used to reference:
I want the part model to be written with Conditional formula so when placed into an assembly it can be adjusted to suit with a single adjustable dimension entry. The inside diameter.
Thanks