如何将Rebar的材料在Revit中获取?
我是Revit API的新手,我可以使用“ GetMaterialIds(false)”来获取元素的材料,但似乎对Rebar不起作用。但是我在Revitapidocs的“ Rebar”类中发现了“ GetMaterialIds()”方法。那么,我该怎么做才能找到钢筋元素的材料?谢谢你!
I'm new to Revit API and I can use "GetMaterialIds(false)" to get the materials of an element, but it seems doesn't work for rebar. But I found the "GetMaterialIds()" method in the "Rebar" class in RevitAPIDocs. So, what should I do to find the material for the rebar element? Thank you!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
欢迎来到Revit API!
请首先通过开始材料并安装< a href =“ https://github.com/jeremytammik/revitlookup” rel =“ nofollow noreferrer”> rovitlookup 。有了这些知识和工具集,您将能够轻松地自己回答这个非常基本的问题,并且可能很快就会出现。
尽管如此,为了完整的目的,要直接回答您的问题:您可以通过调用其
getMaterialIds
方法Welcome to the Revit API!
Please start by working through the getting started material and installing RevitLookup. With that knowledge and toolset, you will be able to easily answer this very basic question yourself, and probably many others that will soon come up as well.
Still, for the sake of completeness, to answer your question directly: you can obtain a list of all materials contributing to a BIM element by calling its
GetMaterialIds
method