<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Custom object numbering scheme in Vault Customization Forum</title>
    <link>https://forums.autodesk.com/t5/vault-customization-forum/custom-object-numbering-scheme/m-p/12916336#M8770</link>
    <description>&lt;P&gt;Hi &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/533605"&gt;@J_Dumont&lt;/a&gt;&amp;nbsp;, you must use a file numbering scheme type for folders and custom objects. Does your Vault have an assignment rule for the custom object category? If the category is not set on creation, the name mapping will not initialize. Please follow the steps documented in VDS Tutorial Chapter 06; Step 9 instructs how to configure the mapping.&lt;/P&gt;</description>
    <pubDate>Wed, 24 Jul 2024 07:04:53 GMT</pubDate>
    <dc:creator>Markus.Koechl</dc:creator>
    <dc:date>2024-07-24T07:04:53Z</dc:date>
    <item>
      <title>Custom object numbering scheme</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/custom-object-numbering-scheme/m-p/5984493#M8761</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am looking for a solution how to create new custom object with generated name using custom numbering scheme e.g. custom object is&amp;nbsp;named REQUEST with number REQ-00001&lt;/P&gt;&lt;P&gt;Any idea ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jan 2016 13:30:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/custom-object-numbering-scheme/m-p/5984493#M8761</guid>
      <dc:creator>martin_obadalek</dc:creator>
      <dc:date>2016-01-12T13:30:21Z</dc:date>
    </item>
    <item>
      <title>Re: Custom object numbering scheme</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/custom-object-numbering-scheme/m-p/5985925#M8762</link>
      <description>&lt;P&gt;Hi Martin,&lt;/P&gt;
&lt;P&gt;you can use a file numbering scheme to number COs as well.&lt;/P&gt;
&lt;P&gt;In this example the name of the numbering scheme simply equals the category of the object. With that you can even have separate numbering schemes for different COs, e.g. Request, Classes, etc...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2 Steps are required: 1) filter available numering schemes according your category and 2) use this scheme to create the number&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1) filter&amp;nbsp;&lt;/P&gt;
&lt;P&gt;function GetNumSchms {&lt;/P&gt;
&lt;P&gt;..... add the lines to the default function.... after the $list is filled:&lt;/P&gt;
&lt;P&gt;#Filter list or share it, according required dialog/category=numschm type&lt;BR /&gt; $mWindowName = $dsWindow.Name&lt;BR /&gt; switch($mWindowName)&lt;BR /&gt; {&lt;BR /&gt; "FileWindow"&lt;BR /&gt; {&lt;BR /&gt; $Global:NumSchmsList = $list&lt;BR /&gt; }&lt;/P&gt;
&lt;P&gt;"FolderWindow" &lt;BR /&gt; {&lt;BR /&gt; $Global:NumSchmsList = $list &lt;BR /&gt; }&lt;/P&gt;
&lt;P&gt;"CustomObjectWindow"&lt;BR /&gt; {&lt;BR /&gt; $mCat = $dsWindow.FindName("Categories").SelectedValue.Name&lt;BR /&gt; $list = $list |? { $_.Name -eq $mCat}&lt;BR /&gt; $dsWindow.FindName("NumSchms").SelectedIndex = 0&lt;BR /&gt; }&lt;/P&gt;
&lt;P&gt;default&lt;BR /&gt; {&lt;BR /&gt; #$list = $list |? { $_ -eq $UIString["MSDCE_Num03"]} &lt;BR /&gt; $dsWindow.FindName("NumSchms").SelectedIndex = 0&lt;BR /&gt; }&lt;BR /&gt; }&lt;BR /&gt; return $list&lt;BR /&gt; }&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2) Create new name - if numbering scheme exists, it will be used, if not - just use the title as name&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;function GetNewCustomObjectName {&lt;/P&gt;
&lt;P&gt;$dsDiag.Trace("--GetNewObjectName Default=all categories---")&lt;BR /&gt; IF($dsWindow.Findname("NumSchms").SelectedIndex -eq 0) {&lt;BR /&gt; #$objectName = GenerateObjectNumber &lt;BR /&gt; $Prop["_XLTN_IDENTNUMBER"].Value = GenerateObjectNumber #fill the (readonly) field&lt;BR /&gt; }&lt;/P&gt;
&lt;P&gt;$objectName = $dsWindow.FindName("txtName").Text&lt;BR /&gt; $dsDiag.Trace("--- txtName returns $objectName ") &lt;BR /&gt; IF ($objectName -eq "") { &lt;BR /&gt; $objectName = $Prop["_XLTN_TITLE"].Value&lt;BR /&gt; $dsDiag.Trace("--- Title gets the new object name") &lt;BR /&gt; }&lt;/P&gt;
&lt;P&gt;$dsDiag.Trace("--- GetNewCustomObjectName returns $objectName") &lt;BR /&gt; return $objectName&lt;BR /&gt; }&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We are sharing a full featured example environment "Vault 2016 Quickstart" with our channel partners/resellers. Let me know, in case you don't get access to it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Markus&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jan 2016 07:25:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/custom-object-numbering-scheme/m-p/5985925#M8762</guid>
      <dc:creator>Markus.Koechl</dc:creator>
      <dc:date>2016-01-13T07:25:30Z</dc:date>
    </item>
    <item>
      <title>Re: Custom object numbering scheme</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/custom-object-numbering-scheme/m-p/5985931#M8763</link>
      <description>&lt;P&gt;Hi martin.obadalek,&lt;/P&gt;&lt;P&gt;I have just made a quick example by using the free tool &lt;A href="http://coolorange.com/de/apps_vault.php" target="_blank"&gt;powerVault&lt;/A&gt;, a set of commandlets for powershell:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;function Add-CustomEntity($customType, $name) {
    $entityDefId = $vault.CustomEntityService.GetAllCustomEntityDefinitions() | where { $_.DispName -eq $customType} | select -ExpandProperty "Id"
    return $vault.CustomEntityService.AddCustomEntity($entityDefId, $name)
}

function Generate-CustomEntityName($type) {
    if($type -eq "REQUEST") {
        return "REQ-00001"
    }
}

Open-VaultConnection 
$customObjectType = "REQUEST"
$name = Generate-CustomEntityName $customObjectType
Add-CustomEntity $customObjectType $name&lt;/PRE&gt;&lt;P&gt;I think there are no numbering schemes in Vault for custom entities as far as I know, therefore I added a function which "generates" a name for you. But if you want to, you should implement this one yourself I just wrote an example.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jan 2016 07:33:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/custom-object-numbering-scheme/m-p/5985931#M8763</guid>
      <dc:creator>Patrick.Gruber</dc:creator>
      <dc:date>2016-01-13T07:33:40Z</dc:date>
    </item>
    <item>
      <title>Re: Custom object numbering scheme</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/custom-object-numbering-scheme/m-p/7315990#M8764</link>
      <description>&lt;P&gt;Patrick,&lt;/P&gt;&lt;P&gt;can you modify your example, assuming a Numbering scheme exist?&lt;/P&gt;&lt;P&gt;I'm wanting to customize the CreateCustomObjects script, to add multiple Objects based on a value in the XAML file,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ie: QtytoReserve = 6&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the script would create the 1st one, then run through a for loop for the additional 5 objects.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks!&lt;/P&gt;&lt;P&gt;Kim&lt;/P&gt;</description>
      <pubDate>Mon, 21 Aug 2017 13:36:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/custom-object-numbering-scheme/m-p/7315990#M8764</guid>
      <dc:creator>kimhendrix</dc:creator>
      <dc:date>2017-08-21T13:36:51Z</dc:date>
    </item>
    <item>
      <title>Re: Custom object numbering scheme</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/custom-object-numbering-scheme/m-p/10687498#M8765</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/33301"&gt;@Markus.Koechl&lt;/a&gt;&amp;nbsp;I know it is an old post - but is it possible to do above without programming?&lt;/P&gt;</description>
      <pubDate>Thu, 14 Oct 2021 07:50:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/custom-object-numbering-scheme/m-p/10687498#M8765</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-10-14T07:50:52Z</dc:date>
    </item>
    <item>
      <title>Re: Custom object numbering scheme</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/custom-object-numbering-scheme/m-p/10687765#M8766</link>
      <description>&lt;P&gt;@Anonymous: sure, that's possible by replacing the custom object's new name with a number, retrieved from the numbering service.&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;$name = $vault.DocumentService.GenerateFileNumber(NumID, $NumGenArgs)&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 14 Oct 2021 09:58:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/custom-object-numbering-scheme/m-p/10687765#M8766</guid>
      <dc:creator>Markus.Koechl</dc:creator>
      <dc:date>2021-10-14T09:58:43Z</dc:date>
    </item>
    <item>
      <title>Re: Custom object numbering scheme</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/custom-object-numbering-scheme/m-p/12894141#M8767</link>
      <description>&lt;P&gt;Hi Markus,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Good morning.&lt;/P&gt;&lt;P&gt;Can you provide me with some more detailed info on this?&lt;/P&gt;&lt;P&gt;I want to add that the custom object uses auto-numbering.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not sure where I add the code you posted.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jul 2024 15:11:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/custom-object-numbering-scheme/m-p/12894141#M8767</guid>
      <dc:creator>J_Dumont</dc:creator>
      <dc:date>2024-07-12T15:11:44Z</dc:date>
    </item>
    <item>
      <title>Re: Custom object numbering scheme</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/custom-object-numbering-scheme/m-p/12902580#M8768</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/533605"&gt;@J_Dumont&lt;/a&gt;: Enabling auto-numbering for a custom object works out of the box if you create a numbering scheme name that matches the&amp;nbsp;custom object's category name.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2024 10:17:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/custom-object-numbering-scheme/m-p/12902580#M8768</guid>
      <dc:creator>Markus.Koechl</dc:creator>
      <dc:date>2024-07-17T10:17:09Z</dc:date>
    </item>
    <item>
      <title>Re: Custom object numbering scheme</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/custom-object-numbering-scheme/m-p/12915142#M8769</link>
      <description>&lt;P&gt;Hi Markus,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the reply.&lt;/P&gt;&lt;P&gt;I've created a numbering scheme for Files that matches the category name of the custom object, but it does not work.&lt;/P&gt;&lt;P&gt;I then deleted the scheme for files and created one for Change Orders, which also did not work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;FYI: I'm using Vault Pro 2025&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2024 17:59:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/custom-object-numbering-scheme/m-p/12915142#M8769</guid>
      <dc:creator>J_Dumont</dc:creator>
      <dc:date>2024-07-23T17:59:39Z</dc:date>
    </item>
    <item>
      <title>Re: Custom object numbering scheme</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/custom-object-numbering-scheme/m-p/12916336#M8770</link>
      <description>&lt;P&gt;Hi &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/533605"&gt;@J_Dumont&lt;/a&gt;&amp;nbsp;, you must use a file numbering scheme type for folders and custom objects. Does your Vault have an assignment rule for the custom object category? If the category is not set on creation, the name mapping will not initialize. Please follow the steps documented in VDS Tutorial Chapter 06; Step 9 instructs how to configure the mapping.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jul 2024 07:04:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/custom-object-numbering-scheme/m-p/12916336#M8770</guid>
      <dc:creator>Markus.Koechl</dc:creator>
      <dc:date>2024-07-24T07:04:53Z</dc:date>
    </item>
    <item>
      <title>Re: Custom object numbering scheme</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/custom-object-numbering-scheme/m-p/12916713#M8771</link>
      <description>&lt;P&gt;Hi Markus,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your assistance. I was able to get the auto-numbering to work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jul 2024 10:37:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/custom-object-numbering-scheme/m-p/12916713#M8771</guid>
      <dc:creator>J_Dumont</dc:creator>
      <dc:date>2024-07-24T10:37:40Z</dc:date>
    </item>
  </channel>
</rss>

