AnsweredAssumed Answered

ISwAddin extremely slow

Question asked by Marco Maso on Oct 3, 2018
Latest reply on Oct 4, 2018 by Marco Maso

I created an add-in using iSwAddin as suggested in the Solidworks API docs.

 

I know that COM operations are usually slower but the add-in is painfully slow and I'm starting to think there's something wrong.

 

My add-in basically:

1. Select a plane and a surface

2. Create a new sketch containing the intersection between the plane and the surface

3. Create several new geometries (mostly offsets) based on the intersecting splines (we are talking in the order of 50-60 new sketch segments)

 

These operations require almost 3 hours..

 

I'm using the usual tricks to improve performance such as disabling the view, the controls, the tree updates and so on. Via debugging I can't see any memory problem regarding my code.

 

Is there something else I should be aware of? Thanks in advance.

Outcomes