iv_CloseAssociatedDocuments()

Synopsis

Closes all Inventor documents associated with each of the files in the FileNames list argument, including the files listed, updating and saving them if needed by default. Returns True if successful.

Syntax

iv_CloseAssociatedDocuments( FileNames As List, Optional EnforceUpdate? As Boolean = True, Optional save? As Boolean = True) As Boolean
Argument Type Description
FileNames list List of files to be closed, along with all associated Inventor documents.
EnforceUpdate? boolean Optional; updates associated Inventor documents prior to closing. Default is True
save? boolean Optional; saves associated Inventor documents if needed on closing. Default is True

Example 1

Note: This closes the top level assembly document in the context of the root.
Intent >iv_closeAssociatedDocuments({iv_projectWorkspace() & "\Office Sample.iam"})
--> True