You can assigned the entities in the ComponentDefinition a layer, and you can assign ComponentInstances a layer. And while practically you can apply a layer to a definition, SketchUp ignores this.
Yes exactly, that was my question, i didn't understand why i needed to add two different sizes of icons to the Command.
I think i did everything as explaned in the API docs, but i still won't display the icon. Are there any settings that i should check? Or something like .visible = true?
From your code it appear you only added small icon. Hav eyou set your toolbar view to Small Icons? The default are Large.
Hey thanks, this last one was a very good tip.
I think what AdamB proposed is a very professional approach of the problem.
I 've tried it out in my code and it works fantastically.
Yet, it would be interesting to understand WHY this actually works,
does someone know a bit more about the matematical background of this vector based solution?
yes, it works!
I made my windows in the SU components folder in the upright position,
should have done it in the horizontal plane...
thanks a lot tig!!!