AnsweredAssumed Answered

solidworks C# vs VBA

Question asked by Alek 77 on Feb 5, 2019
Latest reply on Feb 5, 2019 by Alek 77

Hi,

Slowly learning C #. Rewrote my macro from VBA to C #. I go through the components of the assembly and read the values of custom properties.

On C #, the macro has become much slower. What could be the problem? Or should it be?

Properties of one component are read in 1.5 seconds.

I tried different options, reducing the number of calls to SolidWorks speeds up the process a bit, but only slightly.

I thought that the transition to a higher level of language and productivity would increase, and got the opposite.

Tell me who knows please

In addition, the VBA macro reads user properties for 250 components from an assembly for about 2 seconds.

Similar code in C # more than 8 minutes.

In which direction to look for a solution?

Attachments

Outcomes