RE: Submodels, mpd, and Lpub3D
2018-02-12, 21:04 (This post was last modified: 2018-02-12, 21:05 by Johann Eisner.)
2018-02-12, 21:04 (This post was last modified: 2018-02-12, 21:05 by Johann Eisner.)
(2018-02-12, 19:06)Brian Dag Wrote: FWIW I found a simple solution to a problem by using grouping. In my final step I want to show an assembly being placed, then rotated. I made a copy of the submodel, rotated and placed it where I wanted, then made it into a group. I also turned the original placement into a group. It seems redundant but it creates the necessary state to use the LPUB REMOVE GROUP command. The buffer exchange was not making sense to me. So the basics of the commands are:
...
0 STEP
0 MLCAD BTG GROUP
0 STEP
0 !LPUB REMOVE GROUP
0 MLCAD BTG GROUP ROTATED
...
Thanks for all the inputs. And thanks to Jaco's guide where this was buried in the Remove Group page. :-)
Cheers, Dag
And how are the parts displayed in the PLI with this syntax?
I would still do it with buffer exchange.
Syntax for LPUB3D
.....
0 STEP
0 BUFEXCHG A STORE
1 0 268 0 280 0 1 0 -1 0 0 0 0 1 Sub23.ldr (Submodelposition before assembly)
0 MLCAD ARROW 67170319 85 40 160 1 0 0 0 1 0 0 0 1 15 4 13 90 4 30 1 2 16 16 (Arrow to show how assembly)
0 STEP
0 BUFEXCHG A RETRIEVE
0 !LPUB PART BEGIN IGN
1 0 118 -20 280 0 1 0 -1 0 0 0 0 1 Sub23.ldr (Submodell in right position)
0 !LPUB PART END
0 STEP
...
If nothing goes right, go left.