How to get parts list withour grouping by sub models? - Printable Version +- LDraw.org Discussion Forums (https://forums.ldraw.org) +-- Forum: General (https://forums.ldraw.org/forum-12.html) +--- Forum: General LDraw.org Discussion (https://forums.ldraw.org/forum-6.html) +--- Thread: How to get parts list withour grouping by sub models? (/thread-12439.html) |
How to get parts list withour grouping by sub models? - Zhengrong Zang - 2014-02-11 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? Re: How to get parts list withour grouping by sub models? - Stephen - 2014-02-11 You might prefer the type of parts list that LDView can generate. (LDView -> Tools -> Parts List). Re: How to get parts list withour grouping by sub models? - Zhengrong Zang - 2014-02-12 Stephen Wrote:You might prefer the type of parts list that LDView can generate. 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 Re: How to get parts list withour grouping by sub models? - Stephen - 2014-02-12 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... Re: How to get parts list withour grouping by sub models? - Travis Cobbs - 2014-02-12 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. Re: How to get parts list withour grouping by sub models? - Stephen - 2014-02-12 Thanks, makes perfect sense now. Re: How to get parts list withour grouping by sub models? - Zhengrong Zang - 2014-02-12 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? Re: How to get parts list withour grouping by sub models? - Travis Cobbs - 2014-02-12 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. Re: How to get parts list withour grouping by sub models? - Zhengrong Zang - 2014-02-14 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? Re: How to get parts list withour grouping by sub models? - Travis Cobbs - 2014-02-14 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. Re: How to get parts list withour grouping by sub models? - Zhengrong Zang - 2014-02-14 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).Thanks for your advise, I will try it tonight? By the way, are you also responsibility of LPub? Because I have some requirements... Re: How to get parts list withour grouping by sub models? - Philippe Hurbain - 2014-02-14 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 We all have many suggestions but the project is no longer very active... Quote:the pictures in LPub are not higher qualityIn 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... Re: How to get parts list withour grouping by sub models? - Zhengrong Zang - 2014-02-14 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? Re: How to get parts list withour grouping by sub models? - Philippe Hurbain - 2014-02-14 Zhengrong Zang Wrote:Where is LDView email address?[email protected] Re: How to get parts list withour grouping by sub models? - Stephen - 2014-02-14 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:
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... Re: How to get parts list withour grouping by sub models? - Zhengrong Zang - 2014-02-14 Stephen 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?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? Re: How to get parts list withour grouping by sub models? - Stephen - 2014-02-14 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. Re: How to get parts list withour grouping by sub models? - Travis Cobbs - 2014-02-14 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. Re: How to get parts list withour grouping by sub models? - Stephen - 2014-02-16 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. Re: How to get parts list withour grouping by sub models? - Zhengrong Zang - 2014-02-17 Stephen 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?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? By the way, I tested it on Safari. Re: How to get parts list withour grouping by sub models? - Stephen - 2014-02-17 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? 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? Re: How to get parts list withour grouping by sub models? - Zhengrong Zang - 2014-02-17 Stephen Wrote:Well, I thought 1 is sort coulmn1, 2 sort 2, 3 sort quantity and so on....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? Re: How to get parts list withour grouping by sub models? - Stephen - 2014-02-17 Zhengrong Zang Wrote:Well, I thought 1 is sort coulmn1, 2 sort 2, 3 sort quantity and so on.... 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). Re: How to get parts list withour grouping by sub models? - Zhengrong Zang - 2014-02-17 Stephen Wrote:There is no prompt for which column, why?Zhengrong Zang Wrote:Well, I thought 1 is sort coulmn1, 2 sort 2, 3 sort quantity and so on.... Re: How to get parts list withour grouping by sub models? - Stephen - 2014-02-17 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 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]' |