System.Object
Eplan.EplApi.DataModel.AbstractDMObjectFilter
Eplan.EplApi.DataModel.ConnectionsFilter
System.Object
Eplan.EplApi.DataModel.AbstractDMObjectFilter
Eplan.EplApi.DataModel.ConnectionsFilter
public class ConnectionsFilter : AbstractDMObjectFilter
public ref class ConnectionsFilter : public AbstractDMObjectFilter
//(...) DMObjectsFinder oFinder = new DMObjectsFinder(m_oProject); FunctionsFilter oFuncFilter = new FunctionsFilter(); string strStartFunctionName = "=AP+ST1-XTR"; oFuncFilter.Name = strStartFunctionName; Function[] arrFuncs = oFinder.GetFunctions(oFuncFilter); //Assert.IsTrue(arrFuncs.Length > 0, ShowMessage("Could not find function with name: {0} !"), strStartFunctionName); Function oStartFunc = arrFuncs[0]; //Assert.AreEqual(strStartFunctionName, oStartFunc.Name, ShowMessage("Failed to get proper function !")); //now find connection for that function ConnectionsFilter oFilter = new ConnectionsFilter(); oFilter.Function = oStartFunc; //is it start function or end function, does it occur with both ? //get connections Connection[] arrConnections = oFinder.GetConnections(oFilter); //(...)
MultiLangString mlsTestValue = new MultiLangString(); mlsTestValue.AddString(ISOCode.Language.L_de_DE, "Test043c"); string strPropertyIdentyfingName = "Page.Test043c"; UserDefinedPropertyDefinition oUDPD = UserDefinedPropertyDefinition.Create(m_oProject, strPropertyIdentyfingName, UserDefinedPropertyDefinition.Enums.ClientType.Page); //set test property Page oPage = m_oProject.Pages[0]; oPage.Properties[strPropertyIdentyfingName] = mlsTestValue; //search page with property value DMObjectsFinder oFinder = new DMObjectsFinder(m_oProject); PagesFilter oPagesFilter = new PagesFilter(); PagePropertyList oPagePropertyList = new PagePropertyList(); AnyPropertyId oAnyPropertyId = new AnyPropertyId(m_oProject, strPropertyIdentyfingName); oPagePropertyList[oAnyPropertyId] = mlsTestValue; oPagesFilter.SetFilteredPropertyList(oPagePropertyList); Page[] arrPages1 = oFinder.GetPages(oPagesFilter);
Name | Description | |
---|---|---|
ConnectionsFilter Constructor | Overloaded. |
Name | Description | |
---|---|---|
Function | Sets the Function that Connections matching the filter must have as the start or the end function. |
Name | Description | |
---|---|---|
Dispose() | Destructor for deterministic finalization of ConnectionsFilter object. (Inherited from Eplan.EplApi.DataModel.AbstractDMObjectFilter) | |
ResetFilter | Overridden. Resets the filter. Filter matches all Connections then. | |
SetFilteredPropertyList | Sets the ConnectionPropertyList that Connections matching the filter must have. |