Model.SaveFile (String, Drawings, FileSerializer) Method

Saves the current scene synchronously on disk, including entities and all the master collections (layers, blocks, etc.)
Public Overridable Sub SaveFile( _ 
ByVal fileName As String, _ 
Optional ByVal drawings As Drawings = null, _ 
Optional ByVal fileSerializer As FileSerializer = null _ 
)
This language is not supported or no code example is available.
public virtual void SaveFile( 
string fileName
Drawings drawings = null, 
FileSerializer fileSerializer = null 
)
This language is not supported or no code example is available.

Parameters

fileName
string

File name.

drawings
Drawings

The drawings control. Can be null/Nothing.

fileSerializer
FileSerializer

The FileSerializer. Can be null/Nothing.

Remarks
 

This command is based on Eyeshot proprietary file format. If the fileSerializer param is null, it skips some particular Autodesk properties like XData and your custom entities. If you want to run the operation asynchronously, use the WriteFile class in conjunction with Environment.StartWork method.

.NET Framework

Supported in: 4.5, 4.6, 4.7

In this article

Definition