How to get the unofficial parts library to work in Mac OS

How to get the unofficial parts library to work in Mac OS

This afternoon I've been looking at the cool 'unofficial parts library', they looked good on the website but when I opened them in Bricksmith I cept getting 'Bricksmith couldn't find all of the pieces in this file. The following are missing: s\xxxx.dat, s\xxx.dat', (those filenames are just an example) and realized why this was, it's because all of the file 'scripts' / contents when opened in a text editor have an '\' in them when it should be an '/', replacing all of them allows Bricksmith to find the subparts (located in the 's' directory).

Now, the problem was editing these thousands of files so I found a program called textmate ,when I went back the parts opened fine with no errors and had no changes to the file extention.

Here's how to fix this:

Download the unofficial parts library and extract the 'LDRAWUNF' directory to the bricksmith folder so you have the folders 'LDRAW' and 'LDRAWUNF' (LDRAW should already be there as it comes with bricksmith).

Find the 's' subfolder in 'LDRAWUNF'>'parts' and move it onto the desktop (make sure it is moved not just duplicated).
Download 'Textmate' then after installing. goto 'file', 'open'.
Locate the 'parts' folder in 'LDRAWUNF' and in the parts folder select all of the dat files and hit 'open'. (there should be nothing but .dat files in that folder since we moved the 's' folder).

Goto 'edit' and click 'find', then 'find in project'.

Type in the 'find' bar '\' (with no quotes) and hit 'find'.

In the 'replace' box, type in '/' (no quotes) and hit 'replace all'

Close the box and go to 'file', 'save all'.

Now go ahead and move the 's' folder back into the 'parts' folder in 'LDRAWUNF'

All or most parts should now return no errors when being opened.

***NOTE*** the 'parts' or 'p' folder containing official parts that comes with bricksmith should not be touched for this fix.

Note to mods, Im not sure what category of the Ldraw forum this should be located in.
« Next Oldest | Next Newest »

Messages In This Thread
How to get the unofficial parts library to work in Mac OS - by SNIPE - 2012-10-12, 22:32

Forum Jump:

Users browsing this thread: 1 Guest(s)