Community
Vault Customization
Share your knowledge, ask questions, and explore popular Vault API, Data Standard, and VBA topics related to programming, creating add-ins, or working with the Vault API.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Getting all Change Orders in Vault Pro 2013

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
gary.belisle
482 Views, 2 Replies

Getting all Change Orders in Vault Pro 2013

I had a Change Order data gathering VB.net tool coded for Vault Pro 2012 that used the "GetAllChangeOrders" method. This was removed in 2013 and now we are supposed to use "FindChangeOrderBySearchConditions" method instead. This is fine, but the search only returns 100 results for me. In need ALL the change orders.

 

I do not want to bump up the search results settings for performance reasons.

 

How do I get this new method to return ALL the change orders?

---------------------------------------------------------------------
i7-4800MQ Dell Precision M6800, Win 7 Enterprise 64-bit, 16GB RAM
Autodesk Product Design Suite Ultimate 2015
Autodesk Vault Professional 2015
PLM 360
2 REPLIES 2
Message 2 of 3
minkd
in reply to: gary.belisle

When you call FindChangeOrderBySearchConditions, there is a bookmark parameter (passed by reference), and a searchStatus parameter (an out parameter). The return is the first page of results.

 

The searchStatus object tells you the total number of hits and whether the search index is up-to-date or not.

 

The bookmark parameter is used to make a subsequent call to get the next page of results. You pass back the value you got from the previous call. You can repeat making calls until you get all the results.

 

-Dave



Dave Mink
Fusion Lifecycle
Autodesk, Inc.
Message 3 of 3
gary.belisle
in reply to: minkd

That worked. Thank you.
---------------------------------------------------------------------
i7-4800MQ Dell Precision M6800, Win 7 Enterprise 64-bit, 16GB RAM
Autodesk Product Design Suite Ultimate 2015
Autodesk Vault Professional 2015
PLM 360

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report