Message 1 of 5
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I wanted to display all active number schemes, displaying the default first. That works. But I don't get the 'None' displayed.
My code:
$_FilteredNumSchems = @()
$_Default = $numSchems | Where-Object { $_.IsDflt -eq $true }
$_FilteredNumSchems += ($_Default) | Sort-Object
if ($Prop["_NumSchm"].Value) { $Prop["_NumSchm"].Value = $_FilteredNumSchems[0].Name } #note - functional dialogs don't have the property _NumSchm, therefore we conditionally set the value
$dsWindow.FindName("NumSchms").IsEnabled = $true
$dsWindow.FindName("NumSchms").SelectedValue = $_Default.Name
#add the "None" scheme to allow user interactive file name input
$noneNumSchm = New-Object 'Autodesk.Connectivity.WebServices.NumSchm'
$noneNumSchm.Name = $UIString["LBL77"] # None
$Prop["_NumSchm"].Value = $_default.Name
return $numSchems
I found a few posts but can't find the solution.
Can someone help me without completely rebuilding the CodeBlock?
I found a few posts but can't find the solution.
Can someone help me without completely rebuilding the CodeBlock?
Solved! Go to Solution.