public bool SetParameter(Parameter parameter, double value)
{
bool result = false;
if (null != parameter && !parameter.IsReadOnly)
{
StorageType parameterType = parameter.StorageType;
if (StorageType.Double != parameterType)
{
throw new Exception("The storagetypes of value and parameter are different!");
}
result = parameter.Set(value);
}
return result;
}
Revit检查参数储存类型
最新推荐文章于 2022-11-09 16:30:18 发布