标签:comm 问题 for man active selection ids foreach and
因为版本问题
原:
foreach(Element elem in selections.Elements)
{
}
现:
ElementSet selections = new ElementSet();
foreach (ElementId elementId in commandData.Application.ActiveUIDocument.Selection.GetElementIds())
{
selections.Insert(commandData.Application.ActiveUIDocument.Document.GetElement(elementId));
}
foreach (Element elem in selections)
{
}
foreach(Element elem in selections.Elements)无法实现
标签:comm 问题 for man active selection ids foreach and
原文地址:https://www.cnblogs.com/siy-cst/p/10129722.html