ElementOneToManyRel.cs 989 B

123456789101112131415161718192021222324252627282930313233343536
  1. /*-------------------------------------------------------------------------
  2. * 功能描述:OneToManyRel
  3. * 作者:xulisong
  4. * 创建时间: 2019/6/17 10:49:50
  5. * 版本号:v1.0
  6. * -------------------------------------------------------------------------*/
  7. using System;
  8. using System.Collections.Generic;
  9. using System.Linq;
  10. using System.Text;
  11. using System.Threading.Tasks;
  12. namespace RevitToJBim
  13. {
  14. public class ElementOneToManyRel : ElementRelationShip
  15. {
  16. public ElementOneToManyRel()
  17. {
  18. }
  19. public ElementOneToManyRel(string relatingObject)
  20. {
  21. RelatingObject = relatingObject;
  22. }
  23. public ElementOneToManyRel(string relatingObject, List<string> relatedObjects)
  24. {
  25. RelatingObject = relatingObject;
  26. RelatedObjects = relatedObjects;
  27. }
  28. /// <summary>
  29. /// 关联对象
  30. /// </summary>
  31. public List<string> RelatedObjects { get; set; }
  32. }
  33. }