How to get parts list withour grouping by sub models?


How to get parts list withour grouping by sub models?
#1
I am usingMLCad to create my train and I created a parts list, but they are grouped by sub models, I think this is not easy to use, can I get a fll parts list without grouped?
Reply
Re: How to get parts list withour grouping by sub models?
#2
You might prefer the type of parts list that LDView can generate.
(LDView -> Tools -> Parts List).
Reply
Re: How to get parts list withour grouping by sub models?
#3
Stephen Wrote:You might prefer the type of parts list that LDView can generate.
(LDView -> Tools -> Parts List).

Thanks for you help, I can view parts list, but I am not sure why some parts don't show image and show message as below, can you tell me why?

View on Peeron.com 71427c01 7:Light Gray 1 Electric Technic Mini-Motor 9v


Attached Files Thumbnail(s)
   
Reply
Re: How to get parts list withour grouping by sub models?
#4
Well, I normally untick the "show part images" box so that the parts list is text only.

The images unfortunately are not generated locally from your LDraw library, they are dynamically fetched from the peeron.com website.

Sometimes a part won't show because the part has no image on that site, probably due to aliases or naming differences between LDraw and Peeron parts, or Peeron simply not having an image (part 3794b for example).

But sometimes LDView deliberately doesn't include a link to the image, even though that part does have an image on Peeron (your 71427c01 motor being such an example). I'm not sure why LDView chooses to not generate an image link for this part. Perhaps Travis will come along and enlighten us...
Reply
Re: How to get parts list withour grouping by sub models?
#5
LDView only tries to display images for files it thinks are official parts. It doesn't think that file is an official part, because it is looking for a line that starts "0 !LDRAW_ORG Part" to denote official parts. I need to update it to also support "0 !LDRAW_ORG Shortcut". So, this is a bug in LDView.
Reply
Re: How to get parts list withour grouping by sub models?
#6
Thanks, makes perfect sense now.
Reply
Re: How to get parts list withour grouping by sub models?
#7
Travis Cobbs Wrote:LDView only tries to display images for files it thinks are official parts. It doesn't think that file is an official part, because it is looking for a line that starts "0 !LDRAW_ORG Part" to denote official parts. I need to update it to also support "0 !LDRAW_ORG Shortcut". So, this is a bug in LDView.
Thanks for your fast responding. By the way, I am using Mac version, is this also to fix?
Reply
Re: How to get parts list withour grouping by sub models?
#8
The bug is in the cross-platform LDView code, so the fix will be in the next release for all platforms. Having said that, I haven't had any official releases recently due to not spending very much time on LDView, and having a list of known bugs I want to fix before releasing again. If you send an email to the LDView email address, I'll try to get you a development build that includes a fix for this. Make sure to include what version of Mac OS X you're using in the email, if you send it.
Reply
Re: How to get parts list withour grouping by sub models?
#9
Travis Cobbs Wrote:The bug is in the cross-platform LDView code, so the fix will be in the next release for all platforms. Having said that, I haven't had any official releases recently due to not spending very much time on LDView, and having a list of known bugs I want to fix before releasing again. If you send an email to the LDView email address, I'll try to get you a development build that includes a fix for this. Make sure to include what version of Mac OS X you're using in the email, if you send it.
I am using LPub wih LDview to create instructions, but I found the pictures in LPub are not higher quality like in LDView, why? Can I config LPub to show all Instructions like in LDView?
Reply
Re: How to get parts list withour grouping by sub models?
#10
As far as I know, LPub can use either LDView or POV to generate it's images, and by default it uses LDView. So, the image quality should be the same (assuming you're not using POV; and if you're using POV, it should be better, but without edge lines, and really slow).

One thing you can do is create a preference set in LDView. I think you need to name it "LPub". If you have that preference set, LPub will (mostly) use the settings from that preference set. (I say mostly, because I think it forces certain settings, like edge lines.) So, you can then go into that preference set and enable things like antialiased lines. You can also make sure that "low quality studs" is disabled.
Reply
Re: How to get parts list withour grouping by sub models?
#11
Travis Cobbs Wrote:As far as I know, LPub can use either LDView or POV to generate it's images, and by default it uses LDView. So, the image quality should be the same (assuming you're not using POV; and if you're using POV, it should be better, but without edge lines, and really slow).

One thing you can do is create a preference set in LDView. I think you need to name it "LPub". If you have that preference set, LPub will (mostly) use the settings from that preference set. (I say mostly, because I think it forces certain settings, like edge lines.) So, you can then go into that preference set and enable things like antialiased lines. You can also make sure that "low quality studs" is disabled.
Thanks for your advise, I will try it tonight? By the way, are you also responsibility of LPub? Because I have some requirements...Smile
Reply
Re: How to get parts list withour grouping by sub models?
#12
Quote:As far as I know, LPub can use either LDView or POV to generate it's images,
Current LPub version 4 works with either LDglite or LDView, but no longer POV.
Quote:By the way, are you also responsibility of LPub?
No he is not Wink We all have many suggestions but the project is no longer very active...
Quote:the pictures in LPub are not higher quality
In addition to Travis suggestions, maybe you need to increase image resolution? By default LPub uses a relatively low 150 dpi (configuration -> project setup). But increasing resolution causes longer processing time and bigger output files...
Reply
Re: How to get parts list withour grouping by sub models?
#13
Travis Cobbs Wrote:If you send an email to the LDView email address, I'll try to get you a development build that includes a fix for this. Make sure to include what version of Mac OS X you're using in the email, if you send it.
Where is LDView email address?
Reply
Re: How to get parts list withour grouping by sub models?
#14
Zhengrong Zang Wrote:Where is LDView email address?
[email protected]
Reply
Re: How to get parts list withour grouping by sub models?
#15
Zhengrong Zang Wrote:
Travis Cobbs Wrote:If you send an email to the LDView email address, I'll try to get you a development build that includes a fix for this. Make sure to include what version of Mac OS X you're using in the email, if you send it.
Where is LDView email address?

Bear in mind, that even once Travis fixes this LDView bug ("shortcut" parts), you'll still likely get parts lists with missing part images.

I usually have images turned off anyway, but for testing I analysed some of my biggest models and found that every one of them had missing images, and while a few missing images were caused by this particular bug (e.g. motors, flags, etc.), the majority of the missing images were for a variety of other reasons:
  • Peeron using a different part number than LDraw for a given part
  • Peeron not having any image available for a given part
  • Peeron having an image available, but not at the expected address
  • Peeron not having an image in my chosen color, despite such a part/color truly existing
  • Peeron not having an image in my chosen color, because I used a color/part combo that may not exist in the real world (my fault)
  • Parts lists of models/sub-models where color 16 has been used
  • and so on...

Travis, as regards color 16, rather than generating a parts list with color -1 (as you presently do), would it not be better in this case to simply pick up the user's chosen "default" color on preferences/general? or make it an option...
Reply
Re: How to get parts list withour grouping by sub models?
#16
Stephen Wrote:
Zhengrong Zang Wrote:
Travis Cobbs Wrote:If you send an email to the LDView email address, I'll try to get you a development build that includes a fix for this. Make sure to include what version of Mac OS X you're using in the email, if you send it.
Where is LDView email address?

Bear in mind, that even once Travis fixes this LDView bug ("shortcut" parts), you'll still likely get parts lists with missing part images.

I usually have images turned off anyway, but for testing I analysed some of my biggest models and found that every one of them had missing images, and while a few missing images were caused by this particular bug (e.g. motors, flags, etc.), the majority of the missing images were for a variety of other reasons:
  • Peeron using a different part number than LDraw for a given part
  • Peeron not having any image available for a given part
  • Peeron having an image available, but not at the expected address
  • Peeron not having an image in my chosen color, despite such a part/color truly existing
  • Peeron not having an image in my chosen color, because I used a color/part combo that may not exist in the real world (my fault)
  • Parts lists of models/sub-models where color 16 has been used
  • and so on...

Travis, as regards color 16, rather than generating a parts list with color -1 (as you presently do), would it not be better in this case to simply pick up the user's chosen "default" color on preferences/general? or make it an option...
Thanks for your message. In fact, I hope that I can resort parts list on web page, if I click on title quantity, the parts list will be resorted by quantity from high to low, is this possible?
Reply
Re: How to get parts list withour grouping by sub models?
#17
Zhengrong Zang Wrote:Thanks for your message. In fact, I hope that I can resort parts list on web page, if I click on title quantity, the parts list will be resorted by quantity from high to low, is this possible?

No, it only sorts by part number presently.
Reply
Re: How to get parts list withour grouping by sub models?
#18
Note: I would have answered the questions directed at me, but as far as I can tell, they have all been answered (correctly) by others. Please reply to this if I missed something.
Reply
Re: How to get parts list withour grouping by sub models?
#19
Zhengrong Zang Wrote:In fact, I hope that I can resort parts list on web page, if I click on title quantity, the parts list will be resorted by quantity from high to low, is this possible?

As I previously stated, LDView doesn't currently provide for sorting by anything other than the part number. But I've got a number of scripts lying around that do various things with an LDView Parts List html file, one of which is a javascript bookmarklet that provides for the ability to re-sort the parts list on demand.

This is just a quick and dirty hack - don't expect it to be perfect. I've mainly tested it with slightly older versions of Firefox/Chrome/Opera, and it should work on most browsers, except probably Internet Explorer (which I don't use).

To set it up:
Visit http://pastebin.com/m0e9yGxM
(I can't post the script here because this forum damages the script (even using "quote" or "code")).
Carefully copy the entire contents of the RAW Paste Data box to your clipboard.
Create a new bookmark in your browser.
Edit the properties of the bookmark.
Paste the copied script from above into the location/URL box.
Set the name to something useful, like "LDView Parts List Sorter".
Save the bookmark.

To use it:
Open an LDView parts list html file in the browser.
Click on the bookmark, and enter a number from 1 to 4 or -1 to -4 to re-sort the parts list.

It should re-sort using the selected field as the sort index. You can only use a field if you had LDView output that column to the parts list in the first place. You might also be able to use dual-index sorting. If you sort by color then again by description, you get a different result to sorting by quantity then description because it is sorting the result of the previous sort - but that may not entirely work as expected across all browsers. Hitting Reload will return to the original LDView generated sort order.

You should be able to print or screenshot your altered parts list. Unfortunately, you probably won't be able to use File/SavePageAs to save the re-sorted playlist because that will just save another copy of the original (but if you have Chris Pederick's Web Developer add-on installed then you can use its View Generated Source followed by a Save to save the newly sorted parts list).

Let me know if you try it, if it works, or if you have problems (mention which browser you use and what went wrong). It certainly works for me with LDView 4.1 parts lists.
Reply
Re: How to get parts list withour grouping by sub models?
#20
Stephen Wrote:
Zhengrong Zang Wrote:In fact, I hope that I can resort parts list on web page, if I click on title quantity, the parts list will be resorted by quantity from high to low, is this possible?

As I previously stated, LDView doesn't currently provide for sorting by anything other than the part number. But I've got a number of scripts lying around that do various things with an LDView Parts List html file, one of which is a javascript bookmarklet that provides for the ability to re-sort the parts list on demand.

This is just a quick and dirty hack - don't expect it to be perfect. I've mainly tested it with slightly older versions of Firefox/Chrome/Opera, and it should work on most browsers, except probably Internet Explorer (which I don't use).

To set it up:
Visit http://pastebin.com/m0e9yGxM
(I can't post the script here because this forum damages the script (even using "quote" or "code")).
Carefully copy the entire contents of the RAW Paste Data box to your clipboard.
Create a new bookmark in your browser.
Edit the properties of the bookmark.
Paste the copied script from above into the location/URL box.
Set the name to something useful, like "LDView Parts List Sorter".
Save the bookmark.

To use it:
Open an LDView parts list html file in the browser.
Click on the bookmark, and enter a number from 1 to 4 or -1 to -4 to re-sort the parts list.

It should re-sort using the selected field as the sort index. You can only use a field if you had LDView output that column to the parts list in the first place. You might also be able to use dual-index sorting. If you sort by color then again by description, you get a different result to sorting by quantity then description because it is sorting the result of the previous sort - but that may not entirely work as expected across all browsers. Hitting Reload will return to the original LDView generated sort order.

You should be able to print or screenshot your altered parts list. Unfortunately, you probably won't be able to use File/SavePageAs to save the re-sorted playlist because that will just save another copy of the original (but if you have Chris Pederick's Web Developer add-on installed then you can use its View Generated Source followed by a Save to save the newly sorted parts list).

Let me know if you try it, if it works, or if you have problems (mention which browser you use and what went wrong). It certainly works for me with LDView 4.1 parts lists.
I tried your bookmarket, only 4 is correct, 1-3 are not right, I need it is sorted by quantities, what can I do?
By the way, I tested it on Safari.


Attached Files Thumbnail(s)
               
Reply
Re: How to get parts list withour grouping by sub models?
#21
Zhengrong Zang Wrote:I tried your bookmarket, only 4 is correct, 1-3 are not right, I need it is sorted by quantities, what can I do?
By the way, I tested it on Safari.

I don't understand. All your images look correct.

Image 1 is sorted by quantity (ascending), hence why it starts with all the 1's. Use -1 for descending.
Image 2 is sorted by part number (alphabetical, not numerical, the same way LDView does it).
Image 3 is sorted by color (ascending), hence why you have your black part, then all your reds, etc.
Image 4 is sorted by description (ascending, alphabetical).

What else did you expect?
Reply
Re: How to get parts list withour grouping by sub models?
#22
Stephen Wrote:
Zhengrong Zang Wrote:I tried your bookmarket, only 4 is correct, 1-3 are not right, I need it is sorted by quantities, what can I do?
By the way, I tested it on Safari.

I don't understand. All your images look correct.

Image 1 is sorted by quantity (ascending), hence why it starts with all the 1's. Use -1 for descending.
Image 2 is sorted by part number (alphabetical, not numerical, the same way LDView does it).
Image 3 is sorted by color (ascending), hence why you have your black part, then all your reds, etc.
Image 4 is sorted by description (ascending, alphabetical).

What else did you expect?
Well, I thought 1 is sort coulmn1, 2 sort 2, 3 sort quantity and so on....Sad
Reply
Re: How to get parts list withour grouping by sub models?
#23
Zhengrong Zang Wrote:Well, I thought 1 is sort coulmn1, 2 sort 2, 3 sort quantity and so on....Sad

LDView lets you arrange the columns in any order you like (something which made writing the script trickier!) so I just used the column order I have in place here.

The opening message box should show you which code to use for which column (image attached).


Attached Files
.png   image.png (Size: 57.65 KB / Downloads: 2)
Reply
Re: How to get parts list withour grouping by sub models?
#24
Stephen Wrote:
Zhengrong Zang Wrote:Well, I thought 1 is sort coulmn1, 2 sort 2, 3 sort quantity and so on....Sad

LDView lets you arrange the columns in any order you like (something which made writing the script trickier!) so I just used the column order I have in place here.

The opening message box should show you which code to use for which column (image attached).
There is no prompt for which column, why?


Attached Files Thumbnail(s)
   
Reply
Re: How to get parts list withour grouping by sub models?
#25
Zhengrong Zang Wrote:There is no prompt for which column, why?

Oh dear... no wonder you were confused!

It's a multi-line javascript prompt box, but unfortunately it seems some browsers don't display it well (Opera/Chrome/Firefox display it fine, but IE and it seems Safari don't).

At least now you know what the codes are Smile

Edit:
If you wanted to, you could edit the bookmark to reformat the message so that it displays better on your browser. Near the start you'll see this:
Code:
'Stephen\'s LDView Parts List Sorter v1.0[b]\n\n[/b]Select sorting method:[b]\n[/b]1 = quantity[b]\n[/b]2 = part[b]\n[/b]3 = color[b]\n[/b]4 = description[b]\n[/b]Use negative number for reverse[b]\n\n[/b]'
Remove or replace any \n newlines with a space or similar. Just don't remove anything else.
Reply
« Next Oldest | Next Newest »



Forum Jump:


Users browsing this thread: 1 Guest(s)