FamilyLoadOptions.cs 718 B

1234567891011121314151617181920212223242526
  1. using Autodesk.Revit.DB;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace FWindSoft.Revit.FamilyManager
  8. {
  9. public class FamilyLoadOptions : IFamilyLoadOptions
  10. {
  11. public bool OnFamilyFound(bool familyInUse, out bool overwriteParameterValues)
  12. {
  13. overwriteParameterValues = true;
  14. return true;
  15. }
  16. public bool OnSharedFamilyFound(Family sharedFamily, bool familyInUse, out FamilySource source,
  17. out bool overwriteParameterValues)
  18. {
  19. source = FamilySource.Family;
  20. overwriteParameterValues = true;
  21. return true;
  22. }
  23. }
  24. }