Hi Georg,
Sorry for the delay in getting back to you.
I do not find a way to do it other than executing the copy and paste commands after the occurrences have been selected.
This should also bring along any constraints that exist between the selected occurrences.
Here is a sample code :
Dim oDoc As AssemblyDocument
Set oDoc = ThisApplication.ActiveDocument
Dim oAssyDef As AssemblyComponentDefinition
Set oAssyDef = oDoc.ComponentDefinition
Call oDoc.SelectSet.Clear
Call oDoc.SelectSet.Select(oAssyDef.Occurrences.Item(1))
Call oDoc.SelectSet.Select(oAssyDef.Occurrences.Item(6))
Dim oCopyControlDef As ControlDefinition
Set oCopyControlDef = ThisApplication.CommandManager.ControlDefinitions.Item("AppCopyCmd")
oCopyControlDef.Execute
Dim oPasteControlDef As ControlDefinition
Set oPasteControlDef = ThisApplication.CommandManager.ControlDefinitions.Item("AppPasteCmd")
oPasteControlDef.Execute
Regards,
Balaji
Balaji
Developer Technical Services
Autodesk Developer Network