Function CreateSearch2() As IEdmSearch5
IEdmSearch5 CreateSearch2()
IEdmSearch5^ CreateSearch2();
This method creates a search object that allows you to search files and folders using multi-variable conditions, logical operators, and special search syntax. Once this search object is instantiated, special search syntax is allowed in all IEdmSearch* properties and method parameters. (See Search Syntax.)
To perform a search:
Cast the returned IEdmSearch5 to IEdmSearch9.
Add a single variable search condition using IEdmSearch8::AddVariable2. The new search allows you to specify the poValue parameter using special search syntax and eliminates the need to specify the lEdmVarOp parameter.
Add a multi-variable search condition using IEdmSearch9::AddMultiVariableCondition. Special search syntax applies.
Use the special search syntax in IEdmSearch5::FileName, IEdmSearch5::VersionComment, IEdmSearch5::State, and IEdmSearch6::SetToken.
Call IEdmSearch5::GetFirstResult. If no results are returned, either nothing was found or there were search syntax errors.
If step 5 returns no results, then see if there are search syntax errors by calling IEdmSearch9::GetSyntaxErrors. (Note: no syntax errors are reported unless advanced specifiers were placed before each search syntax.)
If step 5 returns results, call IEdmSearch5::GetNextResult repeatedly to get further results.
C++ users must release the returned pointer, IEdmSearch5.
Return codes:
Provide feedback on this topic
SOLIDWORKS welcomes your feedback concerning the presentation, accuracy, and thoroughness of the documentation. Use the form below to send your comments and suggestions about this topic directly to our documentation team. The documentation team cannot answer technical support questions. Click here for information about technical support.
* Required
Thank you for your comments. We will contact you if we have questions regarding your feedback.
Sincerely,The SOLIDWORKS Documentation Team
Print Topic
Select the scope of content to print:
We have detected you are using a browser version older than Internet Explorer 7. For optimized display, we suggest upgrading your browser to Internet Explorer 7 or newer.
Web Help Content Version: API Help (English only) 2024 SP05 To disable Web help from within SOLIDWORKS and use local help instead, click Help > Use SOLIDWORKS Web Help. To report problems encountered with the Web help interface and search, contact your local support representative. To provide feedback on individual help topics, use the “Feedback on this topic” link on the individual topic page.