Inventor C# api to set Inventor.Property.Value crashes Inventor for Assembly files in Vault workspace
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
We have custom addin in C# that does a SaveAs on an Inventor assembly file and sets some properties on the new file. This is crashing Inventor when Inventor is connected to a Vault workspace.
Version of Vault and Inventor we use are:
Vault server: 2023.3
Vault client: 2023.3
Inventor version: 2023.3
This code works fine in Default Inventor workspace(no Vault) and also on ipt files in a Vault workspace. But crashes on iam files in a Vault workspace.
Document doc = invApplication.ActiveDocument
doc.SaveAs(newFilePath, false);
PropertySet designTrackingProperties = doc.PropertySets["Design Tracking Properties"];
Property propNumber = designTrackingProperties.get_ItemByPropId((int)PropertiesForDesignTrackingPropertiesEnum.kPartNumberDesignTrackingProperties);
propNumber .Value = "Test-PartNumber";