Find CAD import in families

Hello -

I am looking for info on how to list CAD imports in families, is it even possible? I can list import instances directly in Revit but can’t figure out how to identify CAD imports in families. Any information you could provide would greatly help.


Do you mean from within the family editor you get a list of imported dwgs in the .rfa file you have open?

or do you mean if you are in the project .rvt file then you get a list of families
and then a list of all the imported dwgs in the family …

Hi @Jason_Trahan

Its possible. Are you looking to get in family environment or in Revit?

Hi Jason,

I’ve used this to locate “rogue” dwg imports in the .rvt invironment:

import clr

from Autodesk.DesignScript.Geometry import *

#Import the Revit API
import Autodesk
from Autodesk.Revit.DB import *

#Import DocumentManager and TransactionManager
import RevitServices
from RevitServices.Persistence import DocumentManager
from RevitServices.Transactions import TransactionManager

#Import ToDSType(bool) extensions method
import Revit

#Reference the active Document and application
doc = DocumentManager.Instance.CurrentDBDocument
uiapp = DocumentManager.Instance.CurrentUIApplication
app = uiapp.Application

#Start scripting here:

bool = IN[0]

if bool == True:
	col = FilteredElementCollector(doc).OfClass(ImportInstance).ToElements()
	impinst = []
	impname = []

	for i in col:
		if i.IsLinked != True:
	for j in impinst:
   	OUT = impinst, impname

	OUT = "Set bool to True"

Maybe this is helpful:

1 Like

@T_Pover @Jason_Trahan interesting problem. I’m about to release a new node which does precisely this. The only problem is its designed to work with the open document:

However, I’ve just amended it to take an optional path input so that any external file - be it a Family or other Revit document - can be audited silently (i.e. without needing to open the input files):


Nice one, @Thomas_Mahon :slight_smile:

1 Like

Marcello - From the .rvt project I would like to get a list of import instances from loaded/ placed families. From time to time users will insert .dwg or .sat into families (mostly generic models) and then load the family into the .rvt file. I want to find those families and the imports within.

Edit: I now see the link that @T_Pover provided from your blog, (thanks) I will give this a try!

Edit 2: @Martin_Spence1 - Thanks! Works great for finding imports, just looking to go deeper into families. @Thomas_Mahon looks promising, the open document will work, being silent is even better.

@Kulkul - Revit environment. Thanks.

Hi @Jason_Trahan

In that case use the solution by @Thomas_Mahon “reportCADLinks” node should get you started.

Thanks again - Wondering if I can find the families with CAD by finding the current views Imported Categories and check/ uncheck “Imports in Families” visibility. I’ll report back after snooping around.

@Jason_Trahan ReportCADLinks is now available in BimorphNodes v2.0

1 Like

@Jason_Trahan - Did you get anywhere with this? I’m looking at the CAD.ReportInstances node, and i don’t see how i can feed the list of loaded families into that node… at least not without first saving out a family library first…

1 Like