I've thought about this a bunch in the past, because to make a callout whose text is, say, a northing or easting,
representing the end of the leader, you have to make the text "aware" of the leader. Same goes when labeling stations
and offsets of a home brew road alignment. The leader is not just one segement, but can be a bunch, meaning the text
can move in relation to teh leader "end".
Groups are pretty handy for this, but if you wblock stuff around, the groups get lost. We wblock stuff around like
balls in a clown's hands so that is an obstacle.
The thing about groups is they are automatically maintained when you do a copy command.
I thought about using xdata to teach the leader and text about eachother so they could "heal" themselves if confused.
I never came to a good answer though because you don't want a command reactor involved, anyone can mess that up by using
a session without "my tools". The mapcad folks did the leader callout thing using a custom object. But I hate custom
objects. I want a tool that can hook text and leader from any text and pline. I would still need a prog to do
something with that, like update a station or offset, but thats ok. Its just keeping the text and leaders in order
thats tricky.
I'd sure like to know if a persistent reactor could be done for the text and leader, so they know to modify themselves
when copied. Not sure how persistent reactors get propogated though, and how stable that would be.
mabe2k <>
|>Hi!
|>
|>The copy-method, I mean is the one of AutoCAD (the user make the copy). I've never done this in .net before. But you can drive the
|>COPY command via the command line (http://discussion.autodesk.com/thread.jspa?threadID=467227).
|>
|>But back to my question. Is it possible to make a connection between two entities in .net? I'm going forward do this with groups (both objects are in a group, and when i change one, I look in the group for the other object to change it too). But I think i
|>t's not the best solution.
James Maeding
Civil Engineer and Programmer
jmaeding - athunsaker - com