Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TugboatEng 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
Joined
Apr 9, 2004
Messages
2
Location
US
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!!
 
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

Back
Top