LevelOfDetailRepresentations.AddSubstitute Method

Parent Object: LevelOfDetailRepresentations

Description

Method that creates a new substitute LevelOfDetailRepresentation based on the input file. The newly created LevelOfDetailRepresentation is returned.

Syntax

LevelOfDetailRepresentations.AddSubstitute( FullFileName As String, [Name] As String, [SkipDocumentSave] As Boolean ) As LevelOfDetailRepresentation

Parameters

Name Type Description
FullFileName String Input string that specifies the full name of the file to create the substitute LOD with.

Name String Optional input string that specifies the name of the LOD representation to create. If not specified, Inventor assigns a name to the representation.



This is an optional argument whose default value is """".

SkipDocumentSave Boolean Optional input Boolean that indicates whether to suppress the save dialogs that appear for dirty documents that are about to be closed as a result of this action. If set to True, any edits performed on the documents needing to be closed are lost. Also, any document never saved to disk and needing to be closed is lost. The default value is False indicating that the user will be prompted to save documents about to be closed.

This is an optional argument whose default value is False.

Notes

If the SilentOperation property on the Application is set to True and this argument is specified to be False, the defaults in the resulting dialogs are accepted and the dialogs are suppressed. This will result in dirty documents being saved. However, if the dirty documents include any documents that have never been saved to disk, the method will return a failure in this situation.

Remarks

Calling this method may result in the closing of certain documents that become unreferenced as a result of this action. However, these unreferenced documents will not be closed if this method is called within a ChangeProcessor or a Transaction. These unreferenced documents will be closed by Inventor at the next available opportunity. But if they need to be closed sooner, the Documents.CloseAll method (with a value of True for the input argument) can be used for this purpose.

Samples

Name Description
Shrink wrap substitute in assembly The following sample demonstrates the creation of a shrinkwrap substitute within an assembly.

Version

Introduced in version 2009