[MSCE C#]知道NamedGroup的name,如何用代码将其高亮显示?

如题,知道命名组的名称,我用如下代码选中无效果,是什么原因呢?

SelectionSetManager.EmptyAll();
string groupName = (string)e.Node.Tag;// NamedGroup Name
NamedGroupCollection groupCollection = new NamedGroupCollection(Session.Instance.GetActiveDgnModel());
NamedGroup group = groupCollection.FindByName(groupName);
Element element = group.GetElement();
SelectionSetManager.AddElement(element, element.DgnModelRef);

Parents Reply Children
No Data