Importing LDraw file gives shows error without error text (and the import fails)
legolijntje started this discussion in Bug Reporting

I want to import an LDraw file so I can make a render of it. But... After selecting my LDraw file, a light gray pop-up pops up with a dark grey Bell icon and the text 'Alert!'. Then empty space and a button 'OK'.

It seems there's some error text missing. My model isn't imported, but I have absolutely no idea why.

Thanks!

24 replies · Page 1 of 2

Thanks for letting us know! 😃

Are you sure that the LDraw file has any of the correct extensions? The following file extensions are allowed: .ldr, .io and .mpd. It looks like other file extensions give the same behavior as you mentioned.

The feature is stilll being improved from time to time and we're still entering data transformations to ensure that the bricks are in the right spot. If you encounter any misplaced bricks after your import, don't hesitate to contact me to correct this.

Yes, I'm am definitely sure it's an .mpd LDraw file.
And I can't report any misplaced bricks because the whole import is not working 😉 And I have no idea why...

Well I was hoping that it would be the extension and I was already thinking ahead. 😉 I have tested a random mpd file and it imported with no problems.
Can you explain what program you have used to generate the mpd or can you upload the mpd file somewhere? I'll be happy to look further into it.

Avatar of Scrubs
Administrator

Hello,
If I can get the file and therefore reproduce the issue, I will be able to debug the importer. It is probably not much.
Is the alert box empty if you change the language of the workshop? (sometimes, it can be because a translation is missing that no text is displayed).

@Sim The LDraw file is from LDCad. Now that I think of it, it does include LDCad generated flexible parts: electrical wires. Though, (in theory) they shouldn't generate an error. Though it does contain LDCad specific metadata, it also contains a fallback in the form of a plain LDraw part. Any LDraw software I've ever worked with has no issues whatsoever with it.

And, after writing the above text I made a very quick test-file with only a single part: an LDCad generated PF motor. I imported the part into Mecabricks and although it didn't import any part (which, to make absolutely clear, is expected behavior, nothing wrong there) it didn't show any error either. So I doubt the LDCad parts are the problem...

@Scrubs The file is for a 'client', for lack of a better word. I'm making building instructions and he's gonna sell them. Not sure if I'm allowed to share the file, though it would definitely be cool to (try to) import it and see what your renderer can make of it. If I can trust you that you won't share the file; is there any way to send it to you personally?

Also about changing the language: my workshop is already on English and I doubt there are any missing translations in English right?

Avatar of Scrubs
Administrator

Hello,
You can use the email address from the "contact Us" link in the footer of this page. Regarding your file I would obviously only use it for debugging and I would delete it right after.

Avatar of Scrubs
Administrator

So, the issue is that there is currently a 5MB limit on the file (yours is ~5.5M😎. I will increase it when I am back home tonight and make sure the error message is displayed. I removed some lines at the end of the file (I guess the one for flex stuff) to go below the threshold and it worked.

facepalm Yup, it's true that the LDCad generated parts significantly increase the filesize (especially if you opt for HQ instead of LQ flexparts). But, I constantly forget about that as it's usually not a problem. The only other time it was a problem was when I tried importing it into Rebrickable for a parts list; they also have a filesize limit.

I understand the file size limit, as a 10MB LDraw file would normally contain an enormous amount of parts, but files with LDCad flexparts usually don't (I've had files with a ton of flexparts nearing 20MB, yet containted only about 2000-3000 parts haha). Ah well...

@Sim: the console reports that the imported discard the following parts: 23801,32494,60483,32123b,61904,61927,62519,3648b,6542b,92693c,76244,59426,2850b,58119,62271c,62274c,21755

I think that means you've gotta add import mappings for those?
Furthermore, from a (very) quick look it seems that part 3705 is (surprisingly, as it is such a basic part) imported wrong. It looks like they're shifted ~1 stud from where they should be.

Also, part 32013 is also wrong. It's rotated 180 degrees.

EDIT: part 32039 is wrong too. Also rotated 180 degrees.

EDIT2: parts 87761 and 64781 are also wrong. They are shifted 0.5 liftarm.

EDIT3: part 62821 is also misplaced.

I know. Basic parts can import wrong. 😉 I'm not sure how many Mecabricks users use the importer. Even less does report errors, so that's why there may be corrections required.

General note: I'm not entering any assemblies right now.

Progress so far:
23801: Not available on Mecabricks
32494: Not available on Mecabricks
60483: Updated
32123b: Updated
61904: Not available on Mecabricks
62519: The correct version of this bricks is not available and for now it will import 3326
3648b: Updated
6542b: Updated
59426: Updated
2850b: Updated
62271c: I'm not able to find this brick in ldraw
62274c: I'm not able to find this brick in ldraw
21755: Not available on Mecabricks

I update these list as I'm working through it.
All reported misplaced parts are corrected.

I often use the LDD importer, and sometimes only 1 part is rotated wrongly by 180°, while the same part elsewhere in the model is positioned correctly. Do ypu know how that's possible?

Do you know which part, Stephan? It might be incorrect for one axis.

It was 4213. The right side of the vehicle was OK (5561 Big Foot 4 x 4), but the left side was rotated 180°.

Hi Sim, I imported another model and the console logs it discarded the following parts: [48729b,12825,30554,60475b,32123a,8756😎
Furthermore, parts 61184 and 53989 are misplaced.

If you could fix those errors that would be appreciated, I'd love to give the render feature a good try with this model 😃

Stephan, I've tried to place 4213 in different positions, but found no mistakes on this part. It might have been corrected already? If you can reproduce it, I'll be happy to look into this another time.

Legolijntje, the second list should be fine now. Parts 30554 and 87568 are not available on Mecabricks and cannot be imported right now. For 32123a, I went ahead and added 32123b although there's a difference between the 2 parts. Looking forward to the rendering! 😃

Hehe, part 87568 is a pretty crucial part for the appearance of the model 😛
Part 30554a is not available in Mecabricks, but at least 30554b is, also known as 30554v2 in Mecabricks.

EDIT: I changed 30554 in my model with 30554b so I think everything should be fine for that part 😃

Part 32068 is a half stud off from what it's supposed to be when imported from LDD.

It should import correctly right now, Stephan. ^^ 😃

Nice!

2815 is rotated 90 degrees when imported from LDD 😉

@Legolijntje, the first list should be fine now. I've managed to complete your list and fix what I can at this moment. 😉 I'm going through the technic parts soon to complete the conversion data.

@Stephan, Fixed.

Previous
Next
Advertising
4 participants
Avatar of Sim
Avatar of Scrubs
Avatar of Stephan3321

LEGO, the LEGO logo, the Minifigure, and the Brick and Knob configurations are trademarks of the LEGO Group of Companies. ©2024 The LEGO Group.

Mecabricks, the Mecabricks logo and all content not covered by The LEGO Group's copyright is, unless otherwise stated, ©2011-2024 Mecabricks.