System.Object
Eplan.EplApi.DataModel.AbstractDMObjectFilter
Eplan.EplApi.DataModel.StorableObjectsFilter
Eplan.EplApi.DataModel.SegmentTemplatesFilter
System.Object
Eplan.EplApi.DataModel.AbstractDMObjectFilter
Eplan.EplApi.DataModel.StorableObjectsFilter
Eplan.EplApi.DataModel.SegmentTemplatesFilter
public class SegmentTemplatesFilter : StorableObjectsFilter
public ref class SegmentTemplatesFilter : public StorableObjectsFilter
DMObjectsFinder oFinder = new DMObjectsFinder(m_oTestProject); StorableObjectsFilter oFilter = new StorableObjectsFilter(); oFilter.Page = m_oTestProject.Pages[10]; StorableObject[] oSO = oFinder.GetStorableObjects(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 | |
---|---|---|
SegmentTemplatesFilter Constructor | Overloaded. |
Name | Description | |
---|---|---|
Page | Sets the Page that StorableObjects matching the filter must be placed on. (Inherited from Eplan.EplApi.DataModel.StorableObjectsFilter) |
Name | Description | |
---|---|---|
Dispose() | Destructor (Inherited from Eplan.EplApi.DataModel.AbstractDMObjectFilter) | |
ResetFilter | Overridden. Resets the filter. Filter matches all Eplan.EplApi.DataModel.Planning.SegmentTemplates then. | |
SetFilteredPropertyList | Overloaded. Sets the Eplan.EplApi.DataModel.Planning.SegmentTemplatePropertyList that Eplan.EplApi.DataModel.Planning.SegmentTemplates matching the filter must have. |