System.Object
Eplan.EplApi.HEServices.Search
System.Object
Eplan.EplApi.HEServices.Search
[DefaultMember("Setting")] public class Search
[DefaultMember("Setting")] public ref class Search
Search oSearch = new Search(); // Set settings which will influence the search result oSearch[Search.Settings.CaseSensitive] = false; oSearch[Search.Settings.Texts] = false; oSearch[Search.Settings.DeviceTag] = true; oSearch[Search.Settings.AllProperties] = false; oSearch[Search.Settings.Texts] = false; oSearch[Search.Settings.PageData] = false; oSearch[Search.Settings.ProjectData] = false; oSearch[Search.Settings.GraphicPages] = false; oSearch[Search.Settings.EvalutionPages] = false; oSearch[Search.Settings.NotPlaced] = false; oSearch[Search.Settings.LogicPages] = true; Project oProject = new ProjectManager().OpenProject("$(MD_PROJECTS)\\EPLAN_Sample_Project.elk"); //clear active search result list oSearch.ClearSearchDB(oProject); string textToFind = "EB3*"; //Search the project oSearch.Project(oProject, textToFind); //Get search results StorableObject[] arrObjects = oSearch.GetAllSearchDBEntries(oProject); //Replace text in a searched objects. string strSearchString = "EB3"; string strReplaceString = "EBCD3"; oSearch.Project(m_oProject, strSearchString); StorableObject[] arrObjects = oSearch.GetAllSearchDBEntries(m_oProject); oSearch.Replace(arrObjects, strSearchString, strReplaceString);
Name | Description | |
---|---|---|
Search Constructor | Default constructor |
Name | Description | |
---|---|---|
AddRelatedObjectsToGotoDB | Adds cross-referenced objects to the goto results list. | |
AddToSearchDB | Overloaded. Adds objects to the currently active list of search results. | |
ClearSearchDB | Clears the list of search results. | |
Dispose | Destructor | |
GetAllSearchDBEntries | \Returns all objects in a list of search results. | |
GetSearchDBEntries | Returns objects from a list of search results. | |
Page | Overloaded. Searches on the specified page for a search string. The search settings will influence the result. The found object will be written to the active list of results. | |
Project | Overloaded. Searches on the specified project for a search string. The search settings will influence the result. The found object will be written to the active list of results. | |
Replace | Replaces text in a searched objects. |