12-22-2022
05:19 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
12-22-2022
05:19 AM
Can you try if the below VBA code workaround works for you?
____________________________________
Sub InsertToPrestention()
Dim oCM As CommandManager
Set oCM = ThisApplication.CommandManager
oCM.ClearPrivateEvents
Dim sFile As String
sFile = "C:\Temp\Assembly1.iam"
oCM.PostPrivateEvent kFileNameEvent, sFile
Dim oDoc As PresentationDocument
Set oDoc = ThisApplication.Documents.Add(kPresentationDocumentObject)
End Sub
____________________________________
If this solves the problem please click ACCEPT SOLUTION so other people can find it easily.

Rocky Zhang
Inventor API PD
Manufacturing Solutions
Autodesk, Inc.