Submodels, mpd, and Lpub3D


RE: Submodels, mpd, and Lpub3D
#9
(2018-02-12, 21:04)Johann Eisner Wrote:
(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
...

My mpd file is built as stated above per David. There is a step to build this submodel shown on the page before. Even though I'm turning it into a group is still seems to act as a submodel when it needs to and yet still subjects itself to group commands when needed. Note that I turned the submodel within my mpd file into a group. I didn't substitute a group for a submodel. I can add "0 !LPUB PLI SHOW LOCAL TRUE" to the submodel and format it to look like a regular step on it's own page. Then on the main model page it can be treated as a group.

But thank you for the context. I had been trying to use buffer exchange but somehow was not figuring out the PART BEGIN/END portion. It worked equally as well and I'll keep that instead.

Dag
Reply
« Next Oldest | Next Newest »



Messages In This Thread
Submodels, mpd, and Lpub3D - by Brian Dag - 2018-02-09, 7:20
RE: Submodels, mpd, and Lpub3D - by Brian Dag - 2018-02-09, 17:42
RE: Submodels, mpd, and Lpub3D - by Brian Dag - 2018-02-09, 18:05
RE: Submodels, mpd, and Lpub3D - by Brian Dag - 2018-02-09, 21:10
RE: Submodels, mpd, and Lpub3D - by Brian Dag - 2018-02-12, 19:06
RE: Submodels, mpd, and Lpub3D - by Brian Dag - 2018-02-12, 21:20
RE: Submodels, mpd, and Lpub3D - by Brian Dag - 2018-02-13, 17:41
RE: Submodels, mpd, and Lpub3D - by reinout - 2018-09-02, 10:49

Forum Jump:


Users browsing this thread: 1 Guest(s)