Inkscape.org
Beginners' Questions Lock an object to a node on a line ?
  1. #1
    jman6495 jman6495 @jman6495

    Dear Inkscape forum,

    I'm working on a transit map at the moment, and one of the things that is a little irritating is that I have to reposition all the stations if I want to move the lines. I was wondering if there was a way to "attach" the station objects to a node on the line, so that when I move nodes on the line, the stations stay attached to it?

    Thanks in advance,

    Jordan

    Screenshot From 2024 08 12 16 46 48
  2. #2
    David248 David248 @David248

    As far as I know, ther is now way to lock one object to a node in a path.

    You could use mid-markers to make the hollow dot, but :

    • ย every node on path will have a marker
    • text cannot be included in marker (I assume it has to be changed for every station...) and wouldn't follow.

    To make things easier, I would group dot and Text, move rotation center (the cross) of this groupย  (check on object's panel that you have the group selected and not one object inside) on center of dot (use snapping to rotation centers). Then duplicate this group for the other stations.

    You can then use snapping to rotation centers and cusp / smooth nodes or even paths to move groups and eventually rotate them.

    ย 

  3. #3
    Polygon Polygon @Polygonโš–๐ŸŒถ

    @David248 how do you get the ring to interrupt the stroke by a marker?

  4. #4
    jman6495 jman6495 @jman6495

    @David248 Thanks for your rapid reply! Unfortunately i don't think mid-markers areย  a good match for this task. But the advice on the rotation centre of the group is really useful! Thanks :)

  5. #5
    David248 David248 @David248
    *
    jman6495

    @David248 Thanks for your rapid reply! Unfortunately i don't think mid-markers areย  a good match for this task. But the advice on the rotation centre of the group is really useful! Thanks :)

    You may want to add in your group a transparent rectangle bigger than the bigger word you need, so that when renaming the station, rotation point stays unchanged centered on ring. The idea is that, whatever the size of the word, group size doesn't change.

  6. #6
    David248 David248 @David248

    @David248 how do you get the ring to interrupt the stroke by a marker?

    This way ?

  7. #7
    Polygon Polygon @Polygonโš–๐ŸŒถ

    Hard to tell from the screenshot: Has the circle just a fill color of the background or is it 100 transparent like the OP has?

  8. #8
    David248 David248 @David248
    Polygon

    Hard to tell from the screenshot: Has the circle just a fill color of the background or is it 100 transparent like the OP has?

    Sorry I don't understand what you mean by OP (I'm just a poor french ๐Ÿค—).

    On screenshot of post#1, I don't thing the ring is "hollow" but the grid gives the impression its fill is transparent (you also see the grid on stroke).

    I'm not able to make it transparent without viewing the green stroke inside the ring.

    ย 

Inkscape Inkscape.org Inkscape Forum Beginners' Questions Lock an object to a node on a line ?