Returns a table array of search results.
PDMBasicSearch(Search Conditions, [Search Latest Versions Only])
Where:
Search Conditions is a table containing conditions, with a header row, where each row has 2 or 3 columns, the first of which is the variable name, the second is the value and the optional third is the operator.
Search Latest Versions Only (optional): Pass True to Search Latest Versions Only and False to Search All Versions.
Rule | Result | Meaning |
---|---|---|
PDMBasicSearch(DwLookupPDMSearch) | {"Name","FilePath","Version","State","Checked Out To","Checked Out On"; "MyPart.sldprt","C:\PDMVault\Pressure Vessel\StandardFiles","2","Checked In","",""} | Returns a table array of results. |
Variable | Value | Operator (Optional) |
---|---|---|
Customer | DriveW% | |
QuotePrice | 2499 | 125 |
The first line of the table above will return all records where the PDM Variable Customer contains the string DriveW
Using the wildcard (%) after the string will search for all records that start with DriveW
Using the wildcard (%) before the string will search for all records that end with DriveW
The Operator column draws on the Enum data supplied by SOLIDWORKS.
Please see SOLIDWORKS PDM Professional API Help for up to date information regarding the available Enums.
For reference the available Enums are listed below:
Operator | Member | Enum |
---|---|---|
Date Equal To | EdmVarOp_DateEqualTo | 130 |
Date Greater Than | EdmVarOp_DateGreaterThan | 133 |
Date Greater Than Or Equal To | EdmVarOp_DateGreaterThanOrEqualTo | 135 |
Date Less Than | EdmVarOp_DateLessThan | 132 |
Date Less Than Or Equal To | EdmVarOp_DateLessThanOrEqualTo | 134 |
Date Not Equal To | EdmVarOp_DateNotEqualTo | 131 |
Number Equal To | EdmVarOp_NumberEqualTo | 120 |
Number Greater Than | EdmVarOp_NumberGreaterThan | 123 |
Number Greater Than Or Equal To | EdmVarOp_NumberGreaterThanOrEqualTo | 125 |
Number Less Than | EdmVarOp_NumberLessThan | 122 |
Number Less Than Or Equal To | EdmVarOp_NumberLessThanOrEqualTo | 124 |
Number Not Equal To | EdmVarOp_NumberNotEqualTo | 121 |
String Contains | EdmVarOp_StringContains | 106 |
String Does Not Contain | EdmVarOp_StringDoesNotContain | 107 |
String Equal To | EdmVarOp_StringEqualTo | 100 |
String Greater Than | EdmVarOp_StringGreaterThan | 103 |
String Greater Than Or Equal To | EdmVarOp_StringGreaterThanOrEqualTo | 105 |
String Less Than | EdmVarOp_StringLessThan | 102 |
String Less Than Or Equal To | EdmVarOp_StringLessThanOrEqualTo | 104 |
String Not Equal To | EdmVarOp_StringNotEqualTo | 101 |