Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations IDS on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Open Solidworks inside VB Form??

Status
Not open for further replies.

kayj

Mechanical
Apr 9, 2004
2
I write programs using Visual Basic and VB.Net that automate external applications such as Solidworks and Excel. Up until now I have been having my programs open instances of these external apps in their own windows. I now want to be able to start an instance of these apps inside of a windows form without having them open in their own windows outside of my program interface. Therefore my question is, Does anyone know of a form control (and) or tool that will facilitate this? Or for that matter, does anybody have any idea how I might be able to accomplish this task? Thanks for your time folks!!
 
Replies continue below

Recommended for you

Well, the GOOD news is that you can use the OLE control.

The bad news is just about everything else.

SW crashes if you use configurations
(at least it did when i tried it in in 03) and you dont have much control over the process; the functionality seems to be a bit over just embedding a document. If you have any luck with it, Id be interested to hear.
 
Do you need the session visible or just running? I'm fairly certain that you can open an invisible session of SW.

[bat]Due to illness, the part of The Tick will be played by... The Tick.[bat]
 
Look in this thread: <thread559-67023>. It discusses using the shell command to open a second SW session.

Also, look in the SW API help under SldWorks::UserControl and SldWorks::Visible

[bat]Due to illness, the part of The Tick will be played by... The Tick.[bat]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor