Invisible line style revit api
List<GraphicsStyle> _styles = new FilteredElementCollector(doc)
.OfClass(typeof(GraphicsStyle))
.Cast<GraphicsStyle>()
.ToList();
GraphicsStyle invisibleLineStyle = null;
foreach (GraphicsStyle g in _styles)
{
if (g.Name == "<Invisible lines>")
{
invisibleLineStyle = g;
break;
}
}