System.Object
Eplan.EplApi.DataModel.AbstractDMObjectFilter
Eplan.EplApi.DataModel.StorableObjectsFilter
Eplan.EplApi.DataModel.PlacementsFilter
Eplan.EplApi.DataModel.FunctionsFilter
System.Object
Eplan.EplApi.DataModel.AbstractDMObjectFilter
Eplan.EplApi.DataModel.StorableObjectsFilter
Eplan.EplApi.DataModel.PlacementsFilter
Eplan.EplApi.DataModel.FunctionsFilter
public class FunctionsFilter : PlacementsFilter
public ref class FunctionsFilter : public PlacementsFilter
Project proj;//a valid project Page p;//a valid page object p.Filter.Category = Function.Enums.Category.MOTOR; //now we have all functions having category 'MOTOR' placed on page p Function[] functions = p.Functions; //other way to do the same: FunctionFilter ff = new FunctionFilter(); ff.Category = Function.Enums.Category.MOTOR; ff.Page = p; DMObjectsFinder objFinder = DMObjectsFinder(proj); //now we have all functions having category 'MOTOR' placed on page p functions = objFinder.GetFunctions(ff);
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 | |
---|---|---|
FunctionsFilter Constructor | Overloaded. |
Name | Description | |
---|---|---|
ExactNameMatching | Gets/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 . | |
FunctionCategory | Gets/Sets the filter's category | |
IsPlaced | Gets/Sets if the filtered function should be placed (i.e. should be located on a valid page). | |
Name | Gets/Sets 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() | Destructor for deterministic finalization of FunctionFilter object. (Inherited from Eplan.EplApi.DataModel.AbstractDMObjectFilter) | |
ResetFilter | Overridden. Resets the filter. Filter matches all StorableObjects then. | |
SetFilteredPropertyList | Overloaded. Sets the FunctionBasePropertyList that Functions matching the filter must have. | |
SetIdentifyingPropertyList | Overloaded. Sets the FunctionBasePropertyList that identifies the matching Functions. |