[英]How to get Parts Category from model Revit 2022 using forge API
I'm trying extract all elements from parts category from revit metadata using Model Derivate API but I can't find any.我正在尝试使用 Model Derivate API 从 revit 元数据中提取零件类别中的所有元素,但我找不到任何元素。 How can I get part category from revit metadata?
如何从 revit 元数据中获取零件类别? metadata look
元数据外观
When using this endpoint GET {urn}/metadata/{guid}/properties
, you get all the properties of objects.使用此端点
GET {urn}/metadata/{guid}/properties
时,您将获得对象的所有属性。
To get categories , you should use this endpoint GET {urn}/metadata/{guid}
which gives you the hierarchy tree of all objects in the scene.要获取类别,您应该使用此端点
GET {urn}/metadata/{guid}
,它为您提供场景中所有对象的层次结构树。
Revit files usually has this structure categories / families / types / instances , so if you parse the tree, you can easily get all objects for a given category . Revit文件通常具有这种结构类别/族/类型/实例,因此如果您解析树,您可以轻松获取给定类别的所有对象。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.