System.Object
Eplan.EplApi.DataModel.AbstractDMObjectFilter
Eplan.EplApi.DataModel.StorableObjectsFilter
Eplan.EplApi.DataModel.PlacementsFilter
Eplan.EplApi.DataModel.InterruptionPointsFilter
System.Object
Eplan.EplApi.DataModel.AbstractDMObjectFilter
Eplan.EplApi.DataModel.StorableObjectsFilter
Eplan.EplApi.DataModel.PlacementsFilter
Eplan.EplApi.DataModel.InterruptionPointsFilter
public class InterruptionPointsFilter : PlacementsFilter
public ref class InterruptionPointsFilter : public PlacementsFilter
DMObjectsFinder oFinder = new DMObjectsFinder(m_oTestProject); InterruptionPointsFilter oIPFilter = new InterruptionPointsFilter(); oIPFilter.Name = "IP"; InterruptionPoint[] oIPTs = oFinder.GetInterruptionPoints(oIPFilter);
Project myProject = m_oProject; // A valid project Page myPage = myProject.Pages[0]; // A valid Page object // Define test property MultiLangString mlsTestValue = new MultiLangString(); mlsTestValue.AddString(ISOCode.Language.L_de_DE, "Test043c"); string strPropertyIdentyfingName = "Page.Test043c"; UserDefinedPropertyDefinition oUDPD = UserDefinedPropertyDefinition.Create(myProject, strPropertyIdentyfingName, UserDefinedPropertyDefinition.Enums.ClientType.Page); // Set test property on myPage myPage.Properties[strPropertyIdentyfingName] = mlsTestValue; // Search page with property value DMObjectsFinder objFinder = new DMObjectsFinder(myProject); PagesFilter pagesFilter = new PagesFilter(); PagePropertyList pagePropertyList = new PagePropertyList(); AnyPropertyId anyPropertyId = new AnyPropertyId(myProject, strPropertyIdentyfingName); pagePropertyList[anyPropertyId] = mlsTestValue; pagesFilter.SetFilteredPropertyList(pagePropertyList); Page[] arrPages1 = objFinder.GetPages(pagesFilter);
Name | Description | |
---|---|---|
InterruptionPointsFilter Constructor | Overloaded. |
Name | Description | |
---|---|---|
ExactNameMatching | Sets if the filtered function, when is filtered by name, should be matched exactly, it means that if searched name is only its name' prefix, it is not matching to the filter. Dafault this property is false . | |
Name | Returns the name that was set to this filter. | |
Page | Overridden. Sets the Page that StorableObjects matching the filter must be placed on. |
Name | Description | |
---|---|---|
Dispose | (Inherited from Eplan.EplApi.DataModel.AbstractDMObjectFilter) | |
ResetFilter | Overridden. Resets the filter. Filter matches all StorableObjects then. | |
SetFilteredPropertyList | Overloaded. Sets the InterruptionPointPropertyList that InterruptionPoints matching the filter must have. |