- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello, all.
First, I am developing with the following system environment.
- ObjectARX 2011
- AutoCAD 2010
- C# with VS 2008
I am making a custom command that opens a open file dialog to prompt the user a dwg file.
And the programmatically(automatically) insert another dwg file to the opened map.
So what I tried to find a method to open a open file dialog, but couldn't find it.
So next I tried to execute "OPEN" command programmatically. The following code is what I tried...
Application.DocumentManager.MdiActiveDocument.SendStringToExecute("OPEN", false, false, false);
and changing the second parameter to true...
Application.DocumentManager.MdiActiveDocument.SendStringToExecute("OPEN", true, false, false);
When I run the custom command, nothing happends.
How could I do this?
Thank you.
Regards,
Jake
p.s. After opening a file, I want to insert ("INSERT" command) another drawing onto it. How could I achieve this?
Solved! Go to Solution.