Why does the apprentice filesaveas not update iproperties part number?

Why does the apprentice filesaveas not update iproperties part number?

hozz__
Enthusiast Enthusiast
379 Views
3 Replies
Message 1 of 4

Why does the apprentice filesaveas not update iproperties part number?

hozz__
Enthusiast
Enthusiast

In inventor via the UI it does this, but apparently consistency isn't important

0 Likes
380 Views
3 Replies
Replies (3)
Message 2 of 4

chandra.shekar.g
Autodesk Support
Autodesk Support

@hozz__,

 

If you're using Apprentice to access the document properties, and that's the only edit you've made to the document, you don't need to use the FileSaveAs object to save the file, but can use the FlushToFile method of the PropertySets object to save the property changes. This is much more efficient because it only writes the properties to the document and doesn't write the entire document.

 

Please note: Saving of files in Apprentice is not allowed on files that require migration (any file that has not already been migrated to the same version of the Apprentice server). The current document's NeedsMigrating property must return False before the FileSaveAs object can successfully be returned.

 

Thanks and regards,


CHANDRA SHEKAR G
Developer Advocate
Autodesk Developer Network



Message 3 of 4

hozz__
Enthusiast
Enthusiast
I fail to see how this addresses the question posed
0 Likes
Message 4 of 4

chandra.shekar.g
Autodesk Support
Autodesk Support

@hozz__,

 

FlushToFile method of the PropertySets object to save the property changes before saving file through Inventor apprentice server.

 

Thanks and regards,


CHANDRA SHEKAR G
Developer Advocate
Autodesk Developer Network



0 Likes