LDraw.org Discussion Forums
Buffer Exchange Fault - Printable Version

+- LDraw.org Discussion Forums (https://forums.ldraw.org)
+-- Forum: LDraw Programs (https://forums.ldraw.org/forum-7.html)
+--- Forum: LDraw Editors and Viewers (https://forums.ldraw.org/forum-11.html)
+--- Thread: Buffer Exchange Fault (/thread-22738.html)



Buffer Exchange Fault - Tom Moisey - 2018-03-04

Evening everyone, 

New member and first time poster here so apologies if this is in the wrong section.

Im currently building a producing instructions for a model and have use a buffer exchange command to show the placement of a tile in the main build. 

Now Ive followed the information from Holly-wood.it and the working with pub google site but I still have an issue.

The 'hovering' part appears with the arrow in the correct location but on the next step it recounts the piece in the PLI so you end up with a extra piece. Is it something simple that I've missed or arranged incorrectly ? The code looks correct but Im not sure.

Here is the code:

1 0 420 -8 -460 0 0 1 0 1 0 -1 0 0 3068b.dat
1 0 460 -8 -460 0 0 1 0 1 0 -1 0 0 3068b.dat
0 STEP
1 0 -20 -8 -430 -1 0 0 0 1 0 0 0 -1 3069b.dat
1 0 60 -8 -390 -1 0 0 0 1 0 0 0 -1 3069b.dat
1 0 180 -8 -370 -1 0 0 0 1 0 0 0 -1 3069b.dat
1 0 -100 -8 -370 -1 0 0 0 1 0 0 0 -1 3069b.dat
1 0 380 -8 -380 0 0 1 0 1 0 -1 0 0 3068b.dat
1 0 420 -8 -380 0 0 1 0 1 0 -1 0 0 3068b.dat
0 BUFEXCHG A STORE
0 GHOST 1 0 -270 -64 -470 0 0 1 0 1 0 -1 0 0 3069b.dat
0 MLCAD ARROW 0 -250 -18 -470 0 1 0 -1 0 0 0 0 1 10 4 12 40 3 30 1 2 4 4
0 MLCAD SKIP_BEGIN
3 4 -250 -6 -470 -255 -21 -470 -250 -16 -470
3 4 -250 -6 -470 -245 -21 -470 -250 -16 -470
3 4 -250 -16 -470 -252 -18 -470 -248 -18 -470
4 4 -252 -18 -470 -252 -58 -470 -248 -58 -470 -248 -18 -470
0 MLCAD SKIP_END
0 STEP
0 BUFEXCHG A RETRIEVE
1 0 -250 -8 -460 0 0 1 0 1 0 -1 0 0 3069b.dat
1 0 460 -8 -370 -1 0 0 0 1 0 0 0 -1 3069b.dat
1 0 260 -8 -430 -1 0 0 0 1 0 0 0 -1 3069b.dat
1 0 340 -8 -390 -1 0 0 0 1 0 0 0 -1 3069b.dat
0 STEP
1 15 -120 -8 -430 1 0 0 0 1 0 0 0 1 4162.dat
1 15 -80 -8 -410 1 0 0 0 1 0 0 0 1 4162.dat

Thanks in advance


RE: Buffer Exchange Fault - Johann Eisner - 2018-03-04

(2018-03-04, 17:34)Tom Moisey Wrote: Evening everyone, 

New member and first time poster here so apologies if this is in the wrong section.

Im currently building a producing instructions for a model and have use a buffer exchange command to show the placement of a tile in the main build. 

Now Ive followed the information from Holly-wood.it and the working with pub google site but I still have an issue.

The 'hovering' part appears with the arrow in the correct location but on the next step it recounts the piece in the PLI so you end up with a extra piece. Is it something simple that I've missed or arranged incorrectly ? The code looks correct but Im not sure.

Here is the code:

1 0 420 -8 -460 0 0 1 0 1 0 -1 0 0 3068b.dat
1 0 460 -8 -460 0 0 1 0 1 0 -1 0 0 3068b.dat
0 STEP
1 0 -20 -8 -430 -1 0 0 0 1 0 0 0 -1 3069b.dat
1 0 60 -8 -390 -1 0 0 0 1 0 0 0 -1 3069b.dat
1 0 180 -8 -370 -1 0 0 0 1 0 0 0 -1 3069b.dat
1 0 -100 -8 -370 -1 0 0 0 1 0 0 0 -1 3069b.dat
1 0 380 -8 -380 0 0 1 0 1 0 -1 0 0 3068b.dat
1 0 420 -8 -380 0 0 1 0 1 0 -1 0 0 3068b.dat
0 BUFEXCHG A STORE
0 GHOST 1 0 -270 -64 -470 0 0 1 0 1 0 -1 0 0 3069b.dat
0 MLCAD ARROW 0 -250 -18 -470 0 1 0 -1 0 0 0 0 1 10 4 12 40 3 30 1 2 4 4
0 MLCAD SKIP_BEGIN
3 4 -250 -6 -470 -255 -21 -470 -250 -16 -470
3 4 -250 -6 -470 -245 -21 -470 -250 -16 -470
3 4 -250 -16 -470 -252 -18 -470 -248 -18 -470
4 4 -252 -18 -470 -252 -58 -470 -248 -58 -470 -248 -18 -470
0 MLCAD SKIP_END
0 STEP
0 BUFEXCHG A RETRIEVE
1 0 -250 -8 -460 0 0 1 0 1 0 -1 0 0 3069b.dat
1 0 460 -8 -370 -1 0 0 0 1 0 0 0 -1 3069b.dat
1 0 260 -8 -430 -1 0 0 0 1 0 0 0 -1 3069b.dat
1 0 340 -8 -390 -1 0 0 0 1 0 0 0 -1 3069b.dat
0 STEP
1 15 -120 -8 -430 1 0 0 0 1 0 0 0 1 4162.dat
1 15 -80 -8 -410 1 0 0 0 1 0 0 0 1 4162.dat

Thanks in advance

Hi
If you are working with LPub3D than use this Code

1 0 420 -8 -460 0 0 1 0 1 0 -1 0 0 3068b.dat
1 0 460 -8 -460 0 0 1 0 1 0 -1 0 0 3068b.dat
0 STEP
1 0 -20 -8 -430 -1 0 0 0 1 0 0 0 -1 3069b.dat
1 0 60 -8 -390 -1 0 0 0 1 0 0 0 -1 3069b.dat
1 0 180 -8 -370 -1 0 0 0 1 0 0 0 -1 3069b.dat
1 0 -100 -8 -370 -1 0 0 0 1 0 0 0 -1 3069b.dat
1 0 380 -8 -380 0 0 1 0 1 0 -1 0 0 3068b.dat
1 0 420 -8 -380 0 0 1 0 1 0 -1 0 0 3068b.dat
0 BUFEXCHG A STORE
1 0 -270 -64 -470 0 0 1 0 1 0 -1 0 0 3069b.dat
0 MLCAD ARROW 0 -250 -18 -470 0 1 0 -1 0 0 0 0 1  10 4 12 40  3 30 1 2  4 4
0 MLCAD SKIP_BEGIN
3 4 -250 -6 -470 -255 -21 -470 -250 -16 -470
3 4 -250 -6 -470 -245 -21 -470 -250 -16 -470
3 4 -250 -16 -470 -252 -18 -470 -248 -18 -470
4 4 -252 -18 -470 -252 -58 -470 -248 -58 -470 -248 -18 -470
0 MLCAD SKIP_END
0 STEP
0 BUFEXCHG A RETRIEVE
0 !LPUB PART BEGIN IGN
1 0 -250 -8 -460 0 0 1 0 1 0 -1 0 0 3069b.dat
0 !LPUB PART END
1 0 460 -8 -370 -1 0 0 0 1 0 0 0 -1 3069b.dat
1 0 260 -8 -430 -1 0 0 0 1 0 0 0 -1 3069b.dat
1 0 340 -8 -390 -1 0 0 0 1 0 0 0 -1 3069b.dat
0 STEP
1 15 -120 -8 -430 1 0 0 0 1 0 0 0 1 4162.dat
1 15 -80 -8 -410 1 0 0 0 1 0 0 0 1 4162.dat
0


RE: Buffer Exchange Fault - Tom Moisey - 2018-03-04

(2018-03-04, 19:33)Johann Eisner Wrote:
(2018-03-04, 17:34)Tom Moisey Wrote: Evening everyone, 

New member and first time poster here so apologies if this is in the wrong section.

Im currently building a producing instructions for a model and have use a buffer exchange command to show the placement of a tile in the main build. 

Now Ive followed the information from Holly-wood.it and the working with pub google site but I still have an issue.

The 'hovering' part appears with the arrow in the correct location but on the next step it recounts the piece in the PLI so you end up with a extra piece. Is it something simple that I've missed or arranged incorrectly ? The code looks correct but Im not sure.

Here is the code:

1 0 420 -8 -460 0 0 1 0 1 0 -1 0 0 3068b.dat
1 0 460 -8 -460 0 0 1 0 1 0 -1 0 0 3068b.dat
0 STEP
1 0 -20 -8 -430 -1 0 0 0 1 0 0 0 -1 3069b.dat
1 0 60 -8 -390 -1 0 0 0 1 0 0 0 -1 3069b.dat
1 0 180 -8 -370 -1 0 0 0 1 0 0 0 -1 3069b.dat
1 0 -100 -8 -370 -1 0 0 0 1 0 0 0 -1 3069b.dat
1 0 380 -8 -380 0 0 1 0 1 0 -1 0 0 3068b.dat
1 0 420 -8 -380 0 0 1 0 1 0 -1 0 0 3068b.dat
0 BUFEXCHG A STORE
0 GHOST 1 0 -270 -64 -470 0 0 1 0 1 0 -1 0 0 3069b.dat
0 MLCAD ARROW 0 -250 -18 -470 0 1 0 -1 0 0 0 0 1 10 4 12 40 3 30 1 2 4 4
0 MLCAD SKIP_BEGIN
3 4 -250 -6 -470 -255 -21 -470 -250 -16 -470
3 4 -250 -6 -470 -245 -21 -470 -250 -16 -470
3 4 -250 -16 -470 -252 -18 -470 -248 -18 -470
4 4 -252 -18 -470 -252 -58 -470 -248 -58 -470 -248 -18 -470
0 MLCAD SKIP_END
0 STEP
0 BUFEXCHG A RETRIEVE
1 0 -250 -8 -460 0 0 1 0 1 0 -1 0 0 3069b.dat
1 0 460 -8 -370 -1 0 0 0 1 0 0 0 -1 3069b.dat
1 0 260 -8 -430 -1 0 0 0 1 0 0 0 -1 3069b.dat
1 0 340 -8 -390 -1 0 0 0 1 0 0 0 -1 3069b.dat
0 STEP
1 15 -120 -8 -430 1 0 0 0 1 0 0 0 1 4162.dat
1 15 -80 -8 -410 1 0 0 0 1 0 0 0 1 4162.dat

Thanks in advance

Hi
If you are working with LPub3D than use this Code

1 0 420 -8 -460 0 0 1 0 1 0 -1 0 0 3068b.dat
1 0 460 -8 -460 0 0 1 0 1 0 -1 0 0 3068b.dat
0 STEP
1 0 -20 -8 -430 -1 0 0 0 1 0 0 0 -1 3069b.dat
1 0 60 -8 -390 -1 0 0 0 1 0 0 0 -1 3069b.dat
1 0 180 -8 -370 -1 0 0 0 1 0 0 0 -1 3069b.dat
1 0 -100 -8 -370 -1 0 0 0 1 0 0 0 -1 3069b.dat
1 0 380 -8 -380 0 0 1 0 1 0 -1 0 0 3068b.dat
1 0 420 -8 -380 0 0 1 0 1 0 -1 0 0 3068b.dat
0 BUFEXCHG A STORE
1 0 -270 -64 -470 0 0 1 0 1 0 -1 0 0 3069b.dat
0 MLCAD ARROW 0 -250 -18 -470 0 1 0 -1 0 0 0 0 1  10 4 12 40  3 30 1 2  4 4
0 MLCAD SKIP_BEGIN
3 4 -250 -6 -470 -255 -21 -470 -250 -16 -470
3 4 -250 -6 -470 -245 -21 -470 -250 -16 -470
3 4 -250 -16 -470 -252 -18 -470 -248 -18 -470
4 4 -252 -18 -470 -252 -58 -470 -248 -58 -470 -248 -18 -470
0 MLCAD SKIP_END
0 STEP
0 BUFEXCHG A RETRIEVE
0 !LPUB PART BEGIN IGN
1 0 -250 -8 -460 0 0 1 0 1 0 -1 0 0 3069b.dat
0 !LPUB PART END
1 0 460 -8 -370 -1 0 0 0 1 0 0 0 -1 3069b.dat
1 0 260 -8 -430 -1 0 0 0 1 0 0 0 -1 3069b.dat
1 0 340 -8 -390 -1 0 0 0 1 0 0 0 -1 3069b.dat
0 STEP
1 15 -120 -8 -430 1 0 0 0 1 0 0 0 1 4162.dat
1 15 -80 -8 -410 1 0 0 0 1 0 0 0 1 4162.dat
0

Johann,

Awesome! That worked perfectly thanks! I had been trying to get it working for over a day  Confused 

So how does the extra line of code work if you don't mind me asking ? Does it just tell Lpub to ignore that part ?

Again Thanks!


RE: Buffer Exchange Fault - Johann Eisner - 2018-03-04

(2018-03-04, 20:10)Tom Moisey Wrote:
(2018-03-04, 19:33)Johann Eisner Wrote: Hi
If you are working with LPub3D than use this Code

1 0 420 -8 -460 0 0 1 0 1 0 -1 0 0 3068b.dat
1 0 460 -8 -460 0 0 1 0 1 0 -1 0 0 3068b.dat
0 STEP
1 0 -20 -8 -430 -1 0 0 0 1 0 0 0 -1 3069b.dat
1 0 60 -8 -390 -1 0 0 0 1 0 0 0 -1 3069b.dat
1 0 180 -8 -370 -1 0 0 0 1 0 0 0 -1 3069b.dat
1 0 -100 -8 -370 -1 0 0 0 1 0 0 0 -1 3069b.dat
1 0 380 -8 -380 0 0 1 0 1 0 -1 0 0 3068b.dat
1 0 420 -8 -380 0 0 1 0 1 0 -1 0 0 3068b.dat
0 BUFEXCHG A STORE
1 0 -270 -64 -470 0 0 1 0 1 0 -1 0 0 3069b.dat
0 MLCAD ARROW 0 -250 -18 -470 0 1 0 -1 0 0 0 0 1  10 4 12 40  3 30 1 2  4 4
0 MLCAD SKIP_BEGIN
3 4 -250 -6 -470 -255 -21 -470 -250 -16 -470
3 4 -250 -6 -470 -245 -21 -470 -250 -16 -470
3 4 -250 -16 -470 -252 -18 -470 -248 -18 -470
4 4 -252 -18 -470 -252 -58 -470 -248 -58 -470 -248 -18 -470
0 MLCAD SKIP_END
0 STEP
0 BUFEXCHG A RETRIEVE
0 !LPUB PART BEGIN IGN
1 0 -250 -8 -460 0 0 1 0 1 0 -1 0 0 3069b.dat
0 !LPUB PART END
1 0 460 -8 -370 -1 0 0 0 1 0 0 0 -1 3069b.dat
1 0 260 -8 -430 -1 0 0 0 1 0 0 0 -1 3069b.dat
1 0 340 -8 -390 -1 0 0 0 1 0 0 0 -1 3069b.dat
0 STEP
1 15 -120 -8 -430 1 0 0 0 1 0 0 0 1 4162.dat
1 15 -80 -8 -410 1 0 0 0 1 0 0 0 1 4162.dat
0

Johann,

Awesome! That worked perfectly thanks! I had been trying to get it working for over a day  Confused 

So how does the extra line of code work if you don't mind me asking ? Does it just tell Lpub to ignore that part ?

Again Thanks!

Hi Tom

Yes.
All parts between "!LPUB PART BEGIN IGN" and "!LPUB PART END" are ignored.
So it is very important not to forget the "! LPUB PART END", otherwise all parts will be ignored immediately.

Regards Johann


RE: Buffer Exchange Fault - Merlijn Wissink - 2018-03-05

The reason the tutorial doesn't mention this is that the old LPub (non 3d) automatically ignored parts after buffer exchange. Or something like that, can't remember it very well.


RE: Buffer Exchange Fault - Tom Moisey - 2018-03-07

(2018-03-05, 7:35)Merlijn Wissink Wrote: The reason the tutorial doesn't mention this is that the old LPub (non 3d) automatically ignored parts after buffer exchange. Or something like that, can't remember it very well.

Ah ok thanks! Was getting proper annoyed with it as the code and everything matched the tutorial, but it wasn't working! Now that explains why !


RE: Buffer Exchange Fault - Jaco van der Molen - 2018-03-10

(2018-03-05, 7:35)Merlijn Wissink Wrote: The reason the tutorial doesn't mention this is that the old LPub (non 3d) automatically ignored parts after buffer exchange. Or something like that, can't remember it very well.

Correct. Earlier versions (like you describe non 3D) did this indeed. Though not always flawless.


RE: Buffer Exchange Fault - aefferen - 2020-04-09

(2018-03-04, 17:34)Tom Moisey Wrote: Evening everyone, 

New member and first time poster here so apologies if this is in the wrong section.

Im currently building a producing instructions for a model and have use a buffer exchange command to show the placement of a tile in the main build. 

Now Ive followed the information from Holly-wood.it and the working with pub google site but I still have an issue.

The 'hovering' part appears with the arrow in the correct location but on the next step it recounts the piece in the PLI so you end up with a extra piece. Is it something simple that I've missed or arranged incorrectly ? The code looks correct but Im not sure.

Here is the code:

1 0 420 -8 -460 0 0 1 0 1 0 -1 0 0 3068b.dat
1 0 460 -8 -460 0 0 1 0 1 0 -1 0 0 3068b.dat
0 STEP
1 0 -20 -8 -430 -1 0 0 0 1 0 0 0 -1 3069b.dat
1 0 60 -8 -390 -1 0 0 0 1 0 0 0 -1 3069b.dat
1 0 180 -8 -370 -1 0 0 0 1 0 0 0 -1 3069b.dat
1 0 -100 -8 -370 -1 0 0 0 1 0 0 0 -1 3069b.dat
1 0 380 -8 -380 0 0 1 0 1 0 -1 0 0 3068b.dat
1 0 420 -8 -380 0 0 1 0 1 0 -1 0 0 3068b.dat
0 BUFEXCHG A STORE
0 GHOST 1 0 -270 -64 -470 0 0 1 0 1 0 -1 0 0 3069b.dat
0 MLCAD ARROW 0 -250 -18 -470 0 1 0 -1 0 0 0 0 1 10 4 12 40 3 30 1 2 4 4
0 MLCAD SKIP_BEGIN
3 4 -250 -6 -470 -255 -21 -470 -250 -16 -470
3 4 -250 -6 -470 -245 -21 -470 -250 -16 -470
3 4 -250 -16 -470 -252 -18 -470 -248 -18 -470
4 4 -252 -18 -470 -252 -58 -470 -248 -58 -470 -248 -18 -470
0 MLCAD SKIP_END
0 STEP
0 BUFEXCHG A RETRIEVE
1 0 -250 -8 -460 0 0 1 0 1 0 -1 0 0 3069b.dat
1 0 460 -8 -370 -1 0 0 0 1 0 0 0 -1 3069b.dat
1 0 260 -8 -430 -1 0 0 0 1 0 0 0 -1 3069b.dat
1 0 340 -8 -390 -1 0 0 0 1 0 0 0 -1 3069b.dat
0 STEP
1 15 -120 -8 -430 1 0 0 0 1 0 0 0 1 4162.dat
1 15 -80 -8 -410 1 0 0 0 1 0 0 0 1 4162.dat

Thanks in advance
Find here more tutorials for MLcad and LPub3D, I am currently collecting and writing manuals for these 2 tools.
https://www.bouwstone.nl/ldraw-manual/
Regards Allard


RE: Buffer Exchange Fault - Jaco van der Molen - 2020-04-10

(2020-04-09, 20:07)aefferen Wrote: Find here more tutorials for MLcad and LPub3D, I am currently collecting and writing manuals for these 2 tools.
https://www.bouwstone.nl/ldraw-manual/
Regards Allard

Hi Allard,

Could you please add the link to the new Working with LPub3D website on your page
https://www.bouwstone.nl/ldraw-manual/lpub3d-other-sources/

The link is this
https://sites.google.com/view/workingwithlpub3d/

Thanks.

Jaco


RE: Buffer Exchange Fault - aefferen - 2020-05-09

(2020-04-10, 14:14)Jaco van der Molen Wrote: Hi Allard,

Could you please add the link to the new Working with LPub3D website on your page
https://www.bouwstone.nl/ldraw-manual/lpub3d-other-sources/

The link is this
https://sites.google.com/view/workingwithlpub3d/

Thanks.

Jaco
Hello Jaco, Done! Regards Allard


RE: Buffer Exchange Fault - Jaco van der Molen - 2020-05-10

(2020-05-09, 11:19)aefferen Wrote: Hello Jaco, Done! Regards Allard

Tnx