Revit API Forum
Welcome to Autodesk’s Revit API Forums. Share your knowledge, ask questions, and explore popular Revit API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Placing Saw cut subconnections - type doesn't exist

1 REPLY 1
SOLVED
Reply
Message 1 of 2
miguelmachadoecosta
302 Views, 1 Reply

Placing Saw cut subconnections - type doesn't exist

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

Tags (1)
1 REPLY 1
Message 2 of 2

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...

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report