Setting Selected Edges to <Invisible Lines>


I have created a plant component with an eliptical revolve as a solid.
I want to be able to run a script that sets edge linework on these plants to <Invisible Lines>

I have two strange issues with the attached script. The first is that it does not consistently select the entire solid (only when the ellipse is round as per image). The second is that I cannot set the edge style.

Any help appreciated.

I do not believe the line work tool is exposed in the API. May have to work in the family environment instead as a possible work around.

Can he change the linestyle of the family to have a very thin line type?