Looking on the forum on how to expand origin folder in a selected component in an assembly, I found your interesting code solution addressed to a part template.
Since my case has to do with large assemblies I would like to know if it would be possible to adapt it for this purpose:
At the time to repetitively place and constraint components at one of their origin planes (against a face, edge or the like from other parts), it is quite annoying to search and expand once and again the origin folder in the browser pane and find the right plane to work with.
Although is true that once the component is just placed in the assembly, its location in the browser it is always at the lower position, but in large assemblies, it happens quite often that the other half to constraint to, might be a mile away in the browser but on the very nearby at the screen area.
In this scenario, a rule that would expand the origin folder from the selected component (usually the one that has more depths/parents on the browser), before launching the constraint menu/options dialogue, would be a great time saver.
Since the recently placed component will always be found at the bottom of the pane, expanding the origin folder of the more hidden component and look there for the right plane, before the constraint menu call, it would save a lot of mouse clicks, since at the time to make the first selection you would already be placed at the right spot in the plane browser.
Thanks in advance.