Placing Saw cut subconnections - type doesn't exist

Placing Saw cut subconnections - type doesn't exist

miguelmachadoecosta
Advocate Advocate
349 Views
1 Reply
Message 1 of 2

Placing Saw cut subconnections - type doesn't exist

miguelmachadoecosta
Advocate
Advocate

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.

SawCut.png

0 Likes
Accepted solutions (1)
350 Views
1 Reply
Reply (1)
Message 2 of 2

miguelmachadoecosta
Advocate
Advocate
Accepted solution

My solution for now was to embed a template project with the type of sub-connection included and copy that type between projects in case it's missing.

 

But there must exist a better way...

0 Likes