Hi @george1985,
I think this happens because when isolating a Curtain panels (element or bycategory) will also hide walls and with it all it's dependent item like panels. (seems to also happen in UI, doesn't happen on a Nested family inside a curtainpanel, which I was testing reading these posts.
I do find the API not working exactly like in the UI (for families with nested families), could be because the UI function does some additional work like several other commands.
I was just looking if somebody already made a solution for when isolating a supercomponent to also keep their nested families visible (like the UI does)
I guess I need to inspect the elements first and add any nested component before calling isolate.
For Curtainwalls it seems to work a bit different If you add the parent wall (from curtain panels) the mullions also show, so they then need to be hidden..
I'll write a extension for the isolateelements function for families with nested elements.
For Curtainwall I may add a option to show all nested elements or hide all but selected afterwards
These are the most used elements for us, but there will be likely more types like this. (Sloped glazing of course, Beamsystem, stacked wall...etc)
Gr. Michel