How to improve the speed of SW selection API

Programming and macros
ZSJ
Posts: 14
Joined: Wed Feb 16, 2022 9:29 pm
Answers: 0
x 4
x 7

How to improve the speed of SW selection API

Unread post by ZSJ »

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!
artem
Posts: 26
Joined: Thu Mar 18, 2021 1:31 pm
Answers: 3
x 9
x 73

Re: How to improve the speed of SW selection API

Unread post by artem »

Thanks,
Artem
xarial.com - making your CAD better
codestack.net - SOLIDWORKS API macros and tutorials
ZSJ
Posts: 14
Joined: Wed Feb 16, 2022 9:29 pm
Answers: 0
x 4
x 7

Re: How to improve the speed of SW selection API

Unread post by ZSJ »

Thanks,
Has been used Try to use the API only selection or batch selection,
But it's still slow.
Is there any other way?
User avatar
josh
Posts: 265
Joined: Thu Mar 11, 2021 1:05 pm
Answers: 11
x 19
x 456

Re: How to improve the speed of SW selection API

Unread post by josh »

turn off graphics update
artem
Posts: 26
Joined: Thu Mar 18, 2021 1:31 pm
Answers: 3
x 9
x 73

Re: How to improve the speed of SW selection API

Unread post by artem »

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
ZSJ
Posts: 14
Joined: Wed Feb 16, 2022 9:29 pm
Answers: 0
x 4
x 7

Re: How to improve the speed of SW selection API

Unread post by ZSJ »

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 Schukar
Posts: 98
Joined: Thu Mar 18, 2021 11:19 am
Answers: 1
Location: St. Louis, MO
x 289
x 56

Re: How to improve the speed of SW selection API

Unread post by Austin Schukar »

z1282407454 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?
Have you tried artem's suggestions above? I.e. Bath selection and/or API-only selection
Austin
ZSJ
Posts: 14
Joined: Wed Feb 16, 2022 9:29 pm
Answers: 0
x 4
x 7

Re: How to improve the speed of SW selection API

Unread post by ZSJ »

Austin 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
Yes, used, currently used is AddSelectionListObjects
Post Reply