ComponentOccurrence.SetLevelOfDetailRepresentation Method

Parent Object: ComponentOccurrence

Description

Method that sets a level of detail representation for an assembly occurrence.

Syntax

ComponentOccurrence.SetLevelOfDetailRepresentation( Representation As String, [SkipDocumentSave] As Boolean )

Parameters

Name Type Description
Representation String String that specifies the Level of Detail Representation to set on the occurrence. The method returns a failure if a representation with this name is not found in the referenced assembly.
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. Note: 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.

This is an optional argument whose default value is False.

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.

Version

Introduced in version 11