拾取一个构件,取得引用的方式
FamilyInstance instance = doc.GetElement(uiDoc.Selection.PickObject(ObjectType.Element, "Select")) as FamilyInstance;
IList<Reference> refFB = instance.GetReferences(FamilyInstanceReferenceType.CenterFrontBack);
IList<Reference> refLR = instance.GetReferences(FamilyInstanceReferenceType.CenterLeftRight);