SylvainLS

More up-to-date ldraw.xml LDD/LDraw conversion file

Recommended Posts

Update 2018-03-01

Added:

  • 24504 / 24504.dat  Minifig Face Scarf with Notch in Back
  • 27254 / 27254.dat  Wheel 37 x 62 with Rocky Spikes and  7 Pegholes
  • 27259 / 27259.dat  Plate  1 x  2 with  3 x  6 Hexagonal Extension with  2 Bars

md5sum: 4920bbf3d2c5b3a6847bccb3edccfd94

Share this post


Link to post
Share on other sites

Update 2018-03-03

Added:

  • 28779 / 28779.dat  Tail  7 x  1 x  2.667 Bat Style with Offset Peghole

Rematched (correct variant):

  • 57029 / 57029c01.dat  Technic Competition Cannon with Flat Bottom - Body

md5sum: c78c4491aafbe599fe01e39acf449d2f

Share this post


Link to post
Share on other sites

Update 2018-03-06

Added:

  • 24943 / 24943.dat  Minifig Arm Short Curved with Hand
  • 27956 / 27956.dat  Minifig Head The Extra Terrestrial
  • 28660 / 28660.dat  Figure Arm Bent with Clip and Friction Pin

md5sum: e097aaac10f5056abadb2cd85957da11

Share this post


Link to post
Share on other sites

Update 2018-03-07

Added:

  • 27152 / 27152.dat  Animal Lobster
  • 29115 / 29115.dat  Wedge  6 x  6 Triple Inverted
  • 95328 / 95328.dat  Minifig Hair Female Mid Length Smooth (Egyptian Queen)

md5sum: 52e679ada74092f6ea7fab41f50b364f

Share this post


Link to post
Share on other sites
8 minutes ago, antomio said:

Hi Sylvain, the 1x2 and 1x3 inverted slope can't be imported, exact ?

You mean 3665 and 4287?

Yes, it’s a problem I haven’t tackled yet.

Let’s take 4287 as an example.  It has different variants in LDraw:

  • 4287.dat, which is “~Moved,” so deprecated,
  • 4287a.dat, the old type, with thick lip,
  • 4287b.dat, the old type, with thick lip but stop rings inside the hollow studs,
  • 4287c.dat, the new type, with thin lip and stop rings.

For now, it’s 4287b which is used.  (I was waiting for 4287c to come in but let it burn on the back burner :grin:.)  That means 4287 in LDD will export as 4287b.dat in LDraw.  That also means only 4287b.dat can be imported.  It’s a problem.  It isn’t frequent nor does it concerns usual parts (except these slopes :tongue:) but it happens.

For now, I mainly focused on export, trying to use the more accurate and latest variants.  But import is important too, so I’ll try to add what’s necessary to be able to import variants.  Thanks for reminding me.

Share this post


Link to post
Share on other sites

Update 2018-03-08 a.k.a. the “Souvent femme varie, bien fol est qui s’y fie.” version.

Added:

  • 21459 / 30173b.dat  Minifig Sword Katana Type  2 (Square Guard)

Rematched:

  • 33009 / 33009-f1.dat  Minifig Book

Added as importable variants (in italic, the preferred variant for export):

  • 4287.dat, 4287a.dat, 4287b.dat, 4287c.dat as 4287
  • 2547a.dat, 2547b.dat as 2547
  • 4220.dat, 4220a.dat, 4220b.dat as 4220
  • 415.dat, 6047.dat, 6217.dat as 6047
  • 30359.dat, 30359a.dat, 30359b.dat as 30359
  • 47829.dat, 47829a.dat, 47829b.dat as 47829
  • 2714.dat, 2714a.dat, 2714b.dat as 2714
  • 95.dat, 2748.dat, 3857.dat, 3857h.dat as 2748
  • 10128p01.dat, 10128p02.dat as 10128
  • 50859a.dat, 50829b.dat as 50859
  • 48002.dat, 48002a.dat, 48002b.dat as 48002
  • 2436b.dat, 10201.dat as 10210
  • 2436.dat, 2436a.dat as 2436
  • 28.dat, 708.dat, 3062.dat, 3062a.dat, 3062b.dat as 3062
  • 60475.dat, 60475a.dat, 60475b.dat as 60475
  • 407.dat, 71076.dat, 71075a.dat as 71075
  • 2453.dat, 2453a.dat, 2453b.dat as 2453
  • 3067.dat, 3067a.dat as 3067
  • 3063.dat, 3063b.dat as 3063
  • 60033.dat, 4202.dat as 60033
  • 4201.dat, 4203.dat as 43002
  • 4204.dat, 44041.dat as 44041
  • 2578.dat, 2578a.dat as 2578
  • 4212.dat, 4212b.dat as 4212
  • 3942.dat, 3942a.dat, 3942b.dat as 3942
  • 3943.dat, 3943a.dat, 3943b.dat as 3943
  • 4345.dat, 4345a.dat, 4345b.dat as 4345
  • 2350.dat, 2350a.dat, 2350b.dat, 2350c.dat as 2350
  • 557.dat, 30367.dat, 30367a.dat, 30367b.dat, 30367c.dat as 30367
  • 30361.dat, 30361a.dat, 30361d.dat as 30361
  • 4285.dat, 4285a.dat, 4285b.dat as 4285
  • 44375.dat, 44375a.dat as 44375
  • 50990.dat, 50990a.dat, 50990b.dat as 19725
  • 445.dat, 3193a.dat as 3193
  • 446.dat, 3192a.dat as 3192
  • 60616a.dat, 60616b.dat as 60616
  • 2871.dat, 2871a.dat, 2871b.dat as 2871
  • 891.dat, 30292.dat, 30292a.dat, 30292b.dat as 30292
  • 808.dat, 2348.dat, 2348a.dat, 2348b.dat as 2348
  • 138.dat, 3855.dat, 3855a.dat, 3855b.dat as 3855
  • 480.dat, 30554.dat, 30554a.dat, 30554b.dat as 30554
  • 30389.dat, 30389a.dat, 30389b.dat as 30389
  • 2349.dat, 2349a.dat, 2349b.dat as 2349
  • 4276.dat, 4176a.dat, 4276b.dat as 4276
  • 4275.dat, 4175a.dat, 4275b.dat as 4275
  • 43122.dat, 46667.dat as 43122
  • 4207.dat, 4207a.dat as 4207
  • 2609.dat, 2609a.dat as 2609
  • 18.dat, 3626.dat, 3626a.dat, 3626b.dat, 3626c.dat as 3626
  • 90462.dat, 90462a.dat, 90462b.dat as 90462
  • 193a.dat, 193b.dat, 3842.dat, 3842a.dat, 3842b.dat, 3842c.dat as 3842
  • 769.dat, 23318.dat as 23318
  • 41879.dat, 41879a.dat, 41879b.dat as 41879
  • 577.dat, 577b.dat as 64567
  • 149.dat, 3962.dat, 3962a.dat, 3962b.dat as 3962
  • 30362.dat, 30362a.dat as 30362
  • 30173.dat, 30173a.dat as 30173
  • 4865.dat, 4865a.dat, 4865b.dat as 4865
  • 4864.dat, 4864a.dat, 4864b.dat as 4864
  • 2362.dat, 2362a.dat, 2362b.dat as 2362
  • 4215.dat, 4215a.dat, 4215b.dat as 4215
  • u9017.dat, 4868b.dat as 4868
  • 142.dat, 3741.dat, 3741a.dat as 3741
  • 174.dat, 4081.dat, 4081a.dat, 4081b.dat as 4081
  • 4085a.dat, 60897.dat as 60897
  • 161.dat, 4085.dat, 4085b.dat, 4085c.dat as 4085
  • 60470.dat, 60470a.dat, 60470b.dat as 60470
  • 134.dat, 3794.dat, 3794a.dat, 3794b.dat as 3794
  • 3839.dat, 3839a.dat, 3839b.dat, 3945.dat as 3839
  • 3475.dat, 3475b.dat as 3475
  • 3475a.dat, 98302.dat as 98302
  • 3183.dat, 3183a.dat as 3183
  • 4032.dat, 4032a.dat, 4032b.dat as 4032
  • 2476.dat, 2476a.dat, 2476b.dat as 2476
  • 4151.dat, 4151a.dat, 4151b.dat as 4151
  • 4617.dat, 4617b.dat as 4617
  • 4218a.dat, 4218b.dat, 4219.dat as 4218
  • 4219a.dat, 4219b.dat, 4218.dat as 4219
  • 3747.dat, 3747a.dat, 3747b.dat as 3747
  • 48.dat, 3049.dat, 3049a.dat, 3049b.dat, 3049c.dat as 3049
  • 238.dat, 3048.dat, 3048a.dat, 3048b.dat as 3048
  • 3040.dat, 3040a.dat, 3040b.dat as 3040
  • 3044.dat, 3044a.dat, 3044b.dat as 3044
  • 100.dat, 3665.dat, 3665a.dat, 3665b.dat as 3665
  • 3678.dat, 3678a.dat, 3678b.dat as 3678
  • 275.dat, 4460.dat, 4460a.dat, 4460b.dat as 4460
  • 99.dat, 3684.dat, 3684a.dat as 30499
  • 252.dat, 4599.dat, 4599a.dat, 4599b.dat as 4599
  • 6538.dat, 6538a.dat, 6538b.dat as 6538
  • 33299.dat, 33299a.dat, 33299b.dat as 33299
  • 32064.dat, 32064a.dat, 32064b.dat as 32064
  • 4265c.dat, 32123.dat, 32123a.dat, 32123b.dat as 32123
  • 3713.dat, 6590.dat as 6590
  • 3650.dat, 3650a.dat, 3650b.dat, 3650c.dat as 3650
  • 3648.dat, 3648a.dat, 3648b.dat as 3648
  • 3709.dat, 3709b.dat as 3709
  • 4697a.dat, 4697b.dat as 4697
  • 4185.dat, 4185a.dat, 4185b.dat as 4185
  • 2850.dat, 2850a.dat, 2850b.dat as 2850
  • 3070.dat, 3070a.dat, 3070b.dat as 3070
  • 321.dat, 2412.dat, 2412a.dat, 2412b.dat as 2412
  • 3069.dat, 3069a.dat, 3069b.dat as 3069
  • 3068.dat, 3068a.dat, 3068b.dat as 3068
  • 30350.dat, 30350a.dat, 30350b.dat, 30350c.dat as 30350
  • 6881a.dat, 6881b.dat as 6881
  • 4093.dat, 4093a.dat, 4093b.dat, 4093c.dat as 4093
  • 3228.dat, 3228a.dat, 3228b.dat as 3228
  • 4489.dat, 4489a.dat, 4489b.dat as 4489
  • 2515a.dat, 2515b.dat as 2515
  • 30027.dat, 30027a.dat, 30027b.dat, 30027c.dat, 30027d.dat as 30027
  • 6580.dat, 6580a.dat, 6580b.dat as 6580
  • 73594.dat, 3081cc01.dat as 73594
  • 2493.dat, 2493a.dat, 2493b.dat as 2493
  • 60800a.dat, 60800b.dat as 60800
  • 810.dat, 6238.dat, 6238a.dat, 6238b.dat as 6238
  • 2418.dat, 2418a.dat, 2418b.dat as 2418
  • 6005.dat, 92903.dat as 92903
  • 2339.dat, 14395.dat as 14395
  • 3867.dat, 6098.dat as 6098
  • 30144.dat, 97492.dat as 97492
  • 2456.dat, 44237.dat as 44137
  • 3007.dat, 93888.dat as 93888
  • 48245.dat, 70973.dat as 70973
  • 48310.dat, 47543.dat as 47543
  • 6259.dat, 20430.dat as 20430
  • 86210.dat, 60603.dat as 60603
  • 2446.dat, 30124.dat as 30124
  • 55707d.dat, 56619.dat as 56619
  • 30284.dat, 11187.dat as 11187
  • 30117.dat, 30320.dat as 30320
  • 3731.dat, 3729.dat as 3729
  • 42284.dat, 30293.dat as 30293
  • 42291.dat, 30294.dat as 30294
  • 42023.dat, 41763.dat as 41763
  • 6168a.dat, 75347.dat as 75247
  • 3749.dat, 6562.dat as 6562
  • 2825.dat, 32006.dat as 32006
  • 2861c01.dat, 75542.dat as 75542
  • 2859c01.dat, 75541.dat as 75541
  • 51011.dat, 42611.dat as 42611
  • 88492.dat, 64573.dat as 64573 (subpart of 64022)
  • 88493.dat, 64572.dat as 64572 (subpart of 64022)

md5sum: 8caa4b21457157749a6498655d0e2b02

Notes:

  • I think I got all the main variants but if you know of a variant that should be importable but isn’t, feel free to ask for it.
  • It could be possible to add all the patterned (and formed) variants as importable.  I won’t do it because it would make too many entries and the colours and patterns would be lost anyway.  (Well, I did it for the Hulk but the unpatterned part doesn’t exist and there are only two coloured parts in LDraw.)

 

Share this post


Link to post
Share on other sites

Nice ! The 2 inverted slopes part i mentionned work fine now. Just one thing, do you think it's possible the round brick (2x2) ref 6143 in LDD could be compatible with bricklink/stud.io , peeron because in stud.io the brick ref. is 3941. I don't know why they don't have the same ref as Lego use. Anyway you have already done a great job !

Share this post


Link to post
Share on other sites

Oops, I missed this one.  I’ll have to use a fuzzy comparison to find other similar cases (when IDs are totally different and descriptions don’t cross-ref).

As for the difference, 3941 is the old type, + axlehole and without underside supports.  6143 is the new type, modern X axlehole, underside supports.  There’s also 6116 which is used for transparent parts only.  And if you look closely, you’ll find other variants which don’t have a separate number (different underside support, details on the axlehole…).

BrickLink decided not to care about the differences and kept the old number.  LEGO buried 3941 in the basement, with other old IDs/moulds.

Anyway, I’ll add 3941 for import in the next version, but I’ll keep 6143 for export (same ID, newest part).

Share this post


Link to post
Share on other sites

Update 2018-03-09

A few minor errors and typos corrected.

More than 400 aliases and variants added for import.  Even very old LDraw files should be importable now :classic:

Caveat: They were found by their names, I only checked their overall shape :hmpf_bad:  As they mostly are pure aliases or straightforward (they follow rules), their positions and orientations shouldn’t differ from the main parts but it could happen (2714.dat is an example), so they could be badly imported.  Don’t hesitate to signal such cases.

md5sum: 143439981813cf18d8257830f3282345

 

Share this post


Link to post
Share on other sites

Update 2018-03-12

Added:

  • 99253 / 99253.dat  Minifig Lasso

Made importable: 4.dat, 5.dat, 148.dat, 174.dat

Corrected:

  • 32324 / 32324.dat  Technic Brick  4 x  4 with Open Center  2 x  2

md5sum: 8aca9c9ba75fb66ea31aa809df1989fc

Share this post


Link to post
Share on other sites

Update 2018-03-22

Added:

  • 16968 / 16968.dat  Brick  1 x  4 with Inside Clips
  • 63586 / 61190d.dat  Minifig Helmet Rangefinder for SW Clone Trooper Helmet

md5sum: 1d33fef76450f2ac35d21da1f34327f3

Share this post


Link to post
Share on other sites

Update 2018-04-11

Added:

  • 98127 (subpart of 99415) / 98127.dat  Minifig Torso Short with Ridged Extended Back

Renamed:

  • 30527 / 30527c01.dat  Hose Flexible 12L with Black Ends
  • 92338 / 92338-f1.dat  Minifig Chain  6L in Straight Form

Importable:

  • 28653.dat  =Plate  1 x  2
  • 28978.dat  =Technic Link  4 x  6 Bent 53.13
  • 29219.dat  =Technic Pin Joiner Round with Slot
  • 35334.dat  =Minifig Helmet Visor
  • 35338.dat  =Slope Brick 31  1 x  1 x  0.667
  • 51723.dat  =Minifig Handlebars
  • 59141.dat  =Technic Beam  2 Liftarm with Angled Ball Joint

md5sum: f1afaa5954692442b5409a4e6c8bdf3b

Share this post


Link to post
Share on other sites

Update 2018-06-08

Added:

  • 11103 / 11103.dat  Minifig Sword Double Blade with Bar Holder
  • 21301 / 21301.dat  Boat  5 x 14 x  2 without Front Side Bar Holders
  • 24196 / 24196.dat  Animal Dragon Head Elves
  • 24199 / 24199.dat  Animal Dragon Head Elves Lower Jaw
  • 30202 / 30202.dat  Minifig Helmet Underwater Stingray

Renamed:

  • 3614 / 3614a.dat  Plate  1 x  1 Round with Towball

Importable:

  • 3614.dat  ~Plate  1 x  1 Round with Towball (Obsolete)

md5sum: 9f60e4a9dec7012297c1b68bdb8c8d9e

Share this post


Link to post
Share on other sites

Update 2018-06-26

Added:

  • 98606 / 98606.dat  Dish 9 x 9 with Pin Hole

Corrected (LDraw modified in Unofficial):

  • 11103 / 11103.dat  Minifig Sword Double Blade with Bar Holder

Rematched:

  • 74880 / 74880.dat  Electric Light & Sound Brick  1 x  2 with Single Side Light
    (was 6035.dat, now made importable)

md5sum: bda1a5e315d48f935af4c23d1f47072e

Share this post


Link to post
Share on other sites

Update 2018-06-27

Added:

  • 28220 / 28220.dat  Constraction Shell  0.6 x  2 x  3.5 Flat with  2 Bars

Corrected:

  • 98606 / 98606.dat  Dish 9 x 9 Inverted with Pin Hole
    (has been inverted)

md5sum: aa6654c6830c17990e676390343af6e6

Share this post


Link to post
Share on other sites

Update 2018-08-15

Added:

  • 10172 / 10172.dat  Minifig Trophy Cup  2.4L
  • 19859 / 19859.dat  Minifig Hips Ghost
  • 88295 / 88295.dat  Minifig Armour Shoulder Pads with Porcupine Spikes
  • 93221 / 93221.dat  Minifig Ghettoblaster  1 x  3 x  1

md5sum: c6db920f0f5fbda30e6eebdc2e65ab38

Share this post


Link to post
Share on other sites

It’s true Stud.io has an ldraw.xml file too.

If you look into that file, you’ll see that lego’s 3070 is transformed in ldraw’s 30039 which is an alternate ID for 3070b, Tile 1 x 1 with Groove.

So, if that ldraw.xml file was responsible for the conversion, the tiles would have grooves.  As you’re saying they do not, it is not :sad:

 

Besides, it appears you can’t directly use the ldraw.xml file from LDD (at least not mine, I’m not sure I tried the original one).  It blocks the conversion.  Even removing comments and sorting the tags as they do and adding an “isConfirmed” attribute doesn’t help.  That means the differences are not trivial, or other files are involved, or both.

I may try to look into it a bit more but I’m not sure it’s worth it:  Filing a bug with BL might be quicker and more reliable in the long term.

(And, of course, another problem is that tweaking the files and especially talking about it afterwards isn’t exactly allowed.)

Edited by SylvainLS

Share this post


Link to post
Share on other sites
8 hours ago, SylvainLS said:

It’s true Stud.io has an ldraw.xml file too.

If you look into that file, you’ll see that lego’s 3070 is transformed in ldraw’s 30039 which is an alternate ID for 3070b, Tile 1 x 1 with Groove.

So, if that ldraw.xml file was responsible for the conversion, the tiles would have grooves.  As you’re saying they do not, it is not :sad:

 

Besides, it appears you can’t directly use the ldraw.xml file from LDD (at least not mine, I’m not sure I tried the original one).  It blocks the conversion.  Even removing comments and sorting the tags as they do and adding an “isConfirmed” attribute doesn’t help.  That means the differences are not trivial, or other files are involved, or both.

I may try to look into it a bit more but I’m not sure it’s worth it:  Filing a bug with BL might be quicker and more reliable in the long term.

(And, of course, another problem is that tweaking the files and especially talking about it afterwards isn’t exactly allowed.)

Ahh ok. I tried that very first step of swapping the part numbers on mine and it didnt work. Thanks for your work on this and your time to respond. 

Share this post


Link to post
Share on other sites

Update 2018-08-25

Added:

  • 24068 / 24068.dat  Minifig Hips Skirt Wide with Side Hoops
  • 24077 / 24077.dat  Minifig Crutch
  • 51345 / 51345.dat  Minifig Hips Mermaid Tail Standing
  • 98376 / 98376.dat  Minifig Hips Genie

Importable:

  • 35779.dat  =Minifig Hips Mermaid Tail Standing

Funny bug in LDD: When you put torsos on top of 51345 and 24068, they are not correctly placed, not flush to the torsos. If you place the torsos first and then connect a 51345 or 24068, the hips connect and place flush to the torsos.

md5sum: f59e10b9b87fd2d89eb56b3022d528bc

Share this post


Link to post
Share on other sites

It seems part 24299 and 24307 don't export at all from LDD. Is this a problem with my setup, or are they missing from the ldraw.xml?

Share this post


Link to post
Share on other sites

:look: They have been there for a long time and they do export very well here.

Could you check they really are not in the resulting file?

Share this post


Link to post
Share on other sites
10 hours ago, SylvainLS said:

:look: They have been there for a long time and they do export very well here.

Could you check they really are not in the resulting file?

They are certainly not in the exported file. But I guess something is just broken with my LDD installation. When I wanted to update the ldraw.xml file, there was none to begin with (at least not at the path specified in the top post; the whole path didn't even exists, let alone the ldraw.xml).

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.