Revit.Elements.StructuralFraming -> Revit.Elements.FamilyInstance

I want changer Revit.Elements.StructuralFraming -> Revit.Elements.FamilyInstance.

What do you want to achieve? As I understand, you want to get reference by name, but that block works only for family instances.
I don’t think you can change an element that is Structural Framing to a Family Instance, but we can change the python script to get that reference you need.

i want get reference by name of structural framing

This python script will give you the reference by name, but it works only for one element. If you want to use it for a list, it must be adjusted.
Of course remember to change the name of the reference you want, at the moment is “Center (Front/back)”

import clr

from Autodesk.Revit.DB import *
from Autodesk.Revit.DB.Structure import *

import RevitServices
from RevitServices.Persistence import DocumentManager
from RevitServices.Transactions import TransactionManager

doc = DocumentManager.Instance.CurrentDBDocument

beam = UnwrapElement(IN[0])


ref = FamilyInstance.GetReferenceByName(beam,"Center (Front/Back)")


OUT = ref

Thank you.