Message 1 of 5
Splitting the numbering scheme on delimiters to use for property names
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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.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?
