LDraw.org Discussion Forums
LDCad Set PBG generator - 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: LDCad Set PBG generator (/thread-24060.html)

Pages: 1 2 3 4 5


RE: LDCad Set PBG generator - Merlijn Wissink - 2020-11-07

If I may ask; what is the advantage of this separate pbg exporter compared to the pbg exporter available on Rebrickable itself? It uses the same data, if I understand correctly?


RE: LDCad Set PBG generator - Orion Pobursky - 2020-11-07

(2020-11-07, 19:15)Merlijn Wissink Wrote: If I may ask; what is the advantage of this separate pbg exporter compared to the pbg exporter available on Rebrickable itself? It uses the same data, if I understand correctly?

The biggest advantage is the inclusion of assemblies (e.g. Torsos) that Rebrickable has declined to catalog as separate elements.

Also, it translate patterns that aren't yet included in the LDraw library to the plain versions.

And, when I finally get off my butt to program it, it'll include LDCad flexible elements as well.


RE: LDCad Set PBG generator - Orion Pobursky - 2020-11-27

(2020-11-02, 15:53)Philippe Hurbain Wrote: More annoying:
4589 cone was replaced by stickers 004589
4315 hinge was replaced by stickers 004315

I finally found this bug. Basically its that there's a sticker sheet with the number 004589 and a part with the number 4589. So it's a number conversion problem. It's gonna be a bit before it's fixed since I have to add a new field to the CSV file or improve part match logic (whichever proves to be more efficient)


RE: LDCad Set PBG generator - Philippe Hurbain - 2020-11-27

(2020-11-27, 16:01)Orion Pobursky Wrote: I finally found this bug. Basically its that there's a sticker sheet with the number 004589 and a part with the number 4589. So it's a number conversion problem. It's gonna be a bit before it's fixed since I have to add a new field to the CSV file or improve part match logic (whichever proves to be more efficient)
A little request (I guess it should rather go to Roland actually...): in LDCad, I can't search for set description, only for set number. That improves if the pbg file name is extended to contain set description...


RE: LDCad Set PBG generator - Orion Pobursky - 2020-11-27

(2020-11-27, 17:32)Philippe Hurbain Wrote: That improves if the pbg file name is extended to contain set description...

This is trivial to implement. I'll have it done shortly.


RE: LDCad Set PBG generator - Orion Pobursky - 2020-11-27

(2020-11-27, 17:44)Orion Pobursky Wrote: This is trivial to implement. I'll have it done shortly.

Done!


RE: LDCad Set PBG generator - Orion Pobursky - 2020-11-27

(2020-11-27, 16:01)Orion Pobursky Wrote: I finally found this bug. Basically its that there's a sticker sheet with the number 004589 and a part with the number 4589. So it's a number conversion problem. It's gonna be a bit before it's fixed since I have to add a new field to the CSV file or improve part match logic (whichever proves to be more efficient)

I was even wrong about the source of the bug. It was a problem with the cross reference file itself. This problem is now fixed.


RE: LDCad Set PBG generator - Philippe Hurbain - 2021-05-08

Got a small problem with PBG generator for 42121 set. Generated PBG uses 92694 for linear actuator, but this is actually the body only. AFAIK, Rebrickable inventory lists 92693, and this one correctly maps to 92693c01-f1.


RE: LDCad Set PBG generator - Orion Pobursky - 2021-05-11

(2021-05-08, 17:28)Philippe Hurbain Wrote: Got a small problem with PBG generator for 42121 set. Generated PBG uses 92694 for linear actuator, but this is actually the body only. AFAIK, Rebrickable inventory lists 92693, and this one correctly maps to 92693c01-f1.

Hmm. I don't know what's going on here. The response from Rebrickable doesn't even have 92694 in it and the crossref file isn't overriding anything. I'll have to dig into the code to find out whats up.


RE: LDCad Set PBG generator - Orion Pobursky - 2021-05-11

(2021-05-11, 21:08)Orion Pobursky Wrote: Hmm. I don't know what's going on here. The response from Rebrickable doesn't even have 92694 in it and the crossref file isn't overriding anything. I'll have to dig into the code to find out whats up.

I found the issue. 92693 is MOVED TO 92694. This means that I need to retool my order of operations regarding redirect substitution. This will give me the opportunity to update and streamline the code.