Objects disappear from view when applying overrule

Objects disappear from view when applying overrule

TroyAdams73
Observer Observer
281 Views
0 Replies
Message 1 of 1

Objects disappear from view when applying overrule

TroyAdams73
Observer
Observer

I am using overrules for a window glass application.  The daylight opening is a polyline.  I am using a drawable overrule for that polyline to make it display as daylight opening + glass bite size on each edge, thus that when the daylight opening is 24x48 and the bite size is 1/2, then the displayed polyline will be 25x49.  It also adds text that shows the glass size and if the text is outside the border of the glass it will also include a leader line to the center of the glass.  There is also a grip overrule that deletes the grips from each vertex of the polyline and adds a grip at the center of the text.  This allows the edge of the polyline to still be stretched to change the daylight opening size and to allow the text to be moved as needed (the leader will appear if necessary and always point to the center of the glass.  And lastly, I am using a snap overrule to allow the drafters to snap to the corners of the glass for dimensioning purposes.  All of this is triggered when a glass size command is run and xdata is added to each polyline so that the file can easily find them again in the future.

 

This all works beautifully about 90% of the time.  But, the behavior when it fails make no sense.  For example, I have a simple storefront with 8 pieces of glass.  When the file opens and my application sees the xdata, it automatically triggers the overrules and everything works fine.  However, occasionally, when the drawing is redrawn or regen'd, some of the glass is not displayed, usally along with other objects in the drawing that are not related to the glass.  I am using this simple file with only 8 pieces of glass to try and narrow down the issue.  It is always the first piece of glass that fails to redraw along with a titleblock block object that was added after the glass was all drawn and but before the glass size command was run.

 

I was really surprised to see this happen in a file that is as simple as mine (8 pieces of glass).  I have clients with hundreds of pieces of glass that only see this intermittently.

 

The only way to make those objects display again is to freeze/thaw their layers or to close/reopen the drawing.  The objects will also print correctly even when they do not display on the screen.  I have added error handling and logging to the overrule code to see if I can see where if goes wrong, but I can see the handle of the undrawn objects in the log along with every log point that I have added into every nook and cranny of the code so that I can verify that all points of the code are hit without hitting any exceptions.

 

Has anyone experienced this kind of weird behavior with overrules?  Any help would be appreciated.

 

 

0 Likes
282 Views
0 Replies
Replies (0)