Using Global Form Button to 'Save As Step File' and 'Close' the .ipt file

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have an external rule that saves my .ipt's as a .stp file and then closes the file. When I run the rule from the "External rules" tab of the iLogic browser, it works as intended.
I have a Global Form that I use that has buttons for various shortcuts like this and one of the buttons is tied to this rule. When I execute the rule from the form button, it saves the stp file, but does not close the ipt file. My suspicion is this is because the form remains open after the button click. But since it's an external rule, I don't have the settings available to "close after click" in the form settings.
Here's my code below, is there code I can add to force close the Global Form when the button is clicked? Which might then allow the close doc command to execute..
ThisDoc.Document.SaveAs(ThisDoc.ChangeExtension(".stp"), True) ThisDoc.Document.Close(True)