did anybody already write a node to get the file path of the family, where it is located on the server?
The path I would see if I reload a family.
It seems to be possible programatically
But you have to pretend to edit the family, then back out of it. Not sure if that is possible in Dynamo.
As far as model management/auditing, this would be a great tool- find all those rogue families….
I came across this thread searching for the same functionality and made a rough implementation in Python that accepts a list of families: https://bitbucket.org/snippets/thomascorrie/qKLEG
from Autodesk.DesignScript.Geometry import *
from RevitServices.Persistence import DocumentManager
from RevitServices.Transactions import TransactionManager
doc = DocumentManager.Instance.CurrentDBDocument
#Close all transactions
trans = TransactionManager.Instance
#The inputs to this node will be stored as a list in the IN variables.
dataEnteringNode = IN
fam = IN
family = 
path = 
for f in fam:
for f in family:
famDoc = doc.EditFamily(f)
if not famDoc.PathName:
path.append(“Family location not found”)
#Assign your output to the OUT variable.
OUT = path
This topic is marked as closed to new replies, however your posting capabilities still allow you to do so.