Parts search paths


RE: Parts search paths
#10
(2021-03-13, 18:02)Leonardo Zide Wrote: I was having a conversation with Trevor about a bug in LPub3D related to this and looks like both LDView and LDCad search the official folders before unofficial so the search order I posted is wrong. I'll be changing LeoCAD to follow the other tools but this is really something that should be in the standard.

What's the procedure to proposing an update to the spec?

Apparently I was misremembering when I originally posted that. I just looked at the source code, and LDView's default search path is like this:

[color=rgba(255, 255, 255, 0.85)]   return "<MODELDIR>"[/color]
[color=rgba(255, 255, 255, 0.85)]   "|<HIDE><DEFPRIM><LDRAWDIR>\\P"[/color]
[color=rgba(255, 255, 255, 0.85)]   "|<DEFPART><LDRAWDIR>\\PARTS"[/color]
[color=rgba(255, 255, 255, 0.85)]   "|<LDRAWDIR>\\MODELS"[/color]
[color=rgba(255, 255, 255, 0.85)]   "|<UNOFFIC><HIDE><DEFPRIM><LDRAWDIR>\\Unofficial\\P"[/color]
[color=rgba(255, 255, 255, 0.85)]   "|<UNOFFIC><DEFPART><LDRAWDIR>\\Unofficial\\PARTS"[color=rgba(255, 255, 255, 0.85)];[/color][/color]

The above comes from Lars C. Hassing's LDrawIni (which LDView uses). Before looking for a file on the disk (using LDrawIni), LDView first checks if the file has been loaded from an MPD. So files in MPD files always come first.

As for updating the spec, I'll get that process started.
Reply
« Next Oldest | Next Newest »



Messages In This Thread
Parts search paths - by Leonardo Zide - 2019-11-25, 22:29
RE: Parts search paths - by Orion Pobursky - 2019-11-25, 22:36
RE: Parts search paths - by Leonardo Zide - 2019-11-26, 19:25
RE: Parts search paths - by Philippe Hurbain - 2019-11-26, 19:31
RE: Parts search paths - by Leonardo Zide - 2019-11-26, 23:13
RE: Parts search paths - by Travis Cobbs - 2019-11-27, 4:35
RE: Parts search paths - by Leonardo Zide - 2021-03-13, 18:02
RE: Parts search paths - by Roland Melkert - 2021-03-13, 20:16
RE: Parts search paths - by Travis Cobbs - 2021-03-14, 1:46

Forum Jump:


Users browsing this thread: 1 Guest(s)