EPLAN API 入门系列- 提高篇(How to get all connections which are not in location box)

How to get all connections which are not in location box?
for example:

ArrayList ConnArrList = new ArrayList;
SelectionSet set = new SelectionSet();
Eplan.EplApi.DataModel.Project currentProject = set.GetCurrentProject(false);
Eplan.EplApi.DataModel.Page[] selectedPages = set.GetSelectedPages();
foreach (Eplan.EplApi.DataModel.Page page in oSelectionSet.GetSelectedPages())
{
  DMObjectsFinder dmf = new DMObjectsFinder(oProject);
   ConnectionsFilter oConnF = new ConnectionsFilter();
    oConnF.Page = page;
Connection[] arrConn
= dmf.GetConnections(oConnF);    foreach (var conn in arrConn)    {     if(conn.Properties.CONNECTION_FULLLOCATION_AUTOMATIC!=conn.page.Properties.DESTINATION_LOCATION)     {       ConnArrList.Add(conn); } } }

 

posted @ 2012-12-30 21:41  AriLee  Views(1347)  Comments(0Edit  收藏  举报