Autodesk.Revit.DB.AssemblyMemberDifferentParameters
是 Revit API 中的一个类,代表了构件在组装中的不同参数。
ElementId
ElementId
ElementId.InvalidElementId
。Transform
类型:AssemblyVisibility
描述:组装中构件的可见性。默认值为 AssemblyVisibility.Visible
。
//获取组装中构件的不同参数
IEnumerable<AssemblyMemberDifferentParameters> assemblyMembers = assemblyView.GetMemberDifferentParameters(componentIds);
//遍历组装中构件的不同参数
foreach (AssemblyMemberDifferentParameters member in assemblyMembers)
{
//获取构件 ID
ElementId componentId = member.ComponentId;
//获取出现次数 ID
ElementId occurrenceId = member.OccurrenceId;
//获取构件的变换
Transform transformation = member.Transformation;
//获取构件的可见性
AssemblyVisibility visibility = member.Visibility;
}