LEGO Mini Cooper - set 10242


LEGO Mini Cooper - set 10242
#1
Hi everyone,

I'm trying to convert an LXF file of set 10242 (Mini Cooper) to an LDraw file that I can open in MLCAD.

The LXF file is available here:
http://www.eurobricks.com/forum/index.ph...26&st=3975

Even after swapping out the the ldraw.xml file used by LDD with the one here...
http://gallaghersart.com/LEGO_forums/vie...wforum/28/
..there are still pieces missing.

The main pieces I need are:
Round Shield: http://brickset.com/parts/6076677
Plate W. Bow 2X2X2/3: http://brickset.com/parts/6047220
Flat Tile 2X2, Round "Udluft": http://brickset.com/parts/6052204
Flat Tile 1X1, Round "No.12": http://brickset.com/parts/6030333

I noticed that MagFors has been working on some of the other parts specific to this set:
http://www.ldraw.org/cgi-bin/ptscan.cgi?q=cooper

BTW - is there another way to convert an LXF file to LDraw without using the Export Model option within LEGO Digital Designer (I've got an older PC that doesn't have a graphics card that supports LEGO Digital Designer!)

Thanks

Reuben
Reply
Re: LEGO Mini Cooper - set 10242
#2
Hej,
except of the round shield I can remember that all other missing files are available in the LDraw library. Maybe there is just a problem within the ldraw.xml?

Actually I don't know if there is an other way to change lxf to ldr/mpd files.

/Max

PS.: Thanks for the hint. I think, I should continue the work on the missing sticker files...
Reply
Re: LEGO Mini Cooper - set 10242
#3
I think I have a solution to this. The ldraw.xml needs some editing.

Here we go.

First.
ldraw.xml never translates parts with pattern.
Unless someone puts together a large number of part alias files in ldraw dat-format and creates the equivalent translations in ldraw.xml.
You need to edit the converted file in MLCad, or another model editor, to have any patterned parts.

From your links I created this table of related files/part numbers.

.png   Image 1.png (Size: 8.16 KB / Downloads: 68)

Two of your requested parts are correctly converted by ldraw.xml, 4150 and 98138.
You need to change them into 4150ps4.dat and 98138pc1.dat
91884 is converted, but not correctly.
15068 is missing in ldraw.xml.


To fix this you need to edit your copy of ldraw.xml in a text editor. Notepad will do just fine. Right click on the file and open with Notepad.

Next, search for "91884" and change these lines:
Code:
    <!--  91884 35b  -->
    <Brick ldraw="XXXXX.dat" lego="XXXXX" />
    <Transformation ldraw="91884.dat" tx="0" ty="0" tz="0" ax="0" ay="1" az="0" angle="3.141593"/>
to this:
Code:
<!--  Minifig Shield Round with Stud and Ring Around Edge 91884 35b, Fixed by MagFors -->
<Brick ldraw="XXXXX.dat" lego="XXXXX" />
<!-- Transformation ldraw="91884.dat" tx="0" ty="0" tz="0" ax="0" ay="1" az="0" angle="3.141593"/ -->
<Transformation ldraw="91884.dat" tx="0" ty="0" tz="-0.16" ax="0" ay="0" az="1" angle="1.570796" />

Next, add these lines somewere in your copy of ldraw.xml
Code:
<!-- Slope, Curved 2 x 2 No Studs 15068, translation created by MagFors  -->
<Transformation ldraw="15068.dat" tx="-.4" ty=".32" tz="-.4" ax="0" ay="1" az="0" angle="4.712389"/>


I also noted that the part 11090 is not translated correctly. Search for "11090" and replace this:
Code:
    <!-- Bar Tube with Clip 11090 24  -->
    <Brick ldraw="XXXXX.dat" lego="XXXXX" />
    <Transformation ldraw="11090.dat" tx="0" ty="0" tz="0" ax="0" ay="1" az="0" angle="3.141593"/>
with this:
Code:
    <!-- Bar Tube with Clip 11090 24, Fixed by MagFors -->
    <Brick ldraw="XXXXX.dat" lego="XXXXX" />
    <!-- Transformation ldraw="11090.dat" tx="0" ty="0" tz="0" ax="0" ay="1" az="0" angle="3.141593"/ -->    
    <Transformation ldraw="11090.dat" tx="0" ty="-1.2" tz="0" ax="0" ay="1" az="0" angle="3.141593"/>

Save the file, and make a new export from LDD. The two corrected parts, and one missing, will be translated correctly.

Please note that the lxf-file of the model is not made correctly, compared to the real model.
The headlights are not placed correct.


.png   Image 2.png (Size: 62.92 KB / Downloads: 69)

In the real model the "1x1 tile with clip" is attached to a headlight brick, 4070

Pleas also note that any changes made to the ldraw.xml file will be overwritten the next time TLG chooses to update LDD.

I could have here also attached a corrected mpd-file of 10242, with stickers, but please remember that the fun of lego is putting it together yourself.
Reply
Re: LEGO Mini Cooper - set 10242
#4
Please see my post here below.
Reply
Re: LEGO Mini Cooper - set 10242
#5
Hi Magnus,

Thanks for taking a look at this. I'd started hacking around with the ldraw.xml file and added a section for converting and transforming 15068.dat. I'd managed to figure out the angle and then was using a trial and error approach to try and figure out the other transforms. Is there an easier way to do this?

I've now incorporated your suggested changes into my ldraw.xml file. My amended version can be found here

Here is my latest render of the Mini Cooper model.

[Image: mini_cooper_01.png]
I now need to add the sticker parts.

Reuben
Reply
Re: LEGO Mini Cooper - set 10242
#6
Reuben Pearse Wrote:Hi Magnus,

Thanks for taking a look at this. I'd started hacking around with the ldraw.xml file and added a section for converting and transforming 15068.dat. I'd managed to figure out the angle and then was using a trial and error approach to try and figure out the other transforms. Is there an easier way to do this?

There was LDDMaker, but the link is down.

w.
LEGO ergo sum
Reply
Re: LEGO Mini Cooper - set 10242
#7
Reuben Wrote:Is there an easier way to do this?

I use the same method. Trail and error, and try again....
I live by the rule: - You never fail until you stop trying.

Willy Wrote:There was LDDMaker, but the link is down.

Mike's new place is here, but I've never even heard of LDDMaker before.
Reply
RE: LEGO Mini Cooper - set 10242
#8
10242 - Mini Cooper Mk VII

   


File is not OMR
Missing: (AFAIK) none of the parts, only the cloth. Picnic basket and bottle in the trunk.


Attached Files
.mpd   10242.mpd (Size: 52.4 KB / Downloads: 16)
Reply
RE: LEGO Mini Cooper - set 10242
#9
(2020-04-08, 16:22)Magnus Forsberg Wrote: 10242 - Mini Cooper Mk VII




File is not OMR
Missing: (AFAIK) none of the parts, only the cloth. Picnic basket and bottle in the trunk.

As you may know, I did put in a part request for the cloth, but I can see why it mightn't exactly be a top priority. Rolleyes
Reply
« Next Oldest | Next Newest »



Forum Jump:


Users browsing this thread: 1 Guest(s)