here is the master script
!Add to the Master Script
!Pop down Menu
bv0="No leg braces"
bv1="O brace"
bv2="H brace"
VALUES "bracetype", bv0, bv1, bv2
IF bracetype=bv0 THEN
brace=0
ELSE
brace=1
ENDIF
MATERIAL lmat
!Braces front to rear
IF bracetype=bv2 THEN !H Brace
ADDz lgheight/3
ADDx lsec/8
ROTx -90
CONE 0.5/2,lsec/4,lsec/3,90,90
ADDz 0.5/2
CONE 0.5/2,lsec/3,lsec/4,90,90
DEL 4
ADD stlgth,lsec/8,lgheight/3
ROTx -90
CONE lgheight/2,lsec/4,lsec/3,90,90
ADDz lgheight/2
CONE lgheight/2,lsec/3,lsec/4,90,90
DEL 3
ADD 0,0.25,lgheight/3
ROTz -90
ROTx -90
CONE stlgth/2,lsec/4,lsec/3,90,90
ADDz stlgth/2
CONE stlgth/2,lsec/3,lsec/4,90,90
DEL 4
ENDIF !brace=bv2
IF bracetype=bv1 THEN !O Brace
ADD 0,0,stheight/3
ROTz -90
ROTx -90
CONE stlgth/2,lsec/4,lsec/3,90,90
ADDz stlgth/2
CONE stlgth/2,lsec/3,lsec/4,90,90
DEL 4
ADD 0,stwidth,stheight/3
ROTz -90
ROTx -90
CONE stlgth/2,lsec/4,lsec/3,90,90
ADDz stlgth/2
CONE stlgth/2,lsec/3,lsec/4,90,90
DEL 4
ENDIF
and the 3d script
PEN 1
RESOL 12
!All the legs
MATERIAL lmat
!lsec/3 is the down leg diameter
RESOL resol1
TOLER toler1
CONE lgheight, lsec/3, lsec/2, 90,90
ADDx 0.45
CONE lgheight, lsec/3, lsec/2, 90,90
ADDy 0.55
CONE lgheight, lsec/3, lsec/2, 90,90
ADDx -0.45
CONE lgheight, lsec/3, lsec/2, 90,90
DEL 3
!seat and upholstery
ADDz stheight
BLOCK stlgth,stwidth,stthick
MATERIAL stmat
ADD 0.025,0.025,0.045
BLOCK stmatlth,stmatwdth,stmatthick
DEL 2
!Back Legs, panel and upholstery
IF bakon THEN
MATERIAL framat
ADD 0,0.55,0.5
CONE 0.6,0.03,0.02, 90,90
ADDx 0.45
CONE 0.6,0.03,0.02, 90,90
DEL 2
ADD 0,0.54,0.70
BLOCK 0.45,0.025,0.35
MATERIAL backmat
ADD 0.05,-0.01,0.02
BLOCK 0.35,0.01,0.30
DEL 2
ENDIF
and the 2d script
!Simple Chair, Parametric 2D Script
HOTSPOT2 0,0 !corner spots
HOTSPOT2 stwidth,0
HOTSPOT2 stwidth,stlgth
HOTSPOT2 0,stlgth
HOTSPOT2 stwidth/2,stlgth/2 !pickup spot
!PROJECT2 3,270,2 !now disabled
s4=lsec/4 !Quarter of diameter
s2=lsec/2 !Half of diameter
PEN 3
CIRCLE2 0,0,s2
CIRCLE2 stwidth,stlgth,s2
CIRCLE2 0,stlgth,s2
CIRCLE2 stwidth,0,s2
LINE2 s2,stlgth-s4, stwidth-s2,stlgth-s4 !back
LINE2 s2,stlgth+s4, stwidth-s2,stlgth+s4 !back
LINE2 0,stlgth-s2,0,s2 !side
LINE2 stwidth,s2,stwidth,stlgth-s2 !side
LINE2 s2,0,stwidth-s2,0 !front
thank you in advance for your time