I created a supre part for 2x framing. There are approximately 18 different values for a parameter I set up. The part respondds when the values are chosen but when ever I open a plan again the parts are not the size I left them as. I have tried placing the script commands in the Paramter script and the Master Script I have used the "LET" command and "PARAMETERS" together and separately it still doesn't remember the info. Any ideas would be greatly appreciated. Thanks. The scipt is below:
IF joist_size='2x4' THEN
parameters b=1.5",zzyzx=3.5",F=1,gs_back_pen=91,gs_cont_pen=3
IF a>16'-0" THEN parameters a=16'-0"
IF b>1.5" THEN parameters b=1.5"
ENDIF
IF joist_size='2x6' THEN
parameters b=1.5",zzyzx=5.5",F=1,gs_back_pen=91,gs_cont_pen=3
IF a>16'-0" THEN parameters a=16'-0"
IF b>1.5" THEN parameters b=1.5"
ENDIF
IF joist_size='2x8' THEN
parameters b=1.5",zzyzx=7.25",F=1,gs_back_pen=91,gs_cont_pen=3
IF a>16'-0" THEN parameters a=16'-0"
IF b>1.5" THEN parameters b=1.5"
ENDIF
IF joist_size='PT 2x4' THEN
parameters b=1.5",zzyzx=3.5",F=4,gs_back_pen=0,gs_cont_pen=3
IF a>16'-0" THEN parameters a=16'-0"
IF b>1.5" THEN parameters b=1.5"
ENDIF
IF joist_size='PT 2x6' THEN
parameters b=1.5",zzyzx=5.5",F=4,gs_back_pen=0,gs_cont_pen=3
IF a>16'-0" THEN parameters a=16'-0"
IF b>1.5" THEN parameters b=1.5"
ENDIF
IF joist_size='PT 2x8' THEN
parameters b=1.5",zzyzx=7.25",gs_back_pen=0,gs_cont_pen=3
IF a>16'-0" THEN parameters a=16'-0"
IF b>1.5" THEN parameters b=1.5"
ENDIF
IF joist_size='2x10' THEN
parameters b=1.5",zzyzx=9.25",F=1,gs_back_pen=91,gs_cont_pen=3
IF a>16'-0" THEN parameters a=16'-0"
IF b>1.5" THEN parameters b=1.5"
ENDIF
IF joist_size='2x12' THEN
parameters b=1.5",zzyzx=11.25",F=1,gs_back_pen=91,gs_cont_pen=3
IF a>16'-0" THEN parameters a=16'-0"
IF b>1.5" THEN parameters b=1.5"
ENDIF
IF joist_size='2x4 Blocking' THEN
parameters b=3.5",zzyzx=1.5",F=4,gs_back_pen=0,gs_cont_pen=1
IF b>3.5" THEN parameters b=3.5"
ENDIF
IF joist_size='2x6 Blocking' THEN
parameters b=5.5",zzyzx=1.5",F=4,gs_back_pen=0,gs_cont_pen=1
IF b>5.5" THEN parameters b=5.5"
ENDIF
IF joist_size='2x8 Blocking' THEN
parameters b=1.5",zzyzx=7.25",F=1,gs_back_pen=91,gs_cont_pen=1
IF a>16'-0" THEN parameters a=16'-0"
IF b>1.5" THEN parameters b=1.5"
ENDIF
IF joist_size='2x10 Blocking' THEN
parameters b=1.5",zzyzx=9.25",F=1,gs_back_pen=91,gs_cont_pen=1
IF a>16'-0" THEN parameters a=16'-0"
IF b>1.5" THEN parameters b=1.5"
ENDIF
IF joist_size='2x10 Rim Joist' THEN
parameters b=1.5",zzyzx=9.25",F=1,gs_back_pen=91,gs_cont_pen=1
IF b>1.5" THEN parameters b=1.5"
ENDIF
IF joist_size='2x10 Girder' THEN
parameters b=1.5",zzyzx=9.25",F=1,gs_back_pen=91,gs_cont_pen=1
IF b>1.5" THEN parameters b=1.5"
ENDIF
IF joist_size='PT 2x6 Sill Plate' THEN
parameters b=5.5",zzyzx=1.5",F=1,gs_back_pen=0,gs_cont_pen=9
IF b>5.5" THEN parameters b=5.5"
ENDIF
IF joist_size='PT 2x8 Rim Joist' THEN
parameters b=1.5",zzyzx=7.25",F=4,gs_back_pen=0,gs_cont_pen=3
IF b>1.5" THEN parameters b=1.5"
ENDIF
IF joist_size='PT 2x8 Nailer' THEN
parameters b=1.5",zzyzx=7.25",F=4,gs_back_pen=0,gs_cont_pen=3
IF b>1.5" THEN parameters b=1.5"
ENDIF
IF joist_size='2x8 Plate' THEN
parameters b=7.25",zzyzx=1.5",F=4,gs_back_pen=0,gs_cont_pen=3
IF b>7.25" THEN parameters b=7.25"
ENDIF