.NET

Reply
Active Member
maccip
Posts: 10
Registered: ‎02-24-2006
Message 1 of 2 (229 Views)
Accepted Solution

Table cell events.

229 Views, 1 Replies
02-13-2013 03:08 AM

I need to know wich cell was modified in a Autodesk.AutoCAD.DatabaseServices object. I have Acad2012 and using .NET (C#). My problem is that SubObjectModified event is not trigger when a cell is modified. When should SubObjectModified trigger?

 

I was trying with Table's Modified evend and .HasSubSelection, but .HasSubSelection is false.

 

Is another way to know if a specific cell was modified?

 

Thanks and sory for my poor english.

Hello,

 

The table subselection could be getting set just after the Table's "OpenedForModify" event handler is called and the subselection getting cleared before the table's "Modified" event handler gets a call.

 

This blog post might help.

http://adndevblog.typepad.com/autocad/2013/02/using-the-table-cell-selected-event.html

 

The code in the blog post does not say if the cell was modified, but you will know if the cell was selected.

I think you can then use the table's "Modified" event handler to check the content of the cell to see if it has really changed.

 

 

 

ADN Support Specialist
Balaji_Ram
Posts: 737
Registered: ‎03-21-2011
Message 2 of 2 (192 Views)

Re: Table cell events.

02-24-2013 01:52 AM in reply to: maccip

Hello,

 

The table subselection could be getting set just after the Table's "OpenedForModify" event handler is called and the subselection getting cleared before the table's "Modified" event handler gets a call.

 

This blog post might help.

http://adndevblog.typepad.com/autocad/2013/02/using-the-table-cell-selected-event.html

 

The code in the blog post does not say if the cell was modified, but you will know if the cell was selected.

I think you can then use the table's "Modified" event handler to check the content of the cell to see if it has really changed.

 

 

 



Balaji
Developer Technical Services
Autodesk Developer Network

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Are You Going To Be @ AU 2014? Feel free to drop by our AU topic post and share your plans, plug a class that you're teaching, or simply check out who else from the community might be in attendance. Ohh and don't forgot to stop by the Autodesk Help | Learn | Collaborate booths in the Exhibit Hall and meet our community team if you get a chance!