LPub3D Unofficial parts in PLI

RE: LPub3D Unofficial parts in PLI
(2016-08-05, 0:58)Trevor Sandy Wrote: From my understanding LDCad templates are created with the name you define - or you can accept the default name proposed.  Therefore, you simply edit the substitute parts list file with the template name you defined as the default part and the shortcut or whatever representation you want as the alternate/substitute:

In this example the templates extension have been changed to .dat but this is not necessary to have the behaviour depicted.

I know very well this configuration. One may be likely to think that with the .ldr extension and 0 !LDRAW_ORG Unofficial_Model meta, the template is a model but, in fact, if you look at the source you will see it is also declared as a part with the meta 0 UNOFFICIAL PART; hence, why it automatically shows up in the LPub3D PLI.

I have been asking Roland for some time to consider allowing users the option to save a template with all the attributes of a part (i.e. .dat extension, 0 !LDRAW_ORG Unofficial_Part) but I understand this would conflict with the LDraw rules of 'unofficial' parts being parts that have not yet been approved. I can understand this position, even if I don't like it, so I have adapted LPub3D to recognize the 0 UNOFFICIAL PART meta; therefore, recognizing LDCad templates as parts (versus models) which they almost always are.

I could not reproduce your behaviour when I tested with 0 !LPUB PLI BEGIN SUB <part> <colour>/!LPUB PLI END metas. For me the behaviour was as expected.


I had a feeling it might work that way, but my concern is that if I want to use the same template more than once I will be forced to rename the second and so substitution won't work.

Anyway, my concern wasn't so much with the substitution. I added that because I thought it odd the unofficial part did show up in the PLI if inside a template, but not if used directly. My real "problem" is that unofficial parts are not included in the PLI and I'm trying to figure out why (mainly because I really want them to show up).

I tried with a few more unofficial parts that weren't WeDo 2.0 related to see if it made any difference, but none show up in the PLI or BOM.

For now I guess I'll just dump the unofficial parts in the official parts folder to circumvent the issue...


I placed the "offending" parts in the official library and got no results. Now I am really lost.

I searched around a little more and checked out the refresh options in the Tools menu. Those allow you to download the latest version of the complete ldraw library or a specialised LPub version of the unofficial files (lbupdldrawunf.zip) which are then stored in C:/user/<username>/Appdata/Local/LPub3D Software/Lpub3D/libraries. However, under Configuration > Preferences the path to the LDraw root directory is selected as a different location (C:\Users\Public\Documents\LDraw). 

Could this be the source of the conflict? Is LPub not looking where I told it to (and where my unofficial parts are included in both the unofficial and official libraries)?
« Next Oldest | Next Newest »

Messages In This Thread
RE: LPub3D Unofficial parts in PLI - by Jetro de Château - 2016-08-05, 7:45

Forum Jump:

Users browsing this thread: 1 Guest(s)