leozide / leocad

A CAD application for creating virtual LEGO models
https://www.leocad.org
2.46k stars 207 forks source link

Filter parts by set #431

Open keith-hall opened 4 years ago

keith-hall commented 4 years ago

Hi,

Thanks for this great tool! I have a feature request, though it may be that I'm ignorant and its already possible somehow - please forgive me if so, I'm new to Lego modelling.

My use case is that I have a physical Lego set - specifically Lego Education WeDo 2.0. I want to create some models in LeoCad using only parts from this set. This would be much easier for me if:

What do you think? Is there some other way I could improve my current workflow without requiring any changes to this awesome software? (sorry if this isn't the best place to ask for workflow advice)

Thanks for your time :)

nathaneltitane commented 4 years ago

@keith-hall this is already possible, you can browse parts used in the model using the filter that's is already built into the parts widget, in the upper list, called 'Parts in use'

keith-hall commented 4 years ago

Thanks for the advice @nathaneltitane :) but what if I am modelling something new, and am starting from a blank state? then, there are no parts in use currently, so I would like to filter by set to easily find parts available to me for building in the real world. or to help me record something I made in the real world so I can document the building instructions ;) I guess I could build a fake model, whereby I add all parts from the set I am interested in, and copy from that into the model I am building, but it doesn't seem ideal to me.

Having the search results show up in a separate list box (this may be similar to what you were describing recently at https://github.com/leozide/leocad/issues/401#issuecomment-570945487) could also be a huge help, assuming searching by set number or name would work (I didn't try yet and I'm not at a computer to computer to test it right now)

nathaneltitane commented 4 years ago

Well in the case of a new model, it builds up that list as you use the parts.

If you introduce or merge any submodel from a. Previous file containing what you're interested in, it can have the same effect you are describing.

Bottom line, if you do not populate the model file with parts, that entry remains empty

trevorsandy commented 4 years ago

If you have a predefined part list with LDraw part descriptions for the model you wish to build, you can use it to create and import a custom part category list.

To see the category list format, export an existing category/set of categories. As far as I can tell, category entries key on the part name (description).

Cheers,

leozide commented 4 years ago

This is an often requested feature, I started working on part of it last month but didn't finish it.

Right now you can use File->Import Set Inventory and it will add all parts from a set to the current model.

I can import the parts into a custom category fairly easily, but counting parts will take some work.

leozide commented 4 years ago

220fb26a3ab463aba5a1f8d9aeba314527cbca26 will let you import a set inventory to a palette (without color or quantity)

j6t commented 3 years ago

Is there something to add to this issue, or can it be closed as fixed?

leozide commented 3 years ago

I still need to add color and quantity