06-14-2015
04:02 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
06-14-2015
04:02 AM
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 SubI 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!
---------------