Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
JaneFan
in reply to: Olsndot

Hey @Olsndot ,

 

Editing a sub occurrence in API can be coded like this. Code need be adjusted as your need.

Sub EDIT_COMPONENT()

Dim oAsmDoc As AssemblyDocument
Set oAsmDoc = ThisApplication.ActiveDocument

Dim oAsmCompDef As ComponentDefinition
Set oAsmCompDef = oAsmDoc.ComponentDefinition

Dim oOcc As ComponentOccurrence
Set oOcc = oAsmCompDef.Occurrences.Item(1).SubOccurrences(1)

oOcc.Edit
End Sub




Jane Fan
Inventor QA Engineer