Launching explorer from code

Technical discussions
Post Reply
Ibi
Posts: 19
Joined: Mon Jul 29, 2013 12:44 am

Launching explorer from code

Post by Ibi »

Hi
I have a specific question, I need to get explorer running without using the context menu. Is there an easy way of doing this?
I will appreciate your help
Kind regards
ibi

nickz
Site Admin
Posts: 236
Joined: Fri Jul 26, 2013 3:58 am

Re: Launching explorer from code

Post by nickz »

Hi Ibi
Yes:
http://www.dynoinsight.com/Help/Interfa ... chExplorer
It was added in v4.3 I think.
C# MiniCAD has an example:
KernelCAD_4_3\Samples\NET\C#\MiniCAD\MiniCADForm.cs
private void OnModelExplorer(object sender, EventArgs e)
{
IView iView = (IView)axKernCADnet1.GetView();
IGlobalAPI_KC iApi = (IGlobalAPI_KC)iView;
iApi.LaunchExplorer(m_iModel, iView);
}

C++:
void MiniCADDlg::OnToolsModelexplorer()
{
IView* iView = (IView*)m_ctrlCAD.GetView();
IGlobalAPI_KC* iApi = NULL;
iView->QueryInterface(IID_IGlobalAPI_KC, (void**)&iApi); CH(iApi);
iApi->LaunchExplorer(m_pIModel, iView);
}
Regards

Post Reply