LPub Build_mod or else, folded sub assembly


Build_mod or else, folded sub assembly
#1
I use MLcad for my MOCs and LPub3D for instructions.
Now I want to add a foldable stair to my MOC where at first the stair is placed unfolded. I a later step I want the stair shown folded.
https://flic.kr/p/2nj5bwr for first step then later I want to show the folded stair [/url][url=https://flic.kr/p/2nj6dJM]folded stair. (I seem not be able to add the images in the text itself)

This is what I have so far:
0 !LPUB BUILD_MOD_ENABLED GLOBAL TRUE
1 19 10 10 0 1 0 0 0 1 0 0 0 1 64782.dat
1 19 10 10 -60 0 0 -1 1 0 0 0 -1 0 32278.dat
1 0 -70 -10 -80 1 0 0 0 1 0 0 0 1 63869.dat
1 0 90 -10 -80 1 0 0 0 1 0 0 0 1 63869.dat
1 71 10 -10 -80 1 0 0 0 1 0 0 0 1 60485.dat
0 STEP
0 !LPUB BUILD_MOD BEGIN "zz"
1 71 10 -10 -140 1 0 0 0 1 0 0 0 1 stairs.ldr
0 MLCAD ARROW 71 65 -35 -85 0.707107 0.707107 0 -0.707107 0.707107 0 0 0 1  10 4 12 40  3 30 1 2  16 16
0 !LPUB BUILD_MOD END_MOD
0 GHOST 1 71 -60 -36 -26 0 0 -1 0.978148 0.207912 0 0.207912 -0.978148 0 stairs_folded.ldr
0 !LPUB BUILD_MOD END
0 STEP
0 !LPUB BUILD_MOD REMOVE "zz"
1 4 120 -10 -140 1 0 0 0 1 0 0 0 1 3704.dat
0 STEP
0 !LPUB INSERT PAGE
0 !LPUB INSERT BOM


This works in a sense that the stair appears in the instruction first unfolded and in the later step as folded.
The problem is both stairs appear as building steps in the instructions. However only once in the BOM which is good again.

How best to get this effect in the building instruction. I tried also Buffer Exchange but that I couldn't get to work. Maybe I did something wrong there.
Any ideas? Much Appreciated.
Regards Allard


Attached Files Thumbnail(s)
       
Reply
RE: Build_mod or else, folded sub assembly
#2
Try this...


1 19 10 10 0 1 0 0 0 1 0 0 0 1 64782.dat
1 19 10 10 -60 0 0 -1 1 0 0 0 -1 0 32278.dat
1 0 -70 -10 -80 1 0 0 0 1 0 0 0 1 63869.dat
1 0 90 -10 -80 1 0 0 0 1 0 0 0 1 63869.dat
1 71 10 -10 -80 1 0 0 0 1 0 0 0 1 60485.dat
0 STEP
0 BUFEXCHG A STORE
1 71 10 -10 -140 1 0 0 0 1 0 0 0 1 stairs.ldr
0 !LPUB PART BEGIN IGN
0 MLCAD ARROW 71 65 -35 -85 0.707107 0.707107 0 -0.707107 0.707107 0 0 0 1  10 4 12 40  3 30 1 2  16 16
0 !LPUB PART END
0 STEP
0 BUFEXCHG A RETRIEVE
0 !LPUB PART BEGIN IGN
1 71 -60 -36 -26 0 0 -1 0.978148 0.207912 0 0.207912 -0.978148 0 stairs_folded.ldr
0 !LPUB PART END
1 4 120 -10 -140 1 0 0 0 1 0 0 0 1 3704.dat
0 STEP
0 !LPUB INSERT PAGE
0 !LPUB INSERT BOM
If nothing goes right, go left.
Reply
« Next Oldest | Next Newest »



Forum Jump:


Users browsing this thread: 1 Guest(s)