Data Standards 2018.3.1 - Error on saving new part after 3.1 update
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Since updating Data Standards to 2018.3.1 we are experiencing an error when saving a new part after completing the Data Standards options. I have turned on some tracing in the dsDiag window and on completing the Data Standards window I see the following
Completed Data Standards Window
Error on clicking OK
Then on clicking OK I get the following
Error after OK
I know what the powervault error is, this is just the powervault module is not present on this test machine, but is on my profile.
I also get the below in the DataStandardInventorLog
2019-01-22 11:47:04,306 [3] ERROR dataStandard.InvAddIn.InventorNewCustomProperty - Error in InventorNewCustomProperty.Save for Property: SOCS FinishSystem.ArgumentException: The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))
at System.RuntimeType.ForwardCallToInvokeMember(String memberName, BindingFlags flags, Object target, Int32[] aWrapperTypes, MessageData& msgData)
at Inventor.PropertySet.Add(Object PropValue, Object Name, Object PropId)
at dataStandard.InvAddIn.InventorNewCustomProperty.Save()
The function being called giving this message is the following
function set_ProjectSubgroupNumField
{
try
{
$NumCtl = @()
$NumCtl = $dsWindow.DataContext.NumSchemeCtrlViewModel
#$dsDiag.Trace(" NumSchmFields[3] Name: "+ $NumCtl.NumSchmFields[3].Name)
$i = 0
$numschmField3 = $null
$numschmField3 = $NumCtl.NumSchmFields | where { $_.Name -eq "Project Subgroup" }
#$dsDiag.Trace(" Project Subgroup Field Value: "+ $numschmField3.Value)
$numschmField3.Value = $Prop["Project Subgroup"].Value
#$dsDiag.Trace(" Project Subgroup Field Value After: "+ $numschmField3.Value)
$NumCtl.NumSchmFields.RemoveAt(3)
$NumCtl.NumSchmFields.Insert(3,$numschmField3)
}
catch
{
[System.Windows.MessageBox]::Show($error,"set_ProjectSubgroupNumField Error (Inventor Window)")
}
}
Can anyone help?
Many thanks
Nathan Poulton