APIState.CurrentSelection.SelectAll();//将元素全部选中
APIState.OverrideTransparency(APIState.CurrentSelection, 0.9);//将全部元素设置为0.9透明
APIState.CurrentSelection.SelectNone();//取消全部选中
APIState.CurrentSelection.Paths().Add(path);//将path对应的元素设置为选中
APIState.OverrideTransparency(APIState.CurrentSelection, 0);//将选中的元素的透明度设置为0
APIState.ZoomInCurViewOnCurSel();//对元素进行缩放
//在执行上述代码之前需要将视角先设置为主视图