How to improve the speed of SW selection API?
Or To avoid the SW selection API, Implementation SW DeriveSketch API?
The development process encountered efficiency issues. Need help! Thinks!
Try to use the API only selection: https://www.codestack.net/solidworks-api/document/selection/api-only-selection/
or batch selection: https://www.codestack.net/solidworks-api/document/selection/select-objects/
Thanks,
Has been used Try to use the API only selection or batch selection,
But it’s still slow.
Is there any other way?
turn off graphics update
Are you working in assembly? If so you might want to disable this option as it significantly affects the performance while selecting for large assemblies: https://www.codestack.net/solidworks-api/document/features-manager/toggle-scroll-into-view/
Thanks,
The speed of selection is greatly improved when the Scroll selected item into view is disabled,
but the speed is still not up to standard when there are too many parts.
Currently disabled:
Scroll selected item
Graphics update
FeatureTree and FeatureTreeWindow
AssemblyRebuild
Is there any other way?
Have you tried artem’s suggestions above? I.e. Bath selection and/or API-only selection
Yes, used, currently used is AddSelectionListObjects