I am new to digital LEGO models and building instructions with LPub3D. In order to find my way around submodels I have created this very simple dummy ldraw model:
0 FILE new model.ldr
0 Name: new model.ldr
0 Author: Undefined
1 4 10 -24 -90 1 0 0 0 1 0 0 0 1 3005.dat
1 4 10 -24 10 1 0 0 0 1 0 0 0 1 3005.dat
1 4 110 -24 -90 1 0 0 0 1 0 0 0 1 3005.dat
1 4 110 -24 10 1 0 0 0 1 0 0 0 1 3005.dat
0 STEP
1 4 60 -32 -90 1 0 0 0 1 0 0 0 1 3666.dat
1 4 60 -32 10 1 0 0 0 1 0 0 0 1 3666.dat
0 STEP
1 1 0 0 0 1 0 0 0 1 0 0 0 1 roof.ldr
0 NOFILE
0 FILE roof.ldr
0 Name: roof.ldr
0 Author: Undefined
1 1 10 -56 -90 1 0 0 0 1 0 0 0 1 3005.dat
1 1 10 -56 10 1 0 0 0 1 0 0 0 1 3005.dat
0 STEP
1 1 10 -64 -40 -0 0 -1 0 1 0 1 0 -0 3666.dat
0 Name: roof.ldr
0 Author: Undefined
0 NOFILE
It adds some red bricks in two steps and then references a submodel that itself consists of two building steps, too, adding some blue bricks. The file shows alright in LeoCAD, but when I open it in LPub3D it shows the expected building instructions for step 1 and 2, followed by the two steps of the submodel. But then when it should show the result of merging the submodel into the main model it only shows one blue box at some weird place instead of the submodel. Does anyone know what I am doing wrong?