PDA

View Full Version : Linking two objects in Autocad VBA



vahidce
04-27-2013, 01:08 AM
Hello Everybody,

I have two entities in my drawing. One is a text object and the other one is a line. How can I link these two objects, so that when I enter a new value in the text field, the length of the line object is updated. I mean how the VBA will understand that it needs to update this specific line not other line objects in the drawing?

Regards

RICVB
12-09-2013, 02:46 PM
Hello Everybody,

I have two entities in my drawing. One is a text object and the other one is a line. How can I link these two objects, so that when I enter a new value in the text field, the length of the line object is updated. I mean how the VBA will understand that it needs to update this specific line not other line objects in the drawing?

Regards
your description looks much like a dimension! Anyhow, you could use attributes setting the same one for the objects you'd link and then check them programmatically.