El ensamblaje se debe guardar cuando la representación posicional en el subensamblaje no se ha actualizado en Inventor

Autodesk Support

8 de octubre de 2023


Productos y versiones cubiertos


Problema:

Los usuarios han informado de que el subensamblaje debe guardarse cuando el ensamblaje principal contiene un subensamblaje sin una representación posicional actualizada en Inventor.

Estado:

No se ha identificado ningún problema y el software se comporta según su diseño.

Solución:

Para actualizar todas las representaciones posicionales existentes:
  1. Abra el subensamblaje.
  2. Active cada representación posicional.
  3. Guarde el subensamblaje.
Nota:
Los pasos 2 y 3 se pueden automatizar mediante la ejecución de esta regla de iLogic en el subensamblaje.
'DISCLAIMER:
'---------------------------------
'In any case, code, templates, and snippets of this solution are of "work in progress" character.
'Neither Support article author, nor Autodesk represents that these samples are reliable, accurate, complete, or otherwise valid. 
'Accordingly, those configuration samples are provided “as is” with no warranty of any kind and you use the applications at your own risk.

'only assemblies
If ThisDoc.Document.DocumentType <> Inventor.DocumentTypeEnum.kAssemblyDocumentObject Then
	Logger.Debug ("This is not an assembly. Skip")
	Exit Sub
End If

Dim oDoc As Inventor.AssemblyDocument = ThisDoc.Document

'only assemblies with positional representations
If oDoc.ComponentDefinition.RepresentationsManager.PositionalRepresentations.Count = 1 Then
	Logger.Debug("Assembly contains just a Master Positional representation. Skip.")
	Exit Sub
End If

Dim oPosReps As Inventor.PositionalRepresentations = oDoc.ComponentDefinition.RepresentationsManager.PositionalRepresentations

'activate all PositionalRepresentations
For Each tmpPosRep As Inventor.PositionalRepresentation In oPosReps
	Logger.Debug("Activate: " & tmpPosRep.Name)
	tmpPosRep.Activate
Next

'activate Master
oPosReps.Item(1).Activate

'Save file
oDoc.Save
Logger.Debug("File saved: " & oDoc.FullFileName)

Productos:

Productos de Inventor;

ID de incidente:

37631


¿Le ha resultado útil esta información?


¿Necesita ayuda? Pregunte al Asistente de Autodesk

El Asistente puede ayudarle a encontrar respuestas o ponerle en contacto con un agente.


¿Qué nivel de soporte tiene?

Los distintos planes de suscripción ofrecen diferentes categorías de soporte. Averigüe el nivel de soporte para tu plan.

Ver niveles de soporte