WPDM API - Search for "IsNotEmpty"

Hello,

i am trying to search in the vault via API (VB.net) with the condition "IsNotEmpty". But i cant get it to work

<p>Dim con As PDMWorks.PDMWConnection </p><p>Dim Options As PDMWorks.IPDMWSearchOptions </p><p>Dim results As PDMWorks.IPDMWSearchResults </p><p></p><p>con = CreateObject("PDMWorks.PDMWConnection") </p><p>con.Login("pdmwadmin", "pdmwadmin", "hmtechv") </p><p>Options = con.GetSearchOptionsObject </p><p>Options.IgnoreCase = True </p><p>Options.IgnoreLinks = False </p><p>Options.SearchConfigSpecificProperties = False </p><p>Options.IncludeHiddenDocuments = True </p><p>Options.SearchOnlyChildrenOf = "" </p><p>Options.SearchCriteria.AddCriteria(PDMWorks.PDMWAndOr.pdmwAnd, PDMWorks.PDMWPropertyType.pdmwNumber, "", PDMWorks.PDMWConditionType.pdmwIsNotEmpty, "") </p><p>results = con.Search(Options) </p><p></p><p>MsgBox(results.Count) </p><p>con.Logout()</p>

I get no result.

If i change the search criteria to (with Value = "-")

<p>Options.SearchCriteria.AddCriteria(PDMWorks.PDMWAndOr.pdmwAnd, PDMWorks.PDMWPropertyType.pdmwNumber, "", PDMWorks.PDMWConditionType.pdmwIsNotEmpty, "-")</p>

I get after a long search (much longer than in SolidWorks...about 5 minutes) a result of many documents (much more than in SolidWorks). The results contains also dicuments with empty Number property.

What i am doing wrong?

Regards

SolidworksApi macros