12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- /*-------------------------------------------------------------------------
- * 功能描述:ElementRelationShip
- * 作者:xulisong
- * 创建时间: 2019/6/18 14:57:08
- * 版本号:v1.0
- * -------------------------------------------------------------------------*/
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using JBIM;
- namespace RevitToJBim
- {
- public class ElementRelationShip
- {
- public ElementRelationShip()
- {
- IsProperty = true;
- RelatingObjectIsBimId = false;
- }
- public bool RelatingObjectIsBimId { get; set; }
- /// <summary>
- /// 主体对象
- /// </summary>
- public string RelatingObject { get; set; }
- /// <summary>
- /// 标志关系是否由属性定义
- /// </summary>
- public bool IsProperty { get; set; }
- public void SetPropertyName(string propertyName)
- {
- PropertyName = propertyName;
- }
- public void SetElementType(TypeDefinition type)
- {
- PropertyName = type.GetDescription();
- }
- public string PropertyName { get; private set; }
- }
- }
|