Announcements

Announcement: We’re aware of an issue affecting starting a new topic from category pages and creating new blog posts. New topics can still be started directly from the relevant board. Learn more here.

Splitting the numbering scheme on delimiters to use for property names

Splitting the numbering scheme on delimiters to use for property names

Kevin_DonovanATHFU
Explorer Explorer
381 Views
4 Replies
Message 1 of 5

Splitting the numbering scheme on delimiters to use for property names

Kevin_DonovanATHFU
Explorer
Explorer

Apologies, I am new to Autodesk. 

In AutoDesk vault 2025, using AutoCAD LT, I am trying to customise the datacard. My numbering scheme has a number defined with "-" as delimiters. An example number is: 039-211-CL-0001 and I want to split the number using the delimiters to display under individual property names as a property value. This is to enable it for report selection.

Kevin_DonovanATHFU_0-1767621645748.pngKevin_DonovanATHFU_0-1767621645748.png

So far, I am trying to use the Default.ps1 file on the server with the following code and, as far as I can ascertain, I have included it in the GetNewFileName function:

# Read the final number produced by DSNumSchemeCtrl
        $gen = $filename                                 
        #if ([string]::IsNullOrWhiteSpace($gen)) { return }
 
        # Split by delimiter
        $parts = $gen -split("-")                               
 
        # checks min 1 segment
        #if ($parts.Count -lt 1) { return }                                                   
 
        # Map segments -> category properties 
        $Prop["KD Plant Area"].Value = $parts[0]                                            
        $Prop["KD System Number"].Value = $parts[1]
        $Prop["KD Discipline"].Value = $parts[2]
        $Prop["KD Drawing Number "].Value = $parts[3]                                   
        $Prop["KD Rev Number"].Value = $parts[4]
 

It does nothing for me. Is there anyone who has tried to do this before that can point me in the right direction?

0 Likes
382 Views
4 Replies
Replies (4)
Message 2 of 5

Markus.Koechl
Autodesk
Autodesk

I validated your approach by changing the Default.ps1 function GetNewFileName like this:

MarkusKoechl_0-1767806244509.pngMarkusKoechl_0-1767806244509.png

So, you should be able to fill all your properties.
You wrote that you are "trying to use the Default.ps1 file on the server". I wonder what you meant by that, as Data Standard is a client extension located on your machine, running Vault Clients, in C:\ProgramData\Autodesk\Vault <version>\Extensions\DataStandard\.



Markus Koechl

Solutions Engineer PDM, Autodesk Central Europe
0 Likes
Message 3 of 5

Kevin_DonovanATHFU
Explorer
Explorer

Thank you so much for your time Markus, I have been out of office for the last few days so I only have quickly looked at your solution.

I have been implementing my changes on our development server which has vault professional 2025 installed. If I manage to get this working, does that mean it needs to be installed on the desktops of all the people who have access to vault professional (it should only be 4 or 5 but some are in the UK and I am in Ireland). I assumed vault used a front end on the desktops.

Should I be replacing _XLTN_PARTNUMBER with anything or using that syntax elsewhere to populate my properties? I can't figure out the logic - I'm not that good a programmer!!

0 Likes
Message 4 of 5

Markus.Koechl
Autodesk
Autodesk

Data Standard configurations must deploy to all clients. Best review and walk through the VDS Tutorial accessible in the Help: Vault Help | Vault Data Standard - Tutorial | Autodesk
You will need to repeat the step that I applied to the Part Number property for each of your properties.



Markus Koechl

Solutions Engineer PDM, Autodesk Central Europe
0 Likes
Message 5 of 5

Kevin_DonovanATHFU
Explorer
Explorer

Hi Markus, thanks again I will look through the training

 

Regards

 

Kev

0 Likes