时间:2020-11-21 15:00:24 | 栏目:.NET代码 | 点击:次
与取得元素变量的内参名称类别有个BuiltInParameter
Duct duct = doc.GetElement(sel.PickObject(ObjectType.Element, "选择")) as Duct;
foreach (Parameter p in duct.Parameters)
{
if (p.Definition.Name == "高度")
{
BuiltInParameter biParam = (BuiltInParameter)p.Id.IntegerValue;
TaskDialog.Show("builtIn", biParam.ToString());
}
}
return Result.Succeeded;
}
}