简体   繁体   English

Revit API-阅读所有项目警告

[英]Revit API - Reading all Project Warnings

Is there any way to read all warning of the projects. 有什么办法可以阅读所有有关项目的警告。 I tried to follow some solution on the forums but I wasn't able to get the list of warning of the current project because it returns the list of default warnings that has nothing to do with the warning list of the current project. 我尝试在论坛上关注一些解决方案,但无法获得当前项目的警告列表,因为它返回的默认警告列表与当前项目的警告列表无关。

I don't want to export the warning in HTML and read it from there, I rather like to read it from code. 我不想以HTML格式导出警告并从那里读取警告,而是希望从代码中读取警告。 Is there any way I can achieve this via API? 有什么办法可以通过API实现此目标吗?

Ideally, I'd like to read the warning in a hierarchy as shown in the image below. 理想情况下,我想按照下图所示的层次结构阅读警告。

在此处输入图片说明

Yes. 是。 The Revit 2018 API implements a new method to to get a list of reviewable warnings from a Document . Revit 2018 API实现了一种新方法, 可从Document获取可审阅警告的列表

I just answered the same question in the Revit API discussion forum as well: 我也在Revit API论坛中回答了相同的问题:

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM