SaveToFile method

Saves the current document content to an external file or Local Workspace file.

Syntax

SaveToFile([FileName as String])
Parameters
Name Description

FileName

If specified, the file is saved in the specified location outside the vault. If absent, the file is saved in the Local Workspace with its current name.

Return Value

The path of the file that was saved.

Remarks

Use this method to temporarily save the content of a non-hybrid part document before creating a new hybrid part and then loading the file created by this method as the new part's content.