Line to image in perspective

I’m building an application in perspective, for simplicty I have chosen to use a coordinate view.
In that view there will be an image in the center, its a drawing of the machine used.
On the sides i want to show data regarding the sensors that are in the image.

I want lines from the boxes of information to the different parts to the cards with information.

But how do i make the lines easy? Maybe I’m missing something

Version? 8.3 has drawing tools. In 8.1, create an SVG in inkScape etc and import it

8.3 so i tested the drawing tool and while it works it is isn’t completely practical for the job. I cant see the line on an overlay while i make it. But I guess it has to be good enough.

1 Like

An alternate to using SVGs in 8.1 was to use the “pipe tool”. You could give that a go in 8.3

Your graphics are an image, why not add the lines on the image?

I’m not 100% sure yet about the position of the cards that surrounds it, but that is an option that i probably i most likely will use and add the lines last thing.

I thought there would be an easy way to add lines but if there isn’t I’ll use that. or maybe using the drawing tool with a layer that covers all, but it doesn’t seem to be made for this since i cant see the background while i edit.

Draw your entire system as an SVG, draw the lines to roughly where they will go in the final system.
Using the xml tools in Inkscape, make sure you have set the id for each line to a meaningful value.
Import (Embed not image manager) into the perspective view.
Arrange the cards around the image.
In the SVG elements, search for the id elements and when you see them, modify the start or end value entries as needed to move it to line up with the cards.
Job done. Make sure your'e using aspect ratio on the coordinate container.

1 Like

If you're in 8.3, use the drawing tool to make a diagonal line with the pen tool (guessing this is what you're after), then make sure the style, width, etc are all set as you want them in the design configuration of the line. Next, go to the settings tab and click the icon in the upper right that says resize viewbox to content with 0 padding (if doing a horizontal or vertical line you'll want some padding). Change Preserve Aspect Ratio to none, then save/apply that drawing. Once back on your coordinate container, on the element 0 (should only be this single element), add a property named vectorEffect and set it to non-scaling-stroke.

Now you should be able to resize this line (it will always be at an angle) however you want, and it will stay the same thickness, but your corners will always be your endpoints of the line. You'll need to make one for sloping up and down, and straight lines will be easy but similar (hold control when clicking the start/end points).

1 Like

@michael.flagler

Sounds like a great solution, I can’t change Preserve Aspect Ratio though,

first i made the line, in settings the Preserve Aspect Ratio is grayed out.

then the resize with padding 0, that works.

Now the Preserve Aspect Ratio dropdown is active, but i cant choose anything else than xMidYMid that is already selected.

If you can't change it in the drawing editor, then once you get back to designer there's the pereserveAspectRatio towards the top of the properties you should be able to change from there (see in my screenshot also). That should not be grayed out for you.

Thanks, that works great. Saves a lot of time.