.NET

Reply
Mentor
JamieVJohnson2
Posts: 167
Registered: ‎08-26-2010
Message 11 of 14 (130 Views)

Re: Autodesk.AutoCAD.DatabaseServices.Table random FlushGraphics error

08-02-2012 06:57 AM in reply to: Virupaksha.aithal

the three extra cells I'm getting wiped out (cleared and made empty) are the three after the last used row.  I'm curious now as to why, because it's been 3 versions of AutoCAD that have done this, and I can clearly see that it did not wipe them out on your table.  Perhaps; does this have anything to do with AutoCAD vs AutoCAD Mechanical (which I have been using since 2010)?

 

That didn't work out so well.  I ran the code without the nested transaction, and recieved the data into the table after a longer than normal pause, then the program crashed AutoCAD unexpectedly ( i may have 2 transaction commits being called).  But in this clip, you can see the 3 wiped out cells under the last row.

 

jvj

 

jvj
Mentor
JamieVJohnson2
Posts: 167
Registered: ‎08-26-2010
Message 12 of 14 (124 Views)

Re: Autodesk.AutoCAD.DatabaseServices.Table random FlushGraphics error

08-02-2012 08:12 AM in reply to: JamieVJohnson2

Took me a while of testing but here are the steps to repeat the flush graphics error (even after your code changes):

  1.  Open file with VS debugger running (probably has nothing to do with the actual error).
  2. Open a file with the table already in it and filled out.
  3. Delete the contents of the table using the select cell a3, to cell d8 method, then pressing delete.
  4. Run Fillout on the emptied out table and get this flush graphics error.  Then press OK.
  5. Notice the table is not showing, and run Regen.
  6. Notice table reappears. (font size may have changed as well, mine got shorter).
  7. Play with the flush graphics issues, by dragging the table around, deleting rows and such, watch how the system goofs up.
  8. Save and close the file.
  9. Re Open the file, table behaves ok.

Also upon further investigation I found that only the third cell of the next to last used row is cleared out. I filled all the cells' with values before I ran the routine.  In addition, I see that it does not mess with that cell if I rerun the routine on the same table, only when I run it on a freshly inserted table.

 

jvj

jvj
ADN Support Specialist
Virupaksha.aithal
Posts: 100
Registered: ‎06-15-2011
Message 13 of 14 (105 Views)

Re: Autodesk.AutoCAD.DatabaseServices.Table random FlushGraphics error

08-09-2012 01:21 AM in reply to: JamieVJohnson2

Hi

 

Sorry, I am unable to reproduce the issue on AutoCAD 2013 win7 64 bit. I followed your steps and with modified sample, I am not able to reproduce the issue. I am attaching the complete project which I am testing at my end.



Virupaksha Aithal KM
Developer Technical Services
Autodesk Developer Network

Mentor
JamieVJohnson2
Posts: 167
Registered: ‎08-26-2010
Message 14 of 14 (97 Views)

Re: Autodesk.AutoCAD.DatabaseServices.Table random FlushGraphics error

08-09-2012 07:44 AM in reply to: JamieVJohnson2

That was fun,

I got a video of your test project, crashing.  It did so first try!!  BUT, this is what I did first:

  1. Opened a file with a filled out table
  2. Added 3 rows in the middle.
  3. Deleted all the data in the data rows
  4. Used properties palette to change the text hieght of cell A3
  5. Used match cell properties to match the cell A3 to all the D data rows.
  6. Entered a 0 in cell A3
  7. Used drag fill from A3 to D3
  8. Used drag fill from D3 to D14(or so, full table)
  9. Selected cells A3 to D14
  10. Used table ribbon text alignment button to set middle center on all selected cells
  11. Started recording video.

The flush graphics error has to be related to editing the table before running this routine.

I can place the video in buzzsaw if you give me a site. (53mb zipped)

jamie.johnson@railengineer.com

jvj
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.