Solid Edge Draft Type Library
Close Method
Solid Edge Draft Type Library > DraftDocument Object : Close Method
If there are no changes to the document, this argument is ignored. If there are changes to the document and other associated windows are open, this argument is ignored, and the user is prompted for saving the changes.
Specifies the file name to which changes are to be saved. If this argument is not specified and the document has changed, the GetSaveAsFilename method is called.
If the referenced object does not need to be routed to the next recipient (that is, it has no routing slip or has already been routed), this argument is ignored. Otherwise, if this argument is True, the document is routed to all recipients or to the next recipient based on the setting in the routing slip. If this argument is False, the document is not routed. If the argument is omitted, a dialog box is displayed.
Description
Closes the referenced object.
Syntax
Visual Basic
Public Sub Close( _
   Optional ByVal SaveChanges As Variant, _
   Optional ByVal FileName As Variant, _
   Optional ByVal RouteWorkbook As Variant _
) 
Parameters
SaveChanges
If there are no changes to the document, this argument is ignored. If there are changes to the document and other associated windows are open, this argument is ignored, and the user is prompted for saving the changes.
FileName
Specifies the file name to which changes are to be saved. If this argument is not specified and the document has changed, the GetSaveAsFilename method is called.
RouteWorkbook
If the referenced object does not need to be routed to the next recipient (that is, it has no routing slip or has already been routed), this argument is ignored. Otherwise, if this argument is True, the document is routed to all recipients or to the next recipient based on the setting in the routing slip. If this argument is False, the document is not routed. If the argument is omitted, a dialog box is displayed.
Remarks
This method closes the specified document and removes the object from the collection. Any associated windows are also closed. The method returns True on success and False on failure.
See Also

DraftDocument Object  | DraftDocument Members