- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello experts,
what is the best practice different numbering schemes for categories.
For example:
category "Engineering" - number schemes "E1" + "E2" + "E3"
category "Engineering2" - number schemes "E3"+"E4"
category "Office" - number schemes "O1" + "O2"
We uses Vault pro 2020 with Datastandard "VDS-Quickstart-2021"
I testet it with the "function GetNumSchms" in ADSK.QS.Default.
Filter the NumSchems with $allowedNumSchemes works. But what is the best practice to filter it for categories.
$allowedNumSchemes = @('Konstruktion_Auftragsbezogen','Konstruktion','Bestandskonstruktion','Freigabezeichnungen')
$_FilteredNumSchems = @()
Foreach ($numScheme in $numSchems){
if($allowedNumSchemes -contains $numScheme.Name){
$_FilteredNumSchems += $numScheme
$_FilteredNumSchems = $_FilteredNumSchems | Sort-Object -Property IsDflt -Descending
return $_FilteredNumSchems
Works at start but when not when i change the category.
if ($Prop["_Category"].Value -eq "Konstruktion"){
$allowedNumSchemes = @('Freigabezeichnungen')}
else
{$allowedNumSchemes = @('Bestandskonstruktion')}
The Prob"Beschreibung" works when i change the category, but $allowedNumSchemes dosen´t work.
$Prop["_Category"].add_PropertyChanged({
If($Prop["_Category"].Value -eq "Konstruktion")
{
$Prop["Beschreibung"].Value = "Engineering Document"
$allowedNumSchemes = @('Freigabezeichnungen')
}
Else
{
$Prop["Beschreibung"].Value = "Non-Engineering Document"
$allowedNumSchemes = @('Bestandskonstruktion')
}
})
Does anyone have any idea how to solve the problem easiest?
Roland
Solved! Go to Solution.
