LPub3D 2.0 Released


RE: LPub3D 2.0 Released
#84
(2016-07-29, 6:47)Trevor Sandy Wrote:
(2016-07-28, 20:09)Roland Melkert Wrote: I think I found a bug in LPub3D (and Lpub4 as it does the same).

given this ldraw fragement:

Code:
1 14 0 0 -90 1 0 0 0 1 0 0 0 1 3005pt1.dat
1 14 40 0 -90 1 0 0 0 1 0 0 0 1 3005pt2.dat
0 BUFEXCHG A STORE
1 14 490 0 -110 1 0 0 0 1 0 0 0 1 3005pe5.dat
0 STEP
1 14 490 0 -110 1 0 0 0 1 0 0 0 1 3005pe5.dat
0 BUFEXCHG A RETRIEVE
1 14 80 0 -90 1 0 0 0 1 0 0 0 1 3005pt3.dat
1 14 120 0 -90 1 0 0 0 1 0 0 0 1 3005pt4.dat
1 14 160 0 -90 1 0 0 0 1 0 0 0 1 3005pt5.dat

LPub will display 4 bricks for the 2nd step. But (imho) it should exclude  3005pe5.dat

I'm not sure about this though, I ran into this when validating the new LDCad 1.6 bufexchg stuff.

Yep - I agree. The PLI should display 3005pt3.dat, 3005pt4.dat and 3005pt5.dat.

I'll take a look.

Cheers,


Roland, I took a look. Basically the issue is if you call BUFEXCHG RETRIEVE after inserting parts in the step, those parts will be overwritten with parts from the buffer.

So here is what happens with each meta command:
  0 BUFEXCHG A STORE: put all parts in the step up to the pont of the command into a buffer.
  0 BUFEXCHG A RETRIEVE: overwrite the current parts list (csiParts) with the parts from the buffer.
If I use your sample:
Code:
1 14 0 0 -90 1 0 0 0 1 0 0 0 1 3005pt1.dat
1 14 40 0 -90 1 0 0 0 1 0 0 0 1 3005pt2.dat
0 BUFEXCHG A STORE
1 14 490 0 -110 1 0 0 0 1 0 0 0 1 3005pe5.dat
0 STEP
1 14 490 0 -110 1 0 0 0 1 0 0 0 1 3005pe5.dat
0 BUFEXCHG A RETRIEVE
1 14 80 0 -90 1 0 0 0 1 0 0 0 1 3005pt3.dat
1 14 120 0 -90 1 0 0 0 1 0 0 0 1 3005pt4.dat
1 14 160 0 -90 1 0 0 0 1 0 0 0 1 3005pt5.dat

We can expect for step one three parts will be in the CSI and PLI (3005pt1.dat, 3005pt2.dat and 3005pe5.dat). Two parts are stored in the buffer (3005pt1.dat and 3005pt2.dat)
   

For step 2 we can see the parts from the buffer have been retrieved in the CSI (3005pt1.dat and 3005pt2.dat); however, they correctly do not show in the PLI. We can also correctly see step 2's parts in the PLI (3005pe5.dat, 3005pt3.dat, 3005pt4.dat and 3005pt5.dat) but part 3005pe5.dat is not displayed in the CSI.
   

 That part 3005pe5.dat is missing from the CSI, I believe, is the problem in your example. As stated earlier, this behaviour is because retrieving the buffer overwrites any parts in the CSI list so because BUFEXCHG A RETRIEVE in your example is after the declaration of part 3005pe5.dat; we see this part in the PLI but it is not in the CSI image.

If we move BUFEXCHG A RETRIEVE to be the first declaration in step two. The behavior is as designed.
Code:
1 14 0 0 -90 1 0 0 0 1 0 0 0 1 3005pt1.dat
1 14 40 0 -90 1 0 0 0 1 0 0 0 1 3005pt2.dat
0 BUFEXCHG A STORE
1 14 490 0 -110 1 0 0 0 1 0 0 0 1 3005pe5.dat
0 STEP
0 BUFEXCHG A RETRIEVE
1 14 490 0 -110 1 0 0 0 1 0 0 0 1 3005pe5.dat
1 14 80 0 -90 1 0 0 0 1 0 0 0 1 3005pt3.dat
1 14 120 0 -90 1 0 0 0 1 0 0 0 1 3005pt4.dat
1 14 160 0 -90 1 0 0 0 1 0 0 0 1 3005pt5.dat
   

You can see above, part 3005pe5.dat is now visible in the CSI. 

If it is your intention to hide a part. You can use the ignore commands as in this example: 
Code:
0 !LPUB PART BEGIN IGN
1 14 490 0 -110 1 0 0 0 1 0 0 0 1 3005pe5.dat
0 !LPUB PART END

I could include logic to check if any parts are declared in the step before the BUFEXCHG A RETRIEVE command but this could get complicated if multiple buffer commands are declared within a step. I think it is ok to just advise that, in a step, one should declare the BUFEXCHG A RETRIEVE first or before any parts are declared.

What do you think?

Cheers,
Reply
« Next Oldest | Next Newest »



Messages In This Thread
LPub3D 2.0 Released - by Trevor Sandy - 2016-06-23, 6:16
RE: LPub3D 2.0 Released - by Trevor Sandy - 2016-06-23, 16:20
RE: LPub3D 2.0 Released - by Philippe Hurbain - 2016-06-23, 11:07
RE: LPub3D 2.0 Released - by Trevor Sandy - 2016-06-23, 13:41
RE: LPub3D 2.0 Released - by Trevor Sandy - 2016-06-23, 14:42
RE: LPub3D 2.0 Released - by Philippe Hurbain - 2016-06-23, 15:20
RE: LPub3D 2.0 Released - by Trevor Sandy - 2016-06-23, 16:11
RE: LPub3D 2.0 Released - by Merlijn Wissink - 2016-06-23, 18:13
RE: LPub3D 2.0 Released - by Trevor Sandy - 2016-06-23, 20:39
RE: LPub3D 2.0 Released - by Merlijn Wissink - 2016-06-23, 21:05
RE: LPub3D 2.0 Released - by Philippe Hurbain - 2016-06-23, 18:52
RE: LPub3D 2.0 Released - by Trevor Sandy - 2016-06-23, 20:45
RE: LPub3D 2.0.2 Released - by Trevor Sandy - 2016-06-24, 5:37
RE: LPub3D 2.0.2 Released - by Trevor Sandy - 2016-06-24, 18:35
RE: LPub3D 2.0.2 Released - by Roland Melkert - 2016-06-24, 18:59
RE: LPub3D 2.0.2 Released - by Trevor Sandy - 2016-06-25, 0:11
RE: LPub3D 2.0.2 Released - by Roland Melkert - 2016-06-25, 19:53
RE: LPub3D 2.0.2 Released - by Trevor Sandy - 2016-06-25, 10:10
RE: LPub3D 2.0.2 Released - by Trevor Sandy - 2016-06-26, 19:20
RE: LPub3D 2.0.2 Released - by Trevor Sandy - 2016-06-24, 19:35
RE: LPub3D 2.0.2 Released - by Trevor Sandy - 2016-06-24, 18:43
RE: LPub3D 2.0.2 Released - by Willy Tschager - 2016-07-05, 15:24
RE: LPub3D 2.0.2 Released - by Trevor Sandy - 2016-07-05, 20:53
RE: LPub3D 2.0.2 Released - by Willy Tschager - 2016-07-06, 13:28
RE: LPub3D 2.0.2 Released - by Trevor Sandy - 2016-07-07, 5:51
RE: LPub3D 2.0 Released - by David Manley - 2016-06-27, 8:58
RE: LPub3D 2.0 Released - by Trevor Sandy - 2016-06-27, 20:20
RE: LPub3D 2.0 Released - by Travis Cobbs - 2016-06-28, 4:14
RE: LPub3D 2.0 Released - by Trevor Sandy - 2016-06-28, 13:50
RE: LPub3D 2.0 Released - by Travis Cobbs - 2016-06-28, 20:48
RE: LPub3D 2.0 Released - by David Manley - 2016-06-28, 23:35
RE: LPub3D 2.0 Released - by Trevor Sandy - 2016-06-29, 17:50
RE: LPub3D 2.0 Released - by David Manley - 2016-06-29, 20:51
RE: LPub3D 2.0.3 Released - by Trevor Sandy - 2016-06-28, 14:10
RE: LPub3D 2.0 Released - by Roland Melkert - 2016-06-30, 17:46
RE: LPub3D 2.0 Released - by Trevor Sandy - 2016-06-30, 21:24
RE: LPub3D 2.0 Released - by Philippe Hurbain - 2016-06-30, 17:50
RE: LPub3D 2.0 Released - by Trevor Sandy - 2016-06-30, 21:30
RE: LPub3D 2.0 Released - by Trevor Sandy - 2016-07-01, 16:08
RE: LPub3D 2.0 Released - by Trevor Sandy - 2016-07-05, 20:28
RE: LPub3D 2.0 Released - by Trevor Sandy - 2016-07-07, 5:27
RE: LPub3D 2.0 Released - by Trevor Sandy - 2016-07-01, 10:15
RE: LPub3D 2.0 Released - by Philippe Hurbain - 2016-07-01, 11:54
RE: LPub3D 2.0 Released - by Trevor Sandy - 2016-07-01, 14:00
RE: LPub3D 2.0 Released - by Trevor Sandy - 2016-07-02, 18:28
RE: LPub3D 2.0 Released - by Philippe Hurbain - 2016-07-02, 19:43
RE: LPub3D 2.0 Released - by Trevor Sandy - 2016-07-03, 17:35
RE: LPub3D 2.0 Released - by Trevor Sandy - 2016-07-05, 20:03
RE: LPub3D 2.0 Released - by Philippe Hurbain - 2016-07-05, 20:27
LPub3D 2.0.4 Released - by Trevor Sandy - 2016-07-02, 2:23
RE: LPub3D 2.0.4 Released - by Trevor Sandy - 2016-07-03, 17:23
RE: LPub3D 2.0 Released - by Trevor Sandy - 2016-07-05, 20:05
RE: LPub3D 2.0 Released - by Trevor Sandy - 2016-07-07, 3:43
LPub3D 2.0.5 Released - by Trevor Sandy - 2016-07-07, 8:52
RE: LPub3D 2.0 Released - by Trevor Sandy - 2016-07-08, 7:38
RE: LPub3D 2.0 Released - by Trevor Sandy - 2016-07-08, 7:46
RE: LPub3D 2.0 Released - by Merlijn Wissink - 2016-07-15, 14:51
RE: LPub3D 2.0 Released - by Trevor Sandy - 2016-07-15, 17:08
RE: LPub3D 2.0 Released - by Merlijn Wissink - 2016-07-17, 17:54
RE: LPub3D 2.0 Released - by Trevor Sandy - 2016-07-18, 13:06
RE: LPub3D 2.0 Released - by Trevor Sandy - 2016-07-19, 21:09
LPub3D 2.0.6 Released - by Trevor Sandy - 2016-07-18, 14:21
LPub3D 2.0.7 Released - by Trevor Sandy - 2016-07-22, 2:15
RE: LPub3D 2.0 Released - by Roland Melkert - 2016-07-28, 20:09
RE: LPub3D 2.0 Released - by Trevor Sandy - 2016-07-29, 6:47
RE: LPub3D 2.0 Released - by Trevor Sandy - 2016-08-03, 4:18
RE: LPub3D 2.0 Released - by Roland Melkert - 2016-08-03, 18:22
RE: LPub3D 2.0 Released - by Trevor Sandy - 2016-08-03, 22:47
RE: LPub3D 2.0 Released - by Roland Melkert - 2016-08-03, 23:15
RE: LPub3D 2.0 Released - by Travis Cobbs - 2016-08-04, 5:06
RE: LPub3D 2.0 Released - by Roland Melkert - 2016-08-04, 17:31
RE: LPub3D 2.0 Released - by Travis Cobbs - 2016-08-04, 19:36
RE: LPub3D 2.0 Released - by Trevor Sandy - 2016-08-04, 22:38
LPub3D 2.0.8 Released - by Trevor Sandy - 2016-08-05, 3:40
RE: LPub3D 2.0 Released - by Roland Melkert - 2016-08-10, 18:22
RE: LPub3D 2.0 Released - by Merlijn Wissink - 2016-08-10, 20:38
RE: LPub3D 2.0 Released - by Trevor Sandy - 2016-08-11, 1:06
RE: LPub3D 2.0 Released - by Trevor Sandy - 2016-08-18, 12:35
RE: LPub3D 2.0 Released - by Trevor Sandy - 2016-09-14, 23:47
RE: LPub3D 2.0 Released - by Trevor Sandy - 2016-09-15, 14:40
LPub3D 2.0.9 Released - by Trevor Sandy - 2016-09-05, 1:18
RE: LPub3D 2.0.9 Released - by David Manley - 2016-09-06, 4:11
RE: LPub3D 2.0.9 Released - by David Manley - 2016-09-06, 4:56
RE: LPub3D 2.0.9 Released - by David Manley - 2016-09-06, 8:46
RE: LPub3D 2.0.9 Released - by Trevor Sandy - 2016-09-06, 8:52
RE: LPub3D 2.0.9 Released - by David Manley - 2016-09-06, 10:17
RE: LPub3D 2.0.9 Released - by Trevor Sandy - 2016-09-06, 11:40
RE: LPub3D 2.0.9 Released - by Travis Cobbs - 2016-09-06, 17:29
LPub3D 2.0.10 Released - by Trevor Sandy - 2016-09-07, 22:16
RE: LPub3D 2.0.10 Released - by David Manley - 2016-09-07, 23:54
LPub3D 2.0.11 Released - by Trevor Sandy - 2016-09-19, 1:37
LPub3D 2.0.12 Released - by Trevor Sandy - 2016-09-20, 16:57
RE: LPub3D 2.0 Released - by Trevor Sandy - 2016-09-28, 9:47
LPub3D 2.0.13 Released - by Trevor Sandy - 2016-10-06, 15:31
LPub3D 2.0.14 Released - by Trevor Sandy - 2016-10-13, 14:36
LPub3D 2.0.15 Released - by Trevor Sandy - 2016-10-29, 4:21
RE: LPub3D 2.0.15 Released - by Robert - 2016-11-13, 9:47
RE: LPub3D 2.0.15 Released - by Trevor Sandy - 2016-11-19, 15:36
RE: LPub3D 2.0.15 Released - by Robert - 2016-11-20, 8:40
RE: LPub3D 2.0.15 Released - by Trevor Sandy - 2016-11-20, 14:15
RE: LPub3D 2.0 Released - by Merlijn Wissink - 2016-11-13, 13:38
RE: LPub3D 2.0 Released - by Trevor Sandy - 2016-11-19, 15:29
RE: LPub3D 2.0 Released - by Merlijn Wissink - 2016-11-19, 20:18
RE: LPub3D 2.0 Released - by Trevor Sandy - 2016-11-19, 21:44
RE: LPub3D 2.0 Released - by Merlijn Wissink - 2016-11-19, 13:28
RE: LPub3D 2.0 Released - by Trevor Sandy - 2016-11-19, 16:17
RE: LPub3D 2.0 Released - by Merlijn Wissink - 2016-11-19, 20:23
RE: LPub3D 2.0 Released - by Trevor Sandy - 2016-11-19, 22:04
RE: LPub3D 2.0 Released - by Trevor Sandy - 2016-11-20, 12:58
LPub3D 2.0 Released - by Trevor Sandy - 2016-11-19, 16:25
RE: LPub3D 2.0 Released - by Trevor Sandy - 2016-11-20, 13:19
RE: LPub3D 2.0 Released - by Merlijn Wissink - 2016-11-20, 13:52
RE: LPub3D 2.0 Released - by Trevor Sandy - 2016-11-20, 14:28
RE: LPub3D 2.0 Released - by Merlijn Wissink - 2016-11-20, 18:25
RE: LPub3D 2.0 Released - by Trevor Sandy - 2016-11-20, 18:44
RE: LPub3D 2.0 Released - by Trevor Sandy - 2016-11-21, 12:53
RE: LPub3D 2.0 Released - by Merlijn Wissink - 2016-11-21, 15:25
RE: LPub3D 2.0 Released - by Trevor Sandy - 2016-11-21, 16:06
LPub3D 2.0 Released - by Trevor Sandy - 2016-11-21, 15:21
LPub3D 2.0 Released - by Trevor Sandy - 2016-11-27, 21:45
RE: LPub3D 2.0 Released - by Trevor Sandy - 2016-12-05, 0:32
RE: LPub3D 2.0 Released - by Merlijn Wissink - 2017-02-20, 18:59
LPub3D 2.0 Released - by Trevor Sandy - 2016-12-08, 12:41
RE: LPub3D 2.0 Released - by Trevor Sandy - 2016-12-09, 10:01
LPub3D 2.0 for Linux - by Milan Vančura - 2016-12-09, 12:24
RE: LPub3D 2.0 for Linux - by Trevor Sandy - 2016-12-09, 19:49
RE: LPub3D 2.0 for Linux - by Kevin - 2016-12-10, 5:27
RE: LPub3D 2.0 for Linux - by Trevor Sandy - 2016-12-13, 12:55
RE: LPub3D 2.0 for Linux - by Milan Vančura - 2016-12-14, 22:57
RE: LPub3D 2.0 for Linux - by Milan Vančura - 2016-12-14, 23:06
RE: LPub3D 2.0 for Linux - by Trevor Sandy - 2016-12-16, 13:58
RE: LPub3D 2.0 for Linux - by Trevor Sandy - 2016-12-15, 9:34
RE: LPub3D 2.0 for Linux - by Milan Vančura - 2016-12-15, 12:05
RE: LPub3D 2.0 for Linux - by Trevor Sandy - 2016-12-15, 13:07
RE: LPub3D 2.0 for Linux - by Milan Vančura - 2016-12-16, 14:07
RE: LPub3D 2.0 Released - by Merlijn Wissink - 2016-12-09, 12:48
RE: LPub3D 2.0 Released - by Philippe Hurbain - 2016-12-09, 14:42
RE: LPub3D 2.0 Released - by Trevor Sandy - 2016-12-09, 18:50
RE: LPub3D 2.0 Released - by Merlijn Wissink - 2016-12-27, 10:05
RE: LPub3D 2.0 Released - by Trevor Sandy - 2016-12-27, 23:49
RE: LPub3D 2.0 Released - by Trevor Sandy - 2016-12-28, 14:55
RE: LPub3D 2.0 Released - by Merlijn Wissink - 2016-12-31, 15:08
RE: LPub3D 2.0 Released - by Merlijn Wissink - 2016-12-31, 15:02
RE: LPub3D 2.0 Released - by Trevor Sandy - 2017-02-09, 2:32
RE: LPub3D 2.0 Released - by Merlijn Wissink - 2017-01-02, 12:30
RE: LPub3D 2.0 Released - by Trevor Sandy - 2017-02-09, 2:34
RE: LPub3D 2.0 Released - by Willy Tschager - 2017-01-09, 15:46
RE: LPub3D 2.0 Released - by Trevor Sandy - 2017-02-09, 3:06
RE: LPub3D 2.0 Released - by Walt White - 2017-01-16, 19:06
RE: LPub3D 2.0 Released - by Trevor Sandy - 2017-02-09, 3:19
RE: LPub3D 2.0 Released - by Merlijn Wissink - 2017-01-22, 18:20
RE: LPub3D 2.0 Released - by Trevor Sandy - 2017-02-09, 3:21
RE: LPub3D 2.0 Released - by Merlijn Wissink - 2017-02-03, 14:14
RE: LPub3D 2.0 Released - by Trevor Sandy - 2017-02-09, 3:30
LPub3D 2.0.20 Released - by Trevor Sandy - 2017-02-09, 4:15
RE: LPub3D 2.0.20 Released - by Trevor Sandy - 2017-02-12, 23:02
RE: LPub3D 2.0.20 Released - by Trevor Sandy - 2017-02-13, 19:12
RE: LPub3D 2.0.20 Released - by Trevor Sandy - 2017-02-13, 22:29
RE: LPub3D 2.0 Released - by Merlijn Wissink - 2017-03-11, 15:37
RE: LPub3D 2.0 Released - by Merlijn Wissink - 2017-05-03, 13:47
RE: LPub3D 2.0 Released - by Merlijn Wissink - 2017-05-23, 16:06
RE: LPub3D 2.0 Released - by Kevin - 2017-06-02, 2:09
RE: LPub3D 2.0 Released - by Travis Cobbs - 2017-07-01, 2:29

Forum Jump:


Users browsing this thread: 22 Guest(s)