Grid
2 posts
Revit二次开发 Grid无法获取reference的报错
在Revit2018以后,修改了Grid的Reference获取办法,需要使用下面的代码进行获取 而在之前是需要获取Grid的Curve.Reference才能进行标注创建 改动应该是为了更加安全便捷的获取Grid的Refence而做出的修改。关于这个事情的官方回答详情可以看下面这篇文章
Error Getting Grid Reference in Revit API
After Revit 2018, the method for obtaining Grid Reference has been modified. You need to use the following code to retrieve it: Previously, you need...
Revit 二次开发 获取多段轴网的location
点开多段轴网会发现轴网类型为 MultiSegmentGrid ,里面没有Locaiton可以获取,如果想要获取路径可以通过两种方式进行获取 方式一: Revit中可以进行编辑草图模式的均可以通过删除构件收集 构件ID 进行获取相应路径 代码可以参照叶雄进的获取板边界文章进行获取 方式二:直接...
Revit Secondary Development Get Location of Multi-segment Grid
Clicking multi segment grid will find grid type is MultiSegmentGrid , there is no Location to get inside. If want to get path can get through two wa...