Message 1 of 12
open unsaved file on its own.

Not applicable
03-19-2018
03:05 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello
I have an IAM that contains various IPT parts. i would need to open them on their own, in a separate window.
This part already works and is automatically called on save.
SyntaxEditor Code Snippet
ThisApplication.Documents.Open(part.FullFileName, True)
it works, but there is a problem with files that have been newely drawed and have not been saved yet. Not saved files are beeing written to disk just after this code, so the file does not exist yet and fullfilename returns a runtime error.
How can the part be opened without the full file name? just as if i would right click -> open on the unsaved part?
thanks!