2014-02-11, 14:28
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?
Stephen Wrote:You might prefer the type of parts list that LDView can generate.
(LDView -> Tools -> Parts List).
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?
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?
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...
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.
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...
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?
Zhengrong Zang Wrote:Where is LDView email address?[email protected]
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?
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?
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...
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?
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?
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?
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.
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.
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?
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?
Zhengrong Zang Wrote:Well, I thought 1 is sort coulmn1, 2 sort 2, 3 sort quantity and so on....
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....
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).
Zhengrong Zang Wrote:There is no prompt for which column, why?
'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]'