Novice: Drawing around an imported image?

Use this forum to ask questions about how to do things in QCAD.

Moderator: andrew

Forum rules

Always indicate your operating system and QCAD version.

Attach drawing files and screenshots.

Post one question per topic.

terrypin
Newbie Member
Posts: 9
Joined: Sun May 30, 2021 12:18 pm

Novice: Drawing around an imported image?

Post by terrypin » Sun May 30, 2021 3:58 pm

Just installed QCAD which I'm hoping will help me get more accurate measurements into OpenSCAD.

Q1: Directly after import I had to drag around at random until I got my image visible. Is there a setting I've missed that will centre it automatically?

Q2: Units are set to mm, so why is it in this position apparently so far from the origin?

Q3: I'm daunted by the many tools and 'sub-tools'! How do I now proceed to trace around my image to get a vector path, ready for export please?

Image

Terry
QCAD Version: 3.26.2.0 (3.26.2)
Win 10 version 20H2 (OS Build 19042.985)
Last edited by terrypin on Mon May 31, 2021 11:50 am, edited 2 times in total.

User avatar
J-J
Moderator
Posts: 502
Joined: Tue Mar 24, 2009 9:48 pm

Re: Novice: Drawing around an imported image?

Post by J-J » Sun May 30, 2021 6:28 pm

Hello terrypin
Welcome to the forum.

When you open a drawing Qcad autozoom in order to show all entities. In your case it could be possible that a small entity, not quite visible lies far from your main drawing, all it takes is a single point to generate such a situation.
Try reopening your drawing and use command "select all", all entities should appear.
If you remain stuck, attach a copy of the offending drawing.
JJ Win7 pro-64

terrypin
Newbie Member
Posts: 9
Joined: Sun May 30, 2021 12:18 pm

Re: Novice: Drawing around an imported image?

Post by terrypin » Sun May 30, 2021 10:47 pm

Thanks J-J, I’ll try that in the morning.

terrypin
Newbie Member
Posts: 9
Joined: Sun May 30, 2021 12:18 pm

Re: Novice: Drawing around an imported image?

Post by terrypin » Mon May 31, 2021 11:31 am

I've worked on this for an hour or so this morning but still not sure I'm going about it correctly. Hopefully my screenshots will help in getting further advice please.

Image

Image

Image

Image

EDIT:
Image

Re the dimensions and axis numbering issue, I do have two reasonably accurate physical thickness measurements: top two sections = 2.0mm and end section = 1.6mm. The lengths of each are difficult to measure precisely because their junctions are smoothed.

Perhaps this sort of task is outside QCAD's scope? If so I'll focus next on Inkspace, which I see has a 'Trace Bitmap' feature.

CVH
Premier Member
Posts: 3416
Joined: Wed Sep 27, 2017 4:17 pm

Re: Novice: Drawing around an imported image?

Post by CVH » Mon May 31, 2021 12:03 pm

Hi, terrypin

If you insert a bitmap with IM, then have a look High-Left
The tool will activate the Options Toolbar (Many do)
Width-Height-Angle-Keep aspect ratio(Chain)

Bitmaps don't have an actually size stored in them, only the pixel-size.
By default QCAD takes 1 pixel = 1 by 1 unit.

To scale it proper to units you have to know an actually size in the drawing.
Scaling the bitmap with Modify .. Scale (SZ)

QCAD has no 'Trace bitmap' function.
So, you have to draw over it using any shape and method appropriate.

Browse the forum on 'Image', 'bitmap', ... for further hints.

Regards,
CVH

John Hyslop
Premier Member
Posts: 473
Joined: Mon Sep 30, 2019 6:21 am
Location: Melbourne - Australia

Re: Novice: Drawing around an imported image?

Post by John Hyslop » Mon May 31, 2021 1:35 pm

Hello Terrypin
Download Inkscape available free for both Windows and Linux.
Open image, select it, then from the menu choose trace bmp..
Then SaveAs dxf and open in Qcad to further manipulate..
There are lots of YouTube tutorials on Inkscape settings for tracing etc..
There are many export options too SVG is one but I usually do dxf..
Hope this helps

Cheers
John
PS Actually SVG is default file type when you save but I've always used dxf.. Qcad can open SVG files too.. I'm pretty sure,but I'm not on my pc atm..
IF IT IS TO BE IT IS UP TO ME [ Ten most powerful 2 letter words ]

terrypin
Newbie Member
Posts: 9
Joined: Sun May 30, 2021 12:18 pm

Re: Novice: Drawing around an imported image?

Post by terrypin » Mon May 31, 2021 2:57 pm

Thanks both.

CVH: What is ‘IM’?

John: intend to tackle the task with Inkscape next.
Why would I want to re-open DXF in QCAD, rather than directly in OpenSCAD?

CVH
Premier Member
Posts: 3416
Joined: Wed Sep 27, 2017 4:17 pm

Re: Novice: Drawing around an imported image?

Post by CVH » Mon May 31, 2021 6:33 pm

terrypin wrote:
Mon May 31, 2021 2:57 pm
CVH: What is ‘IM’?
'IM' is the keyboard shortcut for Menu .. Draw .. Insert Bitmap

Regards,
CVH

terrypin
Newbie Member
Posts: 9
Joined: Sun May 30, 2021 12:18 pm

Re: Novice: Drawing around an imported image?

Post by terrypin » Mon May 31, 2021 7:56 pm

Thanks, understood.

User avatar
Husky
Moderator/Drawing Help/Testing
Posts: 4935
Joined: Wed May 11, 2011 9:25 am
Location: USA

Re: Novice: Drawing around an imported image?

Post by Husky » Mon May 31, 2021 8:49 pm

terrypin wrote:
Mon May 31, 2021 11:31 am
Perhaps this sort of task is outside QCAD's scope?
Nope ..... it is no problem for QCAD if you know how to use the provided tools in QCAD. Trying to solve this task with multiple different software solution like Paint Pro, Incscape etc etc opens many ways for an inaccurate result.

This example is simply based on the correctness of your 30 mm measurement ....

Husky-2021.05.31-03.png
Husky-2021.05.31-03.png (193.63 KiB) Viewed 7896 times
Work smart, not hard: QCad Pro
Win10/64, QcadPro, QcadCam version: Current.
If a thread is considered as "solved" please change the title of the first post to "[solved] Title..."

terrypin
Newbie Member
Posts: 9
Joined: Sun May 30, 2021 12:18 pm

Re: Novice: Drawing around an imported image?

Post by terrypin » Mon May 31, 2021 10:51 pm

Brilliant, thanks! I’ll try those estimated dimensions ASAP.

But, as you’ll have gathered from my initial post (and my subject heading beginning ‘Novice:’), what I really want is to learn how

Your screenshot is tantalising! Can you amplify on what steps I have to take to reproduce it please? Or point me to a guide or tutorial? I don’t want to spend a month or three learning how to use QCAD’s entire feature set. Just those parts that will let me achieve the modest objective I described.

John Hyslop
Premier Member
Posts: 473
Joined: Mon Sep 30, 2019 6:21 am
Location: Melbourne - Australia

Re: Novice: Drawing around an imported image?

Post by John Hyslop » Tue Jun 01, 2021 1:25 am

Hi Terrypin
John: intend to tackle the task with Inkscape next.
Why would I want to re-open DXF in QCAD, rather than directly in OpenSCAD?
I'm not familiar with OpenSCAD but the traced image would need to be scaled as suggested .
In Qcad this is a simple process..
FYI.. 30% of my work is tracing image files, if you are using a scanner and wish to manually trace around an image then Qcad is great for this. Tip
If your scanner is A4 set the image size to A4 length top right on import as suggested by CVH
I have an A3 scanner and find this method works very accurately the other way is as Husky mentioned scale to a known size..

Cheers
John
PS I'll download OpenSCAD today and check what features or advantages it might have 👍
But I'm pretty sure you would only need to use Qcad for everything apart from auto tracing..
IF IT IS TO BE IT IS UP TO ME [ Ten most powerful 2 letter words ]

terrypin
Newbie Member
Posts: 9
Joined: Sun May 30, 2021 12:18 pm

Re: Novice: Drawing around an imported image?

Post by terrypin » Tue Jun 01, 2021 8:57 am

Thanks John, much appreciated.

User avatar
Husky
Moderator/Drawing Help/Testing
Posts: 4935
Joined: Wed May 11, 2011 9:25 am
Location: USA

Re: Novice: Drawing around an imported image?

Post by Husky » Tue Jun 01, 2021 6:43 pm

terrypin wrote:
Mon May 31, 2021 10:51 pm
Your screenshot is tantalising! Can you amplify on what steps I have to take to reproduce it please? Or point me to a guide or tutorial? I don’t want to spend a month or three learning how to use QCAD’s entire feature set. Just those parts that will let me achieve the modest objective I described.
First - you have to learn how to scale (Scale SZ) a bitmap to "Real world" measurements. It is explained many times in this forum.
Then get familiar with a handful of QCAD tools like:
Vertical Line LV
Horizontal Line LH
Line from 2 Points LI
Parallel (with Distance) LP
Round RN
Trim Both TM

I used them for this example but there is always more than one way to skin a cat ... :wink:
Work smart, not hard: QCad Pro
Win10/64, QcadPro, QcadCam version: Current.
If a thread is considered as "solved" please change the title of the first post to "[solved] Title..."

terrypin
Newbie Member
Posts: 9
Joined: Sun May 30, 2021 12:18 pm

Re: Novice: Drawing around an imported image?

Post by terrypin » Wed Jun 02, 2021 6:03 pm

Thanks Husky, understood. I plainly do need to grasp those few basics before I can hope to confidently use Inkspace, even for my limited objective. And I hope to do that soon, despite my impatience!

But after the help here and elsewhere I have at least now managed to make some progress, thanks.
Starting from my edited profile photo opened in Inkspace...

Image

... I played with various settings of Trace Bitmap...

Image

... and saved it as an SVG

Image

(I don't yet understand how to view and position things in Inkspace. Sometimes my image appeared inside the 'box', sometimes not. Anyway, I assume it needs to fill that box? So that's high on the 'to learn' agenda.)

Post Reply

Return to “QCAD 'How Do I' Questions”