Hello Gentlemen,
I have a block which have two attributes. one for GPM and another for Pipe-Size
I have a written lisp program which will read value of GPM attribute and automattically change the Pipe-Size attribute. Now, this is accomplished manually, means, I have to select that block to change the Pipe_Size.
What I am looking for, is that, the Pipe_Size attribute should be changed automatically as soon as the GPM attribute is changed. Is there any autocad event like textchanged event or attribute changed event that can be triggered automatically without selecting the block.
Sorry, if i have not explained properly. If you don't understand, I will explain once more.
Thanks.
Hi
You are posting to the .Net section of the forum, so I am assuming you are looking for a .Net solution. If you are looking for Lisp, please post your question to the dedicated Lisp section.
In .Net a first suggestion would be to use Database.ObjectModified event, which will probably be fired when the text has been changed. You can also listen to events at an object specific level using DBObject.Modified event.
Hope that helps,
Philippe.
Once you get a reference to the block you are interested in, you can regsiter for Modified event.
Do a google search for Database.ObjectModified and DBObject.Modified, you should be able to stumble across many examples.
Let us know if you get stuck.
Thanks,
Philippe.