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

Hi Justin,

I've make some tests with this VBA code and it work fine.

But if you convert it in Ilogic, doesn't work.

 

Sub test()
    Dim oDoc As DrawingDocument
    If ThisApplication.ActiveDocument.DocumentType = kDrawingDocumentObject Then ' TESTED ON THE DRAWINGDOCUMENT
        Set oDoc = ThisApplication.ActiveDocument
        Call oDoc.Parent.CommandManager.PostPrivateEvent(kFileNameEvent, "FULL PATH AND FILENAME.iam") 'FULL FILENAME WITH FULL PATH
        Call oDoc.Parent.CommandManager.ControlDefinitions.Item("DrawingBaseViewCmd").Execute
        Set oDoc = Nothing
    End If
End Sub

I think this is a good start for you.

 

Bregs

Rossano Praderi



--------------------------------------
If my post answers your question, please click the "Accept as Solution"
button. This helps everyone find answers more quickly!
---------------