revit二次开发——专业/规程/分类2.0

目录

1.视图规程

 2.产品专业ProductType Enumeration

3.构件分类

4.内建类别BuiltInCategory枚举(中英文对照)

(1)模型类别

(2)注释类别

5.专业与类别对照

(1)建筑

(2)结构

(3)机械

 (4)电气

 (5)管道


1.视图规程

viewdiscipline:

Member name Description
Architectural Architectural 建筑
Structural Structural结构
Mechanical Mechanical机械
Electrical Electrical电气
Plumbing Plumbing管道
Coordination Coordination协调

 2.产品专业ProductType Enumeration

指的是使用的revit 产品:分建筑、结构、机电、revit、LT、Unkown六个类

Member name Description
Architecture Architecture.
Structure Structure.
MEP MEP.
Revit Revit.
LT LT.
Unknown Unknown.

1.获取模型构件的ProductType

先通过Autodesk.Revit.ApplicationServices.ControlledApplication获取到ControlledApplication

再通过ControlledApplication类下的product属性,获取到ProductType

        public ProductType Product { get; }

产品专业ProductType Enumeration
指的是使用的revit 产品:分建筑、结构、机电、revit、LT、Unkown六个类

Member name	Description
Architecture	Architecture.
Structure	Structure.
MEP	MEP.
Revit	Revit.
LT	LT.
Unknown	Unknown.
1.获取模型构件的ProductType

先通过Autodesk.Revit.ApplicationServices.ControlledApplication获取到ControlledApplication

再通过ControlledApplication类下的product属性,获取到ProductType

        public ProductType Product { get; }

3.构件分类

 (1)revit内部视图选项卡组件使用了过滤器列表,按专业对构件类别分组,但对应API暂无。

(2)解决方案:因为族类别就是构件的category,创建族时进行了族类别的设置;所以可以根据族类别中过滤器列表的专业——族类别进行分组;然后根据构件的category获取对应专业。

4.内建类别BuiltInCategory枚举(中英文对照)

(1)模型类别

专用设备标记 : OST_SpecialityEquipmentTags
云线批注 : OST_RevisionClouds
云线批注标记 : OST_RevisionCloudTags
位移路径 : OST_DisplacementPath
体量标记 : OST_MassTags
体量楼层标记 : OST_MassAreaFaceTags
停车场标记 : OST_ParkingTags
内部点荷载标记 : OST_InternalPointLoadTags
内部线荷载标记 : OST_InternalLineLoadTags
内部面荷载标记 : OST_InternalAreaLoadTags
分区标记 : OST_ZoneTags
分析墙标记 : OST_WallAnalyticalTags
分析支撑标记 : OST_BraceAnalyticalTags
分析条形基础标记 : OST_WallFoundationAnalyticalTags
分析柱标记 : OST_ColumnAnalyticalTags
分析梁标记 : OST_BeamAnalyticalTags
分析楼层标记 : OST_FloorAnalyticalTags
分析楼板基础标记 : OST_FoundationSlabAnalyticalTags
分析独立基础标记 : OST_IsolatedFoundationAnalyticalTags
分析节点标记 : OST_NodeAnalyticalTags
分析链接标记 : OST_LinkAnalyticalTags
剖面 : OST_Sections
剖面框 : OST_SectionBox
卫浴装置标记 : OST_PlumbingFixtureTags
参照平面 : OST_CLines
参照点 : OST_ReferencePoints
参照线 : OST_
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值