Count sub-components with the definition "TOTO"

I use “Notepad ++” how to adjust the indentation in automatic mode?

How to adjust the color of texts according to the conventions of the ruby script?

I edited my code to correct the indent following your remarks Dan.
Thanks for these informations.

Concerning my problem, I ended up finding a solution that works.

Instead of looking in “Furniture A” and “Furniture B”, if there is a sub-component “Door”.

I control the value of a dynamic attribute inside each piece of furniture, which informs whether the door is present or not.

If the attribute says that the door is not in the furniture, it is imported if not “nil”.

So I can have as much furniture as I want in my selection and apply the method only for furniture without doors. :wink: