/// <summary> /// Gets the GUID for the IFC entity type handle associated with an element. /// </summary> /// <param name="familyInstance">The family instance, if it exists.</param> /// <param name="elementType">The element type to use for GUID generation if the family instance is null.</param> /// <returns>The GUID.</returns> public static string GetGUIDForFamilySymbol(FamilyInstance familyInstance, ElementType elementType) { if (familyInstance != null) { FamilySymbol originalFamilySymbol = ExporterIFCUtils.GetOriginalSymbol(familyInstance); return(GUIDUtil.CreateGUID(originalFamilySymbol)); } return(GUIDUtil.CreateGUID(elementType)); }