SaveAs Method


Save the current print setting to another print setting with the specified name.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 24.0.0.0 (24.0.0.0)

Syntax

C#
public bool SaveAs(
	string newName
)
Visual Basic
Public Function SaveAs ( _
	newName As String _
) As Boolean
Visual C++
public:
bool SaveAs(
	String^ newName
)

Parameters

newName
Type: SystemString
print setting name to be saved as.

Return Value

False if Save As operation fails, otherwise true.

Exceptions

ExceptionCondition
Autodesk.Revit.ExceptionsInvalidOperationException Thrown when the input newName already exists in current print setting list.

See Also