Get and set parameter: Autodesk.Revit.DB.FamilyType

I saw this topic. but this works only in a family doc: