仅提供中文版本
实现Revit中多类别标记的方法
标记方法的关键词:
IndependentTag在创建标记中有两个方法,输入的参数基本一致,但是还是有所区别,下面描述和图片可以更好的区分
第一个函数:通过实际的项目坐标点不需要制定标记类型创建多类别标记Create Method (Document, ElementId, ElementId, Reference, Boolean, TagOrientation, XYZ)
第二个函数:通过UVPoint也就是在构件上面的点控制显示位置并且需要制定标记类别Create( Document document, ElementId ownerDBViewId, Reference referenceToTag, bool addLeader, TagMode tagMode, TagOrientation tagOrientation, XYZ pnt )
代码实例通过document读取视图中的元素,放置多类别注释,如果需要多视图同时操作,则需要找到所有的view并将view传入获得所有的构件
1 | using (Transaction transaction= new Transaction(doc)) |
Author: Broccoli
Copyright Notice: All articles on this blog are licensed under CC BY-NC-SA 4.0 unless otherwise stated.
Related Articles

2023-05-09
Creating Parts in Revit Secondary Development

2022-09-04
Revit二次开发 创建空心模型并与指定构件剪切

2023-05-16
Breaking an Arc into Multiple Segments

2023-06-16
Revit API Ray Method Returns Two Values for Same Element Analysis

2023-05-22
Revit二次开发 Grid无法获取reference的报错

2022-10-24
Using MaterialDesignThemes.Wpf in Revit Secondary Development