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!
How to improve the speed of SW selection API
Re: How to improve the speed of SW selection API
Try to use the API only selection: https://www.codestack.net/solidworks-ap ... selection/
or batch selection: https://www.codestack.net/solidworks-ap ... t-objects/
or batch selection: https://www.codestack.net/solidworks-ap ... t-objects/
Thanks,
Artem
xarial.com - making your CAD better
codestack.net - SOLIDWORKS API macros and tutorials
Artem
xarial.com - making your CAD better
codestack.net - SOLIDWORKS API macros and tutorials
Re: How to improve the speed of SW selection API
Thanks,
Has been used Try to use the API only selection or batch selection,
But it's still slow.
Is there any other way?
Has been used Try to use the API only selection or batch selection,
But it's still slow.
Is there any other way?
Re: How to improve the speed of SW selection API
turn off graphics update
Re: How to improve the speed of SW selection API
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-ap ... into-view/
Thanks,
Artem
xarial.com - making your CAD better
codestack.net - SOLIDWORKS API macros and tutorials
Artem
xarial.com - making your CAD better
codestack.net - SOLIDWORKS API macros and tutorials
Re: How to improve the speed of SW selection API
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?
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?
-
- Posts: 98
- Joined: Thu Mar 18, 2021 11:19 am
- Location: St. Louis, MO
- x 288
- x 56
Re: How to improve the speed of SW selection API
Have you tried artem's suggestions above? I.e. Bath selection and/or API-only selectionz1282407454 wrote: ↑Mon Feb 21, 2022 3:10 am 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?
Austin
Re: How to improve the speed of SW selection API
Yes, used, currently used is AddSelectionListObjectsAustin Schukar wrote: ↑Mon Feb 21, 2022 11:05 am Have you tried artem's suggestions above? I.e. Bath selection and/or API-only selection