Jump to content


Export from LDD to .ldr --> Missing Parts


  • Please log in to reply
8 replies to this topic

#1 MarkusOSX

MarkusOSX

    Posts: 158
    Joined: 02-September 12
    Member: 31068
    Country: Germany

Posted 01 November 2012 - 10:58 PM

Hi there,

i´ve got a question about the export function from LDD to ldr format.

I export my technic model (aprox.1900 parts) from LDD to ldr file and open it for example with bricksmith. But there are so many parts missing then.

Model in LDD
Posted Image
Model in Bricksmith
Posted Image

I believe all of the parts are in the LDraw library but it seems that they have maybe another number there.

Is there an easy way to fix this problem ?

Greetz

Markus

Edited by MarkusOSX, 01 November 2012 - 11:08 PM.


#2 hrontos

hrontos

    Posts: 603
    Joined: 05-August 11
    Member: 19500
    Country: Slovakia

Posted 02 November 2012 - 01:07 AM

I am sorry Markus, I think, there is no simple solution.

Actually, the problem is more complex than it seems. It is not engough to just map the part numbers. LDD parts have different origin point (central point) and different initial orientation than LDRAW parts. This means, that for each part you have find a transformation that properly recalculated LDD position of the part to LDRAW position. And this is timeconsuming and was done only for some parts.

#3 MarkusOSX

MarkusOSX

    Posts: 158
    Joined: 02-September 12
    Member: 31068
    Country: Germany

Posted 02 November 2012 - 07:13 AM

Thx for the Info hrontos.

So i need to replace the missing parts manually if I want my model as LDraw file......damn

Greetz

Markus

Edited by MarkusOSX, 02 November 2012 - 07:14 AM.


#4 Palathadric

Palathadric

  • Makes other members' internet speeds seem ridiculously fast


    Posts: 5147
    Joined: 30-July 11
    Member: 19379
    Country: Great Unknown

Posted 02 November 2012 - 08:47 AM

View PostMarkusOSX, on 02 November 2012 - 07:13 AM, said:

So i need to replace the missing parts manually if I want my model as LDraw file......damn
I know, it's annoying...that's why it's better to start out with LDraw in the first place. :wink:
:tongue:
They that love God will never meet for the last time.
This life isn't the end. We will meet again.
Posted Image     Posted Image     Posted Image
Brickshelf Account
See my work in the Official Lego sets made in LDraw topic

#5 hrontos

hrontos

    Posts: 603
    Joined: 05-August 11
    Member: 19500
    Country: Slovakia

Posted 02 November 2012 - 08:58 AM

I wonder, if there is any interest to add the missing transformations? It looks like one possible solution to do it is to build the same two part model in LDD and in LDRAW. One known and one new part. By putting the new part in the same position relative to known part it is possible to automatically derive transformation needed for the new part. Without too many trial/error attempts for each part.

Edited by hrontos, 02 November 2012 - 08:59 AM.


#6 Philo

Philo

    Posts: 323
    Joined: 07-April 10
    Member: 10185
    Country: France

Posted 02 November 2012 - 10:37 AM

Markus, have you tried export using latest LDraw.xml file available here.
@Hrontos: Yes, there's an interest for that! I even considered writing a tool to build an ldraw.xml entry directly from two ldraw/ldd files using key parts exactly as you describe. But I never acted...

#7 hrontos

hrontos

    Posts: 603
    Joined: 05-August 11
    Member: 19500
    Country: Slovakia

Posted 02 November 2012 - 11:28 AM

@Philo: that's exactly what I meant. I will write a small program that will take ldr and lxf with the same model having only two parts. One part has to be known in LDRAW..xml for the other the program will output new lines that should be added to LDRAW.xml. Rest will be task for the community, since I do not have the part to part code mapping and doing it from scratch will take me ages.

#8 Philo

Philo

    Posts: 323
    Joined: 07-April 10
    Member: 10185
    Country: France

Posted 02 November 2012 - 12:14 PM

Great! Tell me if you need some help (especially on LDraw side...). I think the key common part should have some assymetry to make sure that there is no ambiguity in orientation?

#9 bublible

bublible

    Posts: 183
    Joined: 23-May 13
    Member: 55103
    Country: Slovakia

Posted 04 May 2014 - 10:08 PM

I did try updated ldraw.xml v4.40 but had no success with exporting LDD part 64230 aka "Hose, flexible 8.5L"knowing it exists in Ldraw as 73590a.dat: LDD it simply does not write the part into the exported.ldr file...so I edited the ldraw.xml myself adding the part like this:

<Brick ldraw="73590a.dat" lego="64230">
//nevermind transformation tag, I just wanted to see if it shows up in MLCad...

...but to my surprise it did not help - LDD still did not write the part into exported .ldr file at all...further observation of the problem showed that it has something to do with the number representing the brick in LDD, like it is not 64230 or something like that cos when I randomly write it as some other part (manualy) it simply works, just not with 64230 - anyone knows what is going on here? :(
DADAist DADA ist DADA - ergo LEGO and OGEL are LEGOgel :-)   -=|=-   Feel free to PM me if I do not reply here...
MY BRICKSHELF
Posted ImagePosted Image




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users