To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cad.lddOpen lugnet.cad.ldd in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / LDD / 197
     
   
Subject: 
Re: Conversion file for ldraw to ldd
Newsgroups: 
lugnet.cad.ldd
Date: 
Tue, 24 Jun 2008 18:34:26 GMT
Viewed: 
29657 times
  

In lugnet.cad.ldd, Kevin L. Clague wrote:
  When I try to use the Export menu, it always saves the model as lxf.  I get no
choice to export to LDraw file format.

  Has anyone figured out how to do this on the Mac?

I haven't ever tried LDD on the Mac, but I do have some Mac info that might
help.  First of all, unlike the system Windows Open/Save dialogs, the system Mac
Open/Save Panels don't support file type selection, so doing this at all
requires custom code unless an app is NSDocument-based.  (If your app is based
on NSDocument, NSDocument handles things and custom code isn't needed.)  Based
on what you have said, it sounds like LDD doesn't have the custom code needed to
support multiple file types.

Having said that, you might check if the "Hide extension" (or maybe it's "Show
extension") check box is available.  If it is, set it so that extensions are
visible.  Also, make sure you've clicked the arrow next to the filename so that
you have the full Save interface, instead of the abbreviated one.  If you are
allowed to show the extension, change it to .ldr manually, and see if that
works.

--Travis

   
         
     
Subject: 
Re: Conversion file for ldraw to ldd
Newsgroups: 
lugnet.cad.ldd
Date: 
Tue, 24 Jun 2008 18:45:52 GMT
Viewed: 
30472 times
  

In lugnet.cad.ldd, Travis Cobbs wrote:
In lugnet.cad.ldd, Kevin L. Clague wrote:
  When I try to use the Export menu, it always saves the model as lxf.  I get no
choice to export to LDraw file format.

  Has anyone figured out how to do this on the Mac?

I haven't ever tried LDD on the Mac, but I do have some Mac info that might
help.  First of all, unlike the system Windows Open/Save dialogs, the system Mac
Open/Save Panels don't support file type selection, so doing this at all
requires custom code unless an app is NSDocument-based.  (If your app is based
on NSDocument, NSDocument handles things and custom code isn't needed.)  Based
on what you have said, it sounds like LDD doesn't have the custom code needed to
support multiple file types.

Having said that, you might check if the "Hide extension" (or maybe it's "Show
extension") check box is available.  If it is, set it so that extensions are
visible.  Also, make sure you've clicked the arrow next to the filename so that
you have the full Save interface, instead of the abbreviated one.  If you are
allowed to show the extension, change it to .ldr manually, and see if that
works.

--Travis

Hi Travis,

  Thanks for the thought.  I had made it this far.  I tried to save my test file
to my home directory and got this message:

Warning
Unable to export model to "/Users/kclague/test.ldr"

Kevin

    
          
     
Subject: 
Re: Conversion file for ldraw to ldd
Newsgroups: 
lugnet.cad.ldd
Date: 
Tue, 24 Jun 2008 20:08:58 GMT
Viewed: 
31336 times
  

In lugnet.cad.ldd, Kevin L. Clague wrote:
In lugnet.cad.ldd, Travis Cobbs wrote:
In lugnet.cad.ldd, Kevin L. Clague wrote:
  When I try to use the Export menu, it always saves the model as lxf.  I get no
choice to export to LDraw file format.

  Has anyone figured out how to do this on the Mac?

I haven't ever tried LDD on the Mac, but I do have some Mac info that might
help.  First of all, unlike the system Windows Open/Save dialogs, the system Mac
Open/Save Panels don't support file type selection, so doing this at all
requires custom code unless an app is NSDocument-based.  (If your app is based
on NSDocument, NSDocument handles things and custom code isn't needed.)  Based
on what you have said, it sounds like LDD doesn't have the custom code needed to
support multiple file types.

Having said that, you might check if the "Hide extension" (or maybe it's "Show
extension") check box is available.  If it is, set it so that extensions are
visible.  Also, make sure you've clicked the arrow next to the filename so that
you have the full Save interface, instead of the abbreviated one.  If you are
allowed to show the extension, change it to .ldr manually, and see if that
works.

--Travis

Hi Travis,

  Thanks for the thought.  I had made it this far.  I tried to save my test file
to my home directory and got this message:

Warning
Unable to export model to "/Users/kclague/test.ldr"

Kevin

I have no clue for MAC’s, but when you copied the ldraw.xml to the location, did
you see the original ldraw.xml from the LEGO LDD install? If not search for it
and see where it is.

As far as the error you get while exporting, could be a bad XML file. In windows
I can double click the ldraw.xml file and safari opens it up. If there is an
error in the ldraw.xml file then Safari gives me some error and a line number of
the error. You can try this just to make sure it is good.

You mentioned you download Tim’s version of the ldraw.xml. This was the original
version myself and many others have used to come up with a more up to date
version. You can find that at this location and on ldraw.org site.

http://www.brickshelf.com/gallery/mikeslego/LDD/ldraw.xml

Mike Gallagher
GallaghersArt.com

    
          
      
Subject: 
Re: Conversion file for ldraw to ldd
Newsgroups: 
lugnet.cad.ldd
Date: 
Tue, 24 Jun 2008 20:22:26 GMT
Viewed: 
33475 times
  

In lugnet.cad.ldd, Mike Gallagher wrote:
In lugnet.cad.ldd, Kevin L. Clague wrote:
In lugnet.cad.ldd, Travis Cobbs wrote:
In lugnet.cad.ldd, Kevin L. Clague wrote:
  When I try to use the Export menu, it always saves the model as lxf.  I get no
choice to export to LDraw file format.

  Has anyone figured out how to do this on the Mac?

I haven't ever tried LDD on the Mac, but I do have some Mac info that might
help.  First of all, unlike the system Windows Open/Save dialogs, the system Mac
Open/Save Panels don't support file type selection, so doing this at all
requires custom code unless an app is NSDocument-based.  (If your app is based
on NSDocument, NSDocument handles things and custom code isn't needed.)  Based
on what you have said, it sounds like LDD doesn't have the custom code needed to
support multiple file types.

Having said that, you might check if the "Hide extension" (or maybe it's "Show
extension") check box is available.  If it is, set it so that extensions are
visible.  Also, make sure you've clicked the arrow next to the filename so that
you have the full Save interface, instead of the abbreviated one.  If you are
allowed to show the extension, change it to .ldr manually, and see if that
works.

--Travis

Hi Travis,

  Thanks for the thought.  I had made it this far.  I tried to save my test file
to my home directory and got this message:

Warning
Unable to export model to "/Users/kclague/test.ldr"

Kevin

I have no clue for MAC’s, but when you copied the ldraw.xml to the location, did
you see the original ldraw.xml from the LEGO LDD install? If not search for it
and see where it is.

As far as the error you get while exporting, could be a bad XML file. In windows
I can double click the ldraw.xml file and safari opens it up. If there is an
error in the ldraw.xml file then Safari gives me some error and a line number of
the error. You can try this just to make sure it is good.

You mentioned you download Tim’s version of the ldraw.xml. This was the original
version myself and many others have used to come up with a more up to date
version. You can find that at this location and on ldraw.org site.

http://www.brickshelf.com/gallery/mikeslego/LDD/ldraw.xml

Mike Gallagher
GallaghersArt.com

I found the original ldraw.xml file here:

/Applications/LEGO Digital Designer.app/Contents/Resources/Assets

I'm trying your newest now. It worked!

Thanks,
Kevin

     
           
      
Subject: 
Re: Conversion file for ldraw to ldd
Newsgroups: 
lugnet.cad.ldd
Date: 
Mon, 30 Jun 2008 18:05:18 GMT
Viewed: 
32881 times
  

Here is the current Ldraw.xml.

To install go to \LEGO Company\LEGO Digital Designer\Assets Directory and look
for the ldraw.xml file. Back the file up or rename it and replace it with the
new file. Make sure it has the same format as you see it on the download page.
For some reasons it may add extra data that will make it not work.

While in LDD go to export, choose the .ldr file type, remove the .lxf after your
file name, and save. To import just import from .ldr.

Some of the pieces will be killed by bad translations and rotation’s still but
that list is getting to be a very small list.

This version has many Technic, Minifig, and other parts added and working. The
Beta version has NXT and other parts that are not work out yet. But will import
and export in same locations, just do not correct the parts locations between
imports and exports. 1 version will work, the other will have parts moved and
rotated in whacky was.

Only working parts.

http://www.brickshelf.com/gallery/mikeslego/LDD/ldraw.xml

Beta version (will have incorrect transformation’s, in progress)

http://www.brickshelf.com/gallery/mikeslego/LDD/LdrawXML-Beta/ldraw.xml

I would like to thank all those who have contributed to this. And I hope I did
not leave anyone out but,

LDraw
LDD
Jason Railton
Timothy Gould
Willy Tschager
David Eaton
Michael Heidemann
Orion Pobursky
Magnus Forsberg

I will be keeping these files up to date as we make fixes. So check back when
you need, we may have you part fixed. Once a good size has been updated I will
post again. Rather not post for every part fixed.

Enjoy!

Mike Gallagher

GallaghersArt.com

     
           
      
Subject: 
Re: Conversion file for ldraw to ldd
Newsgroups: 
lugnet.cad.ldd
Date: 
Tue, 1 Jul 2008 00:18:51 GMT
Viewed: 
33889 times
  

"mike Gallagher" <gallaghersemail@yahoo.com> wrote in message
news:K3AFKu.1IH@lugnet.com...
Here is the current Ldraw.xml.

To install go to \LEGO Company\LEGO Digital Designer\Assets Directory and
look
for the ldraw.xml file. Back the file up or rename it and replace it with
the
new file. Make sure it has the same format as you see it on the download
page.
For some reasons it may add extra data that will make it not work.

Does this file include the 973 parts/colors included in the latest Factory
palette?  At last minifigs finally have weapons to wield in the Factory
palette!

I will be keeping these files up to date as we make fixes. So check back
when
you need, we may have you part fixed. Once a good size has been updated I
will
post again. Rather not post for every part fixed.

When I open that link, it pops up as an HTML page with a lot of bolded
markup text representing commands.  Is this supposed to happen, or do you
need to do something like encode it into an archive format?  It does say
"ldraw.xml" at the top of the window, but I like to be careful before
messing with the unknown.

While on the subject of the file itself, you appear to have commented out a
duplicate entry of 30377.dat - it's still in the file though, just the
transformation line appears first as a comment, then as the proper
transformation line itself.  There are a few other entries in the file like
that fortunately there's very few.  Like below, if the cut/paste was
successful:

<!--  <Transformation ldraw="30377.dat" tx="-1.6" ty="0" tz="0"
ax="-0.512724" ay="0.688642" az="-0.512724" angle="4.34772" />    -->

<Transformation ldraw="30377.dat" tx="0" ty="-1.51" tz="0.51" ax="-0.5"
ay="-0.70710678118654752440084436210485" az="-0.5" angle="4.34772" />

Also, a question:  Does the "only working parts" file transform at all the
part LDD knows as "SPIRAL TUBE W.FLANGE"


Cheers ...

Geoffrey Hyde

     
           
      
Subject: 
Re: Conversion file for ldraw to ldd
Newsgroups: 
lugnet.cad.ldd
Date: 
Tue, 1 Jul 2008 15:08:45 GMT
Viewed: 
32998 times
  

Does this file include the 973 parts/colors included in the latest Factory
palette?  At last minifigs finally have weapons to wield in the Factory
palette!

My beta has most but some are still not working in that file. The goal is to
have all the parts that are in LDD. But Minifig items are some if the hardest to
fix.


When I open that link, it pops up as an HTML page with a lot of bolded
markup text representing commands.  Is this supposed to happen, or do you
need to do something like encode it into an archive format?  It does say
"ldraw.xml" at the top of the window, but I like to be careful before
messing with the unknown.

Depends on how you download it. You can right click on the file and save as,
View source and save as, but once your file is saved it should read "ldraw.xml"
as the file name / type, and look the same way as you see while viewing file in
web browser from my site. If you double click the file after you download it
should look identical as viewed on my site. And if you get an error while
exporting then you know something is wrong. It will work or not.

While on the subject of the file itself, you appear to have commented out a
duplicate entry of 30377.dat - it's still in the file though, just the
transformation line appears first as a comment, then as the proper
transformation line itself.  There are a few other entries in the file like
that fortunately there's very few.  Like below, if the cut/paste was
successful:

<!--  <Transformation ldraw="30377.dat" tx="-1.6" ty="0" tz="0"
ax="-0.512724" ay="0.688642" az="-0.512724" angle="4.34772" />    -->

<Transformation ldraw="30377.dat" tx="0" ty="-1.51" tz="0.51" ax="-0.5"
ay="-0.70710678118654752440084436210485" az="-0.5" angle="4.34772" />

This is a work in progress with others along with my self working on it. Some
parts seem to change with the versions of LDD updates, or have some real crazy
rotation matrixes like the 30377 part. It’s just for our notes.


Also, a question:  Does the "only working parts" file transform at all the
part LDD knows as "SPIRAL TUBE W.FLANGE"

Have not used any tubes yet, nor attempted to fix yet. But if they are in LDD we
are working on it. We start with the quickest parts to fix, and as we near the
end we are left with all the parts that may take many hours each to correct.

Mike Gallagher
GallaghersArt.com
MIKESLEGO

    
          
     
Subject: 
Re: Conversion file for ldraw to ldd
Newsgroups: 
lugnet.cad.ldd
Date: 
Tue, 24 Jun 2008 21:20:10 GMT
Viewed: 
31252 times
  

In lugnet.cad.ldd, Mike Gallagher wrote:
   version. You can find that at this location and on ldraw.org site.

http://www.brickshelf.com/gallery/mikeslego/LDD/ldraw.xml

Just as a note, brickshelf.com and ldraw.org are separate.

--Travis

    
          
     
Subject: 
Re: Conversion file for ldraw to ldd
Newsgroups: 
lugnet.cad.ldd
Date: 
Wed, 25 Jun 2008 04:36:12 GMT
Viewed: 
31691 times
  

In lugnet.cad.ldd, Travis Cobbs wrote:
   In lugnet.cad.ldd, Mike Gallagher wrote:
   version. You can find that at this location and on ldraw.org site.

http://www.brickshelf.com/gallery/mikeslego/LDD/ldraw.xml

Just as a note, brickshelf.com and ldraw.org are separate.

--Travis

I assume that’s what the and on is for ;)

But I don’t remember where we host the file... sorry but Mike’s is as or more up to date anyway.

Tim

    
          
     
Subject: 
Re: Conversion file for ldraw to ldd
Newsgroups: 
lugnet.cad.ldd
Date: 
Wed, 25 Jun 2008 04:57:25 GMT
Viewed: 
31730 times
  

In lugnet.cad.ldd, Timothy Gould wrote:
   In lugnet.cad.ldd, Travis Cobbs wrote:
   In lugnet.cad.ldd, Mike Gallagher wrote:
   version. You can find that at this location and on ldraw.org site.

http://www.brickshelf.com/gallery/mikeslego/LDD/ldraw.xml

Just as a note, brickshelf.com and ldraw.org are separate.

--Travis

I assume that’s what the and on is for ;)

But I don’t remember where we host the file... sorry but Mike’s is as or more up to date anyway.

Sorry Mike. My brain completely skipped over the “and” in your sentence.

--Travis

   
         
   
Subject: 
Re: Conversion file for ldraw to ldd
Newsgroups: 
lugnet.cad.ldd
Date: 
Wed, 25 Jun 2008 22:57:35 GMT
Viewed: 
29458 times
  

In lugnet.cad.ldd, Travis Cobbs wrote:
I haven't ever tried LDD on the Mac,

Nor have I.

  but I do have some Mac info that might
help.  First of all, unlike the system Windows Open/Save dialogs, the system Mac
Open/Save Panels don't support file type selection, so doing this at all
requires custom code unless an app is NSDocument-based.

L3Lab doesn't have a Save dialog, but in the Open dialog
there is a Pop Up Button with label "Enable",
that let's you choose from:
   All Readable Documents
   L3 LDraw file (ldr)
   L3 LDraw file (mpd)
   All Documents

If you select e.g. "L3 LDraw file (ldr)"
all files but *.ldr are grayed out.

L3Lab is Carbon, I use NavCreateGetFileDialog and
NavDialogSetFilterTypeIdentifiers.
/Lars

   
         
   
Subject: 
Re: Conversion file for ldraw to ldd
Newsgroups: 
lugnet.cad.ldd
Date: 
Thu, 26 Jun 2008 00:30:32 GMT
Viewed: 
30050 times
  

In lugnet.cad.ldd, Lars C. Hassing wrote:
In lugnet.cad.ldd, Travis Cobbs wrote:
I haven't ever tried LDD on the Mac,

Nor have I.

  but I do have some Mac info that might
help.  First of all, unlike the system Windows Open/Save dialogs, the system Mac
Open/Save Panels don't support file type selection, so doing this at all
requires custom code unless an app is NSDocument-based.

L3Lab doesn't have a Save dialog, but in the Open dialog
there is a Pop Up Button with label "Enable",
that let's you choose from:
   All Readable Documents
   L3 LDraw file (ldr)
   L3 LDraw file (mpd)
   All Documents

If you select e.g. "L3 LDraw file (ldr)"
all files but *.ldr are grayed out.

L3Lab is Carbon, I use NavCreateGetFileDialog and
NavDialogSetFilterTypeIdentifiers.
/Lars

Once I got a better ldraw.xml, the conversion process provided me with a valid
ldraw file.

The instructions associated with LXF seem to indicate that LDD knows about
sub-models, but yet it seems to in-line them when spitting out the ldr file.

I guess LDD does not support MPD.

Kevin

   
         
   
Subject: 
Re: Conversion file for ldraw to ldd
Newsgroups: 
lugnet.cad.ldd
Date: 
Thu, 26 Jun 2008 06:34:41 GMT
Viewed: 
30604 times
  

In lugnet.cad.ldd, Kevin L. Clague wrote:
In lugnet.cad.ldd, Lars C. Hassing wrote:
In lugnet.cad.ldd, Travis Cobbs wrote:
I haven't ever tried LDD on the Mac,

Nor have I.

  but I do have some Mac info that might
help.  First of all, unlike the system Windows Open/Save dialogs, the system Mac
Open/Save Panels don't support file type selection, so doing this at all
requires custom code unless an app is NSDocument-based.

L3Lab doesn't have a Save dialog, but in the Open dialog
there is a Pop Up Button with label "Enable",
that let's you choose from:
   All Readable Documents
   L3 LDraw file (ldr)
   L3 LDraw file (mpd)
   All Documents

If you select e.g. "L3 LDraw file (ldr)"
all files but *.ldr are grayed out.

L3Lab is Carbon, I use NavCreateGetFileDialog and
NavDialogSetFilterTypeIdentifiers.
/Lars

Once I got a better ldraw.xml, the conversion process provided me with a valid
ldraw file.

The instructions associated with LXF seem to indicate that LDD knows about
sub-models, but yet it seems to in-line them when spitting out the ldr file.

I guess LDD does not support MPD.

Kevin

I believe it can read them but can't write them. Earlier versions definitely
could but the newer ones may be missing that feature. And yeah the LXF file
format definitely has the concept of sub-models.

Tim

   
         
   
Subject: 
Re: Conversion file for ldraw to ldd
Newsgroups: 
lugnet.cad.ldd
Date: 
Thu, 26 Jun 2008 12:29:59 GMT
Viewed: 
31146 times
  

In lugnet.cad.ldd, Timothy Gould wrote:
In lugnet.cad.ldd, Kevin L. Clague wrote:
In lugnet.cad.ldd, Lars C. Hassing wrote:
In lugnet.cad.ldd, Travis Cobbs wrote:
I haven't ever tried LDD on the Mac,

Nor have I.

  but I do have some Mac info that might
help.  First of all, unlike the system Windows Open/Save dialogs, the system Mac
Open/Save Panels don't support file type selection, so doing this at all
requires custom code unless an app is NSDocument-based.

L3Lab doesn't have a Save dialog, but in the Open dialog
there is a Pop Up Button with label "Enable",
that let's you choose from:
   All Readable Documents
   L3 LDraw file (ldr)
   L3 LDraw file (mpd)
   All Documents

If you select e.g. "L3 LDraw file (ldr)"
all files but *.ldr are grayed out.

L3Lab is Carbon, I use NavCreateGetFileDialog and
NavDialogSetFilterTypeIdentifiers.
/Lars

Once I got a better ldraw.xml, the conversion process provided me with a valid
ldraw file.

The instructions associated with LXF seem to indicate that LDD knows about
sub-models, but yet it seems to in-line them when spitting out the ldr file.

I guess LDD does not support MPD.

Kevin

I believe it can read them but can't write them. Earlier versions definitely
could but the newer ones may be missing that feature. And yeah the LXF file
format definitely has the concept of sub-models.

Tim

Tim,
  I've been face down in LPub 4......  Has the LDraw community created its own
convertor that supports MDP format?
Thanks,
Kevin

   
         
   
Subject: 
Re: Conversion file for ldraw to ldd
Newsgroups: 
lugnet.cad.ldd
Date: 
Sat, 28 Jun 2008 03:34:14 GMT
Viewed: 
31348 times
  

In lugnet.cad.ldd, Kevin L. Clague wrote:
In lugnet.cad.ldd, Timothy Gould wrote:
In lugnet.cad.ldd, Kevin L. Clague wrote:
In lugnet.cad.ldd, Lars C. Hassing wrote:
In lugnet.cad.ldd, Travis Cobbs wrote:
I haven't ever tried LDD on the Mac,

Nor have I.

  but I do have some Mac info that might
help.  First of all, unlike the system Windows Open/Save dialogs, the system Mac
Open/Save Panels don't support file type selection, so doing this at all
requires custom code unless an app is NSDocument-based.

L3Lab doesn't have a Save dialog, but in the Open dialog
there is a Pop Up Button with label "Enable",
that let's you choose from:
   All Readable Documents
   L3 LDraw file (ldr)
   L3 LDraw file (mpd)
   All Documents

If you select e.g. "L3 LDraw file (ldr)"
all files but *.ldr are grayed out.

L3Lab is Carbon, I use NavCreateGetFileDialog and
NavDialogSetFilterTypeIdentifiers.
/Lars

Once I got a better ldraw.xml, the conversion process provided me with a valid
ldraw file.

The instructions associated with LXF seem to indicate that LDD knows about
sub-models, but yet it seems to in-line them when spitting out the ldr file.

I guess LDD does not support MPD.

Kevin

I believe it can read them but can't write them. Earlier versions definitely
could but the newer ones may be missing that feature. And yeah the LXF file
format definitely has the concept of sub-models.

Tim

Tim,
  I've been face down in LPub 4......  Has the LDraw community created its own
convertor that supports MDP format?
Thanks,
Kevin

I don't think there's any direct converters out there going either way. In
principle (practise maybe not) it shouldn't be too hard to do so long as you
have the read-write libraries. LXF files and the conversion file are just XML
(zipped with other stuff for LXF) so that side of things is dealt with in
standard libraries.

Tim

 

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR