ElementRelationShip.cs 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*-------------------------------------------------------------------------
  2. * 功能描述:ElementRelationShip
  3. * 作者:xulisong
  4. * 创建时间: 2019/6/18 14:57:08
  5. * 版本号:v1.0
  6. * -------------------------------------------------------------------------*/
  7. using JBIM.Common;
  8. using JBIM.Definition;
  9. namespace RevitToJBim.ParseData
  10. {
  11. public class ElementRelationShip
  12. {
  13. public ElementRelationShip()
  14. {
  15. IsProperty = true;
  16. RelatingObjectIsBimId = false;
  17. }
  18. public bool RelatingObjectIsBimId { get; set; }
  19. /// <summary>
  20. /// 主体对象
  21. /// </summary>
  22. public string RelatingObject { get; set; }
  23. /// <summary>
  24. /// 标志关系是否由属性定义
  25. /// </summary>
  26. public bool IsProperty { get; set; }
  27. public void SetPropertyName(string propertyName)
  28. {
  29. PropertyName = propertyName;
  30. }
  31. public void SetElementType(TypeDefinition type)
  32. {
  33. PropertyName = type.GetDescription();
  34. }
  35. public string PropertyName { get; private set; }
  36. }
  37. }