0% found this document useful (0 votes)
81 views

Using Inventor File Dialog To Open - Save - Manufacturing DevBlog

The document discusses how to use the Inventor file dialog to open and save files. It explains that the FileDialog object must be initiated by the Inventor application. It then shows code to configure the dialog, including setting the file name and filter, and displaying it to open or save files. The post provides an example Visual Basic code to create a file dialog.

Uploaded by

VitorHugo
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
81 views

Using Inventor File Dialog To Open - Save - Manufacturing DevBlog

The document discusses how to use the Inventor file dialog to open and save files. It explains that the FileDialog object must be initiated by the Inventor application. It then shows code to configure the dialog, including setting the file name and filter, and displaying it to open or save files. The post provides an example Visual Basic code to create a file dialog.

Uploaded by

VitorHugo
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Using Inventor File Dialog to Open/Save - Manufacturing DevBlog

1 de 3

http://adndevblog.typepad.com/manufacturing/2012/08/using-inventor-...

Manufacturing DevBlog
(http://adndevblog.typepad.com
/manufacturing/)
The resource for software developers working with Design, Lifecycle and Simulation
technologies from Autodesk.

08/15/2012

Using Inventor File Dialog to Open/Save


By Augusto Goncalves (http://adndevblog.typepad.com
/manufacturing/augusto-goncalves.html)
Basically this FileDialog object must be initiated by the Inventor
Application, then we just need to configure some parameters and
finally show to save or to open.
If the MultiSelectEnabled is set to true for ShowOpen, then the
FileName property will return a string with files separated by |
character, where the String.Split method can generate the list of files.
Public Sub CreateFileDialog()
' create the file dialog
Dim oDLG As FileDialog = Nothing
m_inventorApplication.CreateFileDialog(oDLG)

' configure
oDLG.FileName = "C:\Temp\Temp.ipt"
oDLG.Filter = "Inventor Part Files (*.ipt)|*.ipt"

oDLG.ShowSave() ' to save files


oDLG.ShowOpen() ' to open files
End Sub

You might also like:


Quitting Inventor when Quit() doesn't (http://adndevblog.typepad.com
/manufacturing/2012/06/quitting-inventor-when-quit-doesnt.html)
Check if Occurrence is a Reference (http://adndevblog.typepad.com
/manufacturing/2012/07/check-if-occurrence-is-a-reference.html)
Change the Browser Node icon (http://adndevblog.typepad.com/manufacturing
/2012/08/change-the-browser-node-icon.html)
Change the diameter of a Tapped Hole (http://adndevblog.typepad.com
/manufacturing/2012/07/change-the-diameter-of-a-tapped-hole.html)
Linkwithin (http://www.linkwithin.com/learn?ref=widget)

20/01/2017 20:39

Using Inventor File Dialog to Open/Save - Manufacturing DevBlog

2 de 3

http://adndevblog.typepad.com/manufacturing/2012/08/using-inventor-...

Posted at 02:51 PM in Augusto Goncalves (http://adndevblog.typepad.com


/manufacturing/augusto-goncalves/), Inventor (http://adndevblog.typepad.com
/manufacturing/inventor/) | Permalink (http://adndevblog.typepad.com
/manufacturing/2012/08/using-inventor-file-dialog-to-opensave.html)
(http://twitter.com/share?url=https%3A%2F%2Ffanyv88.com%3A443%2Fhttp%2Fbit.ly%2FNCwMAy&
text=Using%20Inventor%20File%20Dialog%20to%20Open%2FSave)
(https://plus.google.com/share?url=http://adndevblog.typepad.com
/manufacturing/2012/08/using-inventor-file-dialog-to-opensave.html)
(http://www.facebook.com/sharer.php?u=http%3A%2F
%2Fadndevblog.typepad.com%2Fmanufacturing%2F2012%2F08%2Fusinginventor-file-dialog-to-opensave.html)

Comments
Henrik said...

How can i get the folderpicker?


Reply
10/21/2013 at 02:43 AM (http://adndevblog.typepad.com/manufacturing/2012/08
/using-inventor-file-dialog-to-opensave.html#comment6a0167607c2431970b019b002ed277970b)
Augusto Goncalves (http://profile.typepad.com
/6p0168e7e7c9dd970c) said in reply to Henrik...

Hi Henrik,
I don't believe this is available as a built-in form inside Inventor, but you can
definitely use the .NET FolderBrowsingDialog
Regards,
Augusto Goncalves
Reply
10/24/2013 at 12:59 PM (http://adndevblog.typepad.com/manufacturing/2012/08
/using-inventor-file-dialog-to-opensave.html#comment6a0167607c2431970b019b00473a1d970c)
Comment below or sign in with
Typepad (http://www.typepad.com
/sitelogin?uri=http%3A%2F
%2Fadndevblog.typepad.com%2Fmanufacturing%2F2012%2F08%2Fusinginventor-file-dialog-to-opensave.html&fp=68b990bea8fd7006bf857fe70474c93d&
view_uri=https%3A%2F%2Ffanyv88.com%3A443%2Fhttp%2Fprofile.typepad.com%2F&via=blogside&post_uri=http:
//adndevblog.typepad.com/manufacturing/2012/08/using-inventor-file-dialogto-opensave.html)
Facebook (http://www.typepad.com/sitelogin?uri=http
%3A%2F
%2Fadndevblog.typepad.com%2Fmanufacturing%2F2012%2F08%2Fusinginventor-file-dialog-to-opensave.html&fp=68b990bea8fd7006bf857fe70474c93d&
view_uri=https%3A%2F%2Ffanyv88.com%3A443%2Fhttp%2Fprofile.typepad.com%2F&via=blogside&
service=facebook&post_uri=http://adndevblog.typepad.com/manufacturing

20/01/2017 20:39

Using Inventor File Dialog to Open/Save - Manufacturing DevBlog

3 de 3

/2012/08/using-inventor-file-dialog-to-opensave.html)
(http://www.typepad.com/sitelogin?uri=http%3A%2F

http://adndevblog.typepad.com/manufacturing/2012/08/using-inventor-...

Twitter

%2Fadndevblog.typepad.com%2Fmanufacturing%2F2012%2F08%2Fusinginventor-file-dialog-to-opensave.html&fp=68b990bea8fd7006bf857fe70474c93d&
view_uri=https%3A%2F%2Ffanyv88.com%3A443%2Fhttp%2Fprofile.typepad.com%2F&via=blogside&
service=twitter&post_uri=http://adndevblog.typepad.com/manufacturing
/2012/08/using-inventor-file-dialog-to-opensave.html)
Google+
(http://www.typepad.com/sitelogin?uri=http%3A%2F
%2Fadndevblog.typepad.com%2Fmanufacturing%2F2012%2F08%2Fusinginventor-file-dialog-to-opensave.html&fp=68b990bea8fd7006bf857fe70474c93d&
view_uri=https%3A%2F%2Ffanyv88.com%3A443%2Fhttp%2Fprofile.typepad.com%2F&via=blogside&service=gplus&
post_uri=http://adndevblog.typepad.com/manufacturing/2012/08/usinginventor-file-dialog-to-opensave.html) and more... (http://www.typepad.com
/sitelogin?uri=http%3A%2F
%2Fadndevblog.typepad.com%2Fmanufacturing%2F2012%2F08%2Fusinginventor-file-dialog-to-opensave.html&fp=68b990bea8fd7006bf857fe70474c93d&
view_uri=https%3A%2F%2Ffanyv88.com%3A443%2Fhttp%2Fprofile.typepad.com%2F&via=blogside&
service=openid&post_uri=http://adndevblog.typepad.com/manufacturing
/2012/08/using-inventor-file-dialog-to-opensave.html)

(URLs automatically linked.)

Email address is not displayed with comment.

(http://www.typepad.com/)
Manufacturing DevBlog (http://adndevblog.typepad.com/manufacturing/)

20/01/2017 20:39

You might also like