0
我试图通过RevitAPI访问特定资产所包含的数据。例如,我想操纵身份数据并获取并最终为制造商,模型,成本和URL设置一些数据。 我怎样才能达到相同的其他资产?Revit API:材料资产参数获取并设置
我读的材料:
public IEnumerable<Material> GetMaterials(Document doc)
{
collector = new FilteredElementCollector(doc);
return collector.OfClass(typeof(Material)).OfType<Material>();
}
然后参数:
public IEnumerable<Parameter> GetMaterialParameters(Material material)
{
List<Parameter> parameters = new List<Parameter>();
var localParameters = material.ParametersMap;
foreach (Parameter localParameter in localParameters)
{
parameters.Add(localParameter);
}
return parameters;
}
,但仍找不到在哪里这些属性暴露。
谢谢。但我找不到任何样品。有没有? –