I am trying to add a macro to interface with a plugin we recently added for Inventor that saves the file in a format specific to another program. It is not using the 'save as' interface within Inventor, but the window that pops up when it is triggered looks just like a standard 'save as'. It also has almost nothing that talks to Inventor for using within VBA. The best I can do is mimic "pushing the macro button" that the plugin uses and enter the filename/path there.
I can get VBA to essentially 'push the button' using the following code, but nothing I have tried so far will enter text into the 'save as' box that comes up. I have to believe this is a really simple thing I'm missing, but sendkeys and just about any variation I have tried won't work. I'm guessing I need to first tell it 'what' window to send the keys to? Everything I'm finding is Excel specific and the commands/syntax don't work with Inventor.
Dim OpenXMLExporter As CommandManager
Set OpenXMLExporter = ThisApplication.CommandManager
Dim OpenXMLExporterForReals As ControlDefinition
Set OpenXMLExporterForReals = OpenXMLExporter.ControlDefinitions.Item("Autodesk:InventorFlat:ExportCmdBtn")
Call OpenXMLExporterForReals.Execute
So at this point Inventor has the 'save as' dialog box of the plugin open, but I can't get it to fill a name/path, let alone click the enter button.