foreach(Element elem in selections.Elements)无法实现
程序员文章站
2022-12-15 17:16:51
因为版本问题 原:foreach(Element elem in selections.Elements){ } 现: ElementSet selections = new ElementSet(); foreach (ElementId elementId in commandData.Appl ......
因为版本问题
原:
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)
{
}
上一篇: net core + vue
下一篇: 小熊土豆,好吃,能吃出熊的味道,