Inkscape.org
Beginners' Questions Dividing lines based on existing overlapping lines
  1. #1
    .ibrahim .ibrahim @.ibrahim

    I am trying to divide this line into three smaller lines defined by the three horizontal lines shown. How would I go about doing this? I just downloaded inkspace and would appreciate the help.

    This is from a pdf drawing creating by 3d cad software (creo) which I have attached below

     

    Screenshot 2023 08 24 140104
  2. #2
    Polygon Polygon @Polygon🌶
    👍

    You can insert new nodes with the Nodes-tool via double click and drag them to the corresponding nodes to let them snap into place. If you need "solo" segments select the new nodes and hit what sounds like "break stroke on selected nodes".

  3. #3
    David248 David248 @David248
    🙌
    • Duplicate horizontal line (actually we name it a path) : select it and press ctrl + D or do Edit > Duplicate. This way the duplicated path is atop. We need a duplicate because further the duplicate will be deleted.
    • Then select the vertical line and the duplicate (first select one, hold shift and select the other path). Then do Path > Cut Path (shortcut Ctrl+ alt + / beware sometimes shortcuts dont operate) : during this process the bottom path is cut by the upper path and the upper path is deleted).
    • Repeat with the second horizontal path.

    Refinement  1 : select the two horizontal paths, duplicate them (ctrl + D) and combine them (path > combine, shortcut ctrl+ K), then shift + select the path to be divided* and do path > cut path.

    Refinement 2 : I guess you want to divide the paths in the corners of your pdf : you may want to cut simultaneously the vertical paths left and right to the horizontal ones. As cut path process only allows two paths to be selected, not three, you can combine left and right vertical paths you wanna cut before cutting process.

    Tip : check on status bar (bottom center of screen) what's going on during your work : there you now how many paths are selected, error messages and more.

  4. #4
    .ibrahim .ibrahim @.ibrahim
    *

    I have been sitting here waiting for someone to reply turns out I needed to refresh 😅. Thanks a lot for the help, I really appreciate it; both of your methods worked well. Also @david248 thank you very much for the detailed instruction I was having trouble selecting multiple paths as I kept trying to use ctrl to select multiple paths.

  5. #5
    David248 David248 @David248

    You're welcome

Inkscape Inkscape.org Inkscape Forum Beginners' Questions Dividing lines based on existing overlapping lines