Numbering Scheme in Vault 2020

<?xml encoding=”UTF-8″>By Sajith Subramanian

We’ve had several queries regarding numbering schemes, and how the methods related to numbering schemes have been shown as removed from the various services in the API help documentation.

image

The reason behind this is, in Vault 2020, Numbering Scheme methods have now been consolidated into a single Numbering Service as compared to earlier Vault versions where Files, Items and ChangeOrders each had their own implementations of Numbering service related methods.

So now, all Numbering Scheme functionality that was previously available, carries over into this new Service and can be accessed from a single Numbering Service.

For example, while migrating your earlier code to Vault 2020, the older method to fetch Numbering schemes which would be something as:

NumSchm[] schemes = connection.WebServiceManager.DocumentService.GetNumberingSchemesByType(NumSchmType.ApplicationDefault);

would now be changed to something as:

NumSchm[] schemes = connection.WebServiceManager.NumberingService.GetNumberingSchemes(EntityClassId , NumSchmType.ApplicationDefault); // pass in the appropriate entity class ID

Comments

One response to “Numbering Scheme in Vault 2020”

  1. Hello.
    I am trying to create an ilogic rule for Inventor / Vault 22, although it can also be for Inventor / Vault 23, as I am going to migrate shortly, that allows me to save an Inventor file (A90.00534.ipt) and run a numbering scheme. The new name has to be A91.######.ipt. Can anyone help me?
    Thank you very much in advance.

Leave a Reply

Discover more from Autodesk Developer Blog

Subscribe now to keep reading and get access to the full archive.

Continue reading