Node to perform "load into Project" action?

You’d be best served to inquire on his GitHub which is where he has moved all his packages too. However, I doubt he share those (if they still exist in a usable format) as they are several years old.

Hi @SeanP, thanks for your reply, yes, excuse me, I have already searched into GitHub, nothing, I posted the question because in this topic and into another I can download the .dyn file but without the .dyf it’s unusable. I love the usable format like python. Have a good day.
I look at my old laptop to find them…
Cheer

here’s the code from for Family.LoadFamily

# Common Language Runtime module
import clr
clr.AddReference('RevitAPI')
clr.AddReference('RevitServices')

# Revit and Dynamo module
from Autodesk.Revit.DB import Document, FamilySource, IFamilyLoadOptions
from RevitServices.Persistence import DocumentManager
from RevitServices.Transactions import TransactionManager

doc = DocumentManager.Instance.CurrentDBDocument
uiapp = DocumentManager.Instance.CurrentUIApplication
app = uiapp.Application

# argument assigned the IN port
fam_docs = IN[0]  # document list

# wrap input inside a list (if not a list)
if not isinstance(fam_docs, list):
    fam_docs = [fam_docs]

# ensure loaded families can overwrite existing families.
class FamilyOption(IFamilyLoadOptions):
    def OnFamilyFound(self, familyInUse, overwriteParameterValues):
        overwriteParameterValues = True
        return True

    def OnSharedFamilyFound(
            self, sharedFamily, familyInUse, source, overwriteParameterValues):
        source = FamilySource.Family
        overwriteParameterValues = True
        return True

# core data processing
for fam_doc in fam_docs:
    fam_doc.LoadFamily(doc, FamilyOption())

# return assigned the OUT port
OUT = fam_docs
2 Likes

Hi @samv, Great ! thank you very much for your help,
you save me a lot of time !
Have a nice day
Cheers