Copy link to clipboard
Copied
Is it possible with InDesign to attach or snap a line to an object? That is, glue one end of a straight line to an object (a block of text let's say) and when I move that object, it pulls the line in the direction I move that object, but leaving the other end of the line stationary?
Thanks in advance.
<Title renamed by moderator>
Great options from @Peter Spier and @Steve Werner
Here's how I'd approach it.
Use the Direct Selection Tool ( White Arrow tool )- and marquee all that is to be moved - except the node that has to stay put.
Drag it down by clicking and dragging the Frame Edge
And you're done.
Also works when grouped.
Copy link to clipboard
Copied
The only way I can think of doing it is to place one end of the line (created by the Line Tool) to touch the edge of the text frame. Then, select the line and click the small square (color of the layer) and drag it to anchor to the text frame (you'll see a small T icon).
Reselect the bounding box of the line and drag the opposite corner away from the text frame:
Copy link to clipboard
Copied
I think it would only work anchoring to a text frame, not a shape or graphic frame.
Copy link to clipboard
Copied
Thank for your help, but I don't think it was that which a was looking for. I wanted to make sure I didn't have to touch the line anymore. Just to be able to move my block of text, and the line follows. (Not the whole line, but just one end of the line.)
Copy link to clipboard
Copied
Group them...
Copy link to clipboard
Copied
As far as I know, if I group them, the whole line follow the text-block, not only one end of the line while the other stay stationary, which is what I want.
Copy link to clipboard
Copied
Sorry, didn't uynderstand the "rubber band" behavior you want.
The only way I can think of to do that is to make your frame and line into a single compound path, thyen use the Direct Select tool to select the frame portion and move that, leaving the fixed point of your line unselected.
The problem here is that when you create the compound path (Object > Paths > Make Compound Path) the line and frame become a single object and must have the same stroke as wall as share any effects.
Copy link to clipboard
Copied
I suppose you could release the compound path after you are done if that's a problem, but that's as much work as moving the end point of the line after moving the frame.
Copy link to clipboard
Copied
Could be scripted...
Copy link to clipboard
Copied
Great options from @Peter Spier and @Steve Werner
Here's how I'd approach it.
Use the Direct Selection Tool ( White Arrow tool )- and marquee all that is to be moved - except the node that has to stay put.
Drag it down by clicking and dragging the Frame Edge
And you're done.
Also works when grouped.
Copy link to clipboard
Copied
I get it! It works. Thank you!
Copy link to clipboard
Copied
Better than the compound path...
Copy link to clipboard
Copied
Thank you for your help anyway!