I have a smal application in visual basic 6 to opensolidworks files, and also display the components in a listbox.(EModelViewControl.ComponentName).When I start the application forthe first time , and open a assembly , all the components arelisted well in the listbox.
When I close the assembly (EModelViewControl.CloseActiveDoc ), andopen another assembly (EModelViewControl.OpenDoc ), I always getthe components from the first assembly, that I opened when I firststart the application.
I also tried it with the example from the edrawing apitoolkit(Sample1_eDrawings_Console) and here I have the sameproblem.
Is this a problem in the emodelviewer API , are is there somethingelse wrong ?
Is there a way to reset the emodelviewer without restarting it ?
In attachment there is an example. It's not the original code , butgood enough to show the problem.
Controls: Emodelview 2007 library and Windows Common Controls 6
Thanks in advanced, and thanks to all the peoply who already helpedme in the past
Bart
SolidworksApi macros






When I close the assembly (EModelViewControl.CloseActiveDoc ), andopen another assembly (EModelViewControl.OpenDoc ), I always getthe components from the first assembly, that I opened when I firststart the application.
I also tried it with the example from the edrawing apitoolkit(Sample1_eDrawings_Console) and here I have the sameproblem.
Is this a problem in the emodelviewer API , are is there somethingelse wrong ?
Is there a way to reset the emodelviewer without restarting it ?
In attachment there is an example. It's not the original code , butgood enough to show the problem.
Controls: Emodelview 2007 library and Windows Common Controls 6
Thanks in advanced, and thanks to all the peoply who already helpedme in the past
Bart
SolidworksApi macros