leocad icon indicating copy to clipboard operation
leocad copied to clipboard

Filter parts by set

Open keith-hall opened this issue 5 years ago • 8 comments

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:

  • LeoCad could allow me to filter parts only from specific sets. This would enable me to scroll/browse around to find parts rather than searching by brick number each time, (which I currently use an external reference for - afaict this particular Lego set doesn't show part numbers in the physical supplied parts list card) and I feel would save me lots of time
  • When I use a part, it could count how many of that part is left from those sets and hide or disable those that have been fully used
  • restrict the available colors of a part to those in the set(s) I filtered

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 :)

keith-hall avatar Jan 09 '20 05:01 keith-hall

@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'

nathaneltitane avatar Jan 09 '20 12:01 nathaneltitane

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)

keith-hall avatar Jan 09 '20 13:01 keith-hall

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

nathaneltitane avatar Jan 09 '20 14:01 nathaneltitane

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,

trevorsandy avatar Jan 09 '20 17:01 trevorsandy

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 avatar Jan 09 '20 19:01 leozide

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

leozide avatar Jan 09 '20 20:01 leozide

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

j6t avatar Apr 10 '21 18:04 j6t

I still need to add color and quantity

leozide avatar Apr 10 '21 18:04 leozide