I have developed an application in Visual Basic 6.0 which performs various tasks on SolidWorks files via the API.
The main tasks being: 1) BoM analysis 2) Configuration specific custom property reading and writing 3) Opening / closing and saving of files
The functions are encapsulated in a dll file, which are then in turn called from various VB applications
I am experiencing problems with performance of the API outside of SolidWorks, i.e. the same function will run as a SolidWorks Macro in a second, but may take 20 or more seconds to perform the same task in a VB 6.0 application.
Whilst 20 seconds may not seem excessive for an assembly, my application traverses all assemblies recursively to generate complete BoMs of all assemblies, some of which may be quite complicated. If it takes 20 seconds to analyse each assembly, the performance hit can be very noticeable.
Is this normal or am I missing something?
Do you have any suggestions or guidelines for speeding up the execution of such tasks?
Any help would be much appreciated. Brian