Book a Demo

Author Topic: Package.Update loops through Element Collection!  (Read 3043 times)

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Package.Update loops through Element Collection!
« on: April 15, 2011, 01:17:33 pm »
One of my Add-Ins creates Neighborhood Diagrams - for a given element find the nearest connected elements in the model.

When I run the Add-In to create/update the diagram, Even though I have the UI updating turned off, EA will go through a list of elements, displaying them on the status bar in the Status Bar compartment where it displays the selected browser element.

When you do a Package.Update (having added an Element), the list on the status bar is "spun through".  

Now normally, this isn't a major problem because the list is small.

However, I've just reverse engineered a package with over 1200 elements.  So it takes about 5 mins to run though the list (during which time EA is blocked)!

This looping shouldn't happen on a Package.Update and certainly NOT if the UI Update has been disabled!

Reported,
Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Package.Update loops through Element Collectio
« Reply #1 on: April 15, 2011, 06:06:31 pm »
As you know EA often does not behave as it's supposed to be. The same goes for the Enable Cache which also seems to do nothing like the Disable Update. Report a bug and wait....

q.