Note: LDLink has been superseded by LDMerge.
LDLink is a utility that can reversibly combine separate LDraw part libraries by creating symbolic links to the contents of one directory structure in another. Alternate libraries can be used to manage unofficial LDraw parts; support for this concept is present to varying degrees in some LDraw programs. This utility is intended to facilitate other tools, such as L3P, which do not readily support parallel part libraries.
Download ldlink 1.0 (5k Tcl script)
Install the script as
ldlink and make it executable with
chmod +x ldlink.
Usage: ldlink merge|unmerge [-src LDRAWDIR] [-dst LDRAWDIR] On merge, links to src files are created in dst. On unmerge, links named after src files are removed from dst. Conflicts with normal files in dst are skipped and reported. Default dst is LDRAWDIR environment variable. Default src is dst/Unofficial.
To merge unofficial parts downloaded by LDView with the rest of your part library, the following command may be sufficient:
If the environment variable
LDRAWDIR is not defined — or if you would like to override its value — use the
dst option to specify the destination where the merge should occur. Likewise, the
src option may be used to merge parts from a source other than the destination’s
ldlink merge -src /Custom/LDraw -dst /Standard/LDraw
To reverse a merge, reissue the command using
unmerge instead of
ldlink unmerge ldlink unmerge -src /Custom/LDraw -dst /Standard/LDraw
LDLink reports how many links it created or removed.
Posted on Tuesday, July 10th, 2007. Tags: LEGO.