Import list of parts into MLCad/LeoCAD/SR 3D Builder


Import list of parts into MLCad/LeoCAD/SR 3D Builder
#1
Hi, I'm new to LDraw and I'm wondering if is possible to import list of parts into those programs or make a *.ldr/*.dat file with all parts like LDD Manager.

Thanks.

[Image: LDD%20Manager%20szldkfjsdlfjlk.jpg]
Reply
Re: Import list of parts into MLCad/LeoCAD/SR 3D Builder
#2
I currently do not quite understand what you like to do?
Reply
Re: Import list of parts into MLCad/LeoCAD/SR 3D Builder
#3
I want to import a list of parts into those programs so I don't need to look for all parts needed to assamble a model.

In LDD you can do this using LDD Manager, once you open the program and choose the proper option it ask for a model number, it then connects to bricklink and download all parts information, and then the program make a LDD file with only the parts needed to assamble the model. Then you only need to start LDD and load that file, no need to search for a part because all are laid down next to each other and ready to be used.

Search for a part in LDD is quite painful and in LDraw is even MORE painful considering it has a LOT more parts.

I want to know if there is a program like LDD Manager, but for LDraw. If there is none, then I want to know if you can import a part list into those programs.
Reply
Re: Import list of parts into MLCad/LeoCAD/SR 3D Builder
#4
Ok, now I understand Smile

AFAIK there is no such application.

But there might be solutions to your need. I remember such a discussion for MLCad.
Because I do not use LeoCAD nor SR 3D Builder, I can not be of any help for those applications.

Edit:
Maybe you should post your question in the desired thread http://forums.ldraw.org/list.php?11
Reply
Re: Import list of parts into MLCad/LeoCAD/SR 3D Builder
#5
I think there used to be a program that took a html from peeron.com and extracted the part list for use in MLCad, I can't rember it's name though.
Reply
Re: Import list of parts into MLCad/LeoCAD/SR 3D Builder
#7
Roland, this looks like it would be fairly straightforward to do in LDCad. Your parts bins are just text files, right? Of course, I assume there isn't currently a program to generate a parts bin from a file, but it seems that would be fairly straightforward.
Reply
Re: Import list of parts into MLCad/LeoCAD/SR 3D Builder
#8
The bins are indeed text files, so if one has all the part numbers creating a bin group won't be a problem. You could place it in the partBin\default\sets folder so they show up in the sets group.

The hard part is extracting the numbers from (any) webpage by paste copy (so the site still gets to show it's banners etc). It's on my to do list for some time Smile
Reply
Re: Import list of parts into MLCad/LeoCAD/SR 3D Builder
#14
I'm not sure if it's available without registering, but registered users can download XML inventories for sets on BrickLink. Here is the beginning of the inventory for set 918:

Code:
<?xml version="1.0" encoding="UTF-8"?>
<INVENTORY>
   <ITEM>
      <ITEMTYPE>M</ITEMTYPE>
      <ITEMID>sp005</ITEMID>
      <QTY>1</QTY>
      <COLOR>0</COLOR>
      <EXTRA>N</EXTRA>
      <ALTERNATE>N</ALTERNATE>
      <MATCHID>0</MATCHID>
      <COUNTERPART>N</COUNTERPART>
   </ITEM>
   <ITEM>
      <ITEMTYPE>P</ITEMTYPE>
      <ITEMID>3957</ITEMID>
      <QTY>1</QTY>
      <COLOR>9</COLOR>
      <EXTRA>N</EXTRA>
      <ALTERNATE>N</ALTERNATE>
      <MATCHID>0</MATCHID>
      <COUNTERPART>N</COUNTERPART>
   </ITEM>
   <ITEM>
      <ITEMTYPE>P</ITEMTYPE>
      <ITEMID>3956</ITEMID>
      <QTY>1</QTY>
      <COLOR>7</COLOR>
      <EXTRA>N</EXTRA>
      <ALTERNATE>N</ALTERNATE>
      <MATCHID>0</MATCHID>
      <COUNTERPART>N</COUNTERPART>
   </ITEM>

It appears that the ITEMID is the LDraw part number when ITEMTYPE is P. Note: the first entry (ITEMTYPE M) is for complete the minifig in the set. The inventory of parts in that minifig can be downloaded as a separate XML file.

So there's no need to parse their web pages; simply add support for their XML inventory format.
Reply
Re: Import list of parts into MLCad/LeoCAD/SR 3D Builder
#15
Did not know about this, I still mainly use peeron for inventories and instructions myself.

It seems straightforward enough, and it's certainly easier then raw html parsing.
Reply
Re: Import list of parts into MLCad/LeoCAD/SR 3D Builder
#10
Hey,

do you think about Peeron_to_MLCad? Thats a great tool!

Rolf
Reply
Re: Import list of parts into MLCad/LeoCAD/SR 3D Builder
#12
Yes, now I'm using it. I found it earlier this day.

Thanks anyway for your help.
Reply
Re: Import list of parts into MLCad/LeoCAD/SR 3D Builder
#13
Thanks for pointing to that tool, I wasn't aware of that.

We should put the link to that tool somewhere for the future to find it easily.

Edit:
I just tried it and this prog should be updated, as it does work for an old MLCad version.
Reply
Re: Import list of parts into MLCad/LeoCAD/SR 3D Builder
#6
Quote:Because I do not use LeoCAD nor SR 3D Builder, I can not be of any help for those applications.
Both can import plain LDraw file, so all three problems are the same.
I sometimes had to do that kind of things (eg. to create visualldconfig), I resorted to a good old text editor...
Reply
Re: Import list of parts into MLCad/LeoCAD/SR 3D Builder
#9
In MLCad you have the Favorites under the parts tree.
You can drag the parts you like to use into that Favorites.

They will be stored in the registry in the folder
Computer\HKEY_CURRENT_USER\Software\Lachmann\MLCad\Favorites
For each part an item "Entry1", "Entry2" etc. is created with just the filename as string entry.
Also an item "NumEntries" with the number of part entries needs to be there.

So this can be an entry point for a solution from your side. Problem is still to determine the parts that should go into the Favorites.
Reply
Re: Import list of parts into MLCad/LeoCAD/SR 3D Builder
#11
To those who try to answer my question, thank you for your help.

Thanks to Roland Melkert's answer I could find this program

Peeron to MLCad

It's not 100% exact, but even so it's highly recommend!
Reply
« Next Oldest | Next Newest »



Forum Jump:


Users browsing this thread: 1 Guest(s)