I'm trying to place Saw cut subconnections on truss members. It works fine but only if there is already one such connection in the project, otherwise the type doesn't exist.
I'm getting the type like this:
Dim connType As ElementType = New FilteredElementCollector(doc).WhereElementIsElementType.Cast(Of ElementType).Where(Function(x) x.FamilyName = "Saw cut - Flange" And x.Name = "Saw cut - Flange").First
Is there another way of achieving this?
Thanks in advance.