Hi.
Several things you need to change:
1. Delete the "desk" parameter
2. After the first set of hotspots, define two variables
desk=0
w=0
3. In widths and flags calculations, change all "A"s after "THEN"s to "w". Example:
IF A<1.0 THEN
w=1.0:desk=11
ENDIF
4. Use "w" instead of "A" in RECT2 for the main desk shape.
5. In your "ADD2" when drawing chairs, change "A/2" to "w/2"
6. Since you have two ADD2 transformations in each IF statement, each DEL should be "DEL 2". This is why the sideboard flies away.
7. Sideboard's RECT2 should also use "w" instead of "A"
8. Add "DEL 1" after the sideboard's RECT2 statment.
9. Consider creating a couple of line type parameters and use those in your LINE_TYPE statements, instead of declaring the line type name.
Hope that helps.
Best regards.