Message 1 of 4
apprentice change display name / browser name
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I'm trying to change iproperties and display/browser name of part or assembly (the one showing in model browser) using apprentice. Iproperties working fine but I can't change display name. Here's my code:
Dim apprentice As Inventor.ApprenticeServerComponent
apprentice = New Inventor.ApprenticeServerComponent
Dim apprenticeDoc As Inventor.ApprenticeServerDocument = Nothing
apprenticeDoc = apprentice.Open(FILE)
apprenticeDoc.PropertySets.Item("Inventor Summary Information").Item("Subject").Value = "value1"
apprenticeDoc.PropertySets.Item("Design Tracking Properties").Item("Part Number").Value = "value2"
apprenticeDoc.PropertySets.FlushToFile()
apprenticeDoc.DisplayName = "value3"
Dim oFileSaveAs As FileSaveAs
oFileSaveAs = apprentice.FileSaveAs
oFileSaveAs.AddFileToSave(apprenticeDoc, apprenticeDoc.FullFileName)
oFileSaveAs.ExecuteSave()