iLogic: Speed up performance of toggling Parts List row visibility

iLogic: Speed up performance of toggling Parts List row visibility

DRoam
Mentor Mentor
777 Views
3 Replies
Message 1 of 4

iLogic: Speed up performance of toggling Parts List row visibility

DRoam
Mentor
Mentor

I have a rule that process several things on each sheet of a drawing set. Every operation is really fast, except the one that toggles the visibility of a bunch of Parts List rows. Iterating through the rows themselves is very fast (if I take out the line that toggles visibility), but the visibility toggle is very slow.

 

For just one Parts List, with 45 rows, it's almost instantaneous if I comment out the visibility line (it maybe takes half a second). But when I turn it back on, it takes about 5 seconds. So about 10X longer.

 

Sometimes turning off ThisAplication.ScreenUpdatiing makes things like this faster, but it didn't help in this case. I also tried turning on Defer Updates, and that definitely helped, but it seems to slow the rule down in general when the Parts lists don't need any row visibilities toggled.

 

Any suggestions on how to speed this up?

0 Likes
Accepted solutions (1)
778 Views
3 Replies
Replies (3)
Message 2 of 4

JamieVJohnson2
Collaborator
Collaborator

Can you update toggle multiple rows at one time?  Such as when we send data to a server we can send once per row, or modify multiple rows in a single command.  Not sure if the API even supports such a call.  Perhaps a future version should.

Jamie Johnson : Owner / Sisu Lissom, LLC https://sisulissom.com/
0 Likes
Message 3 of 4

DRoam
Mentor
Mentor

I don't think it's possible at this time, but I have been thinking that may be what's necessary to speed this up. Setting row visibility seems to simply be an expensive operation, and the only way to reduce that may be to set multiple rows at the same time.

 

@MjDeck, can you comment on whether or not that's the case?

0 Likes
Message 4 of 4

DRoam
Mentor
Mentor
Accepted solution

FYI, I submitted a request for this in the Ideas forum: iLogic/API: Toggle visibility of multiple Parts List rows at once.

 

Anyone who would find it useful, please give it a vote. Thanks!

 

0 Likes