Parallel line on imported picture

Discussions around the CAM Add-On of QCAD.

Moderator: andrew

Forum rules

Always indicate your operating system and QCAD version.

Indicate the post processor used.

Attach drawing files and screenshots.

Post one question per topic.

Post Reply
JTI
Newbie Member
Posts: 8
Joined: Fri Sep 24, 2021 12:06 am

Parallel line on imported picture

Post by JTI » Thu Dec 30, 2021 4:56 pm

Hi,
I imported a picture in a drawing and tried to add a parallel line (LP) to a base line. QCAD does not allow the line to be placed as long as the cursor is over the imported picture, although the parallel line is shown. if the cursor is not over the picture, the line can be placed as usual. No big deal, but is this a bug?
Attachments
Parallel line.JPG
Parallel line.JPG (61.51 KiB) Viewed 5329 times
titanic_v01.dxf
(100.26 KiB) Downloaded 260 times

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

Re: Parallel line on imported picture

Post by Husky » Thu Dec 30, 2021 7:15 pm

Hi JTI,
JTI wrote:
Thu Dec 30, 2021 4:56 pm
QCAD does not allow the line to be placed as long as the cursor is over the imported picture, although the parallel line is shown. if the cursor is not over the picture, the line can be placed as usual. No big deal, but is this a bug?
Imported pictures are not part of a dxf. To test your drawing issue we need the dxf and the imported picture (jpg). To see the whole issue please attach the picture to your post. Thanks.
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..."

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

Re: Parallel line on imported picture

Post by CVH » Thu Dec 30, 2021 8:23 pm

Hi,
I can partially replicate it with another bitmap. :wink:
Sometimes it works, sometimes it reports the mentioned failure.

The preview of OF is indeed always ok.
Casted 4 offsets out of 13 trials.


Regards,
CVH

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

Re: Parallel line on imported picture

Post by Husky » Thu Dec 30, 2021 8:47 pm

JTI wrote:
Thu Dec 30, 2021 4:56 pm
if the cursor is not over the picture, the line can be placed as usual.
I can't reproduce the issue but I have the hunch that it is a question of accuracy. If you click or click close enough (within the snap cursor range) on a line a parallel is possible and the parallel is placed.
If you miss the line and click instead on the picture a parallel is impossible. The tool expects a Iine, arc, circle or ellipse and a warning pops up telling you "Entity is not a Iine, arc, circle or ellipse".

That doesn't looks like a bug to me.

To avoid this behavior place the pic on a layer and disenable "Snappable".
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..."

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

Re: Parallel line on imported picture

Post by CVH » Thu Dec 30, 2021 10:02 pm

Did some more tests ...
(Last failed 6x of 16 trials)

There is indeed something odd going on.
Away from any picture using OF or LP:
  • If I get close to a valid base entity a preview is cast ...
    ... If I then point to far of, the preview is cleared.
    (My cursor snap range is default 10 pixels)
When I repeat this over a bitmap the preview is not cleared as long as:
  • + I stay over the bitmap.
    + I point at the same side.
    + I keep away from any other valid base.
Doing so, I can easily point more than a half screen away keeping the preview. :shock:
Wondered off to far the casting would simply fail.
Like Husky noted, the bitmap that is then actually closer is not a valid base entity.

The preview will not be 'sticky' when the bitmap is on a not snappable layer.
One can also foul this 'sticky' preview by briefly pointing on the other side of the base entity or near another valid base.
For the moment simply try to point closer to the base entity like Husky mentioned.

Knowing this I can now recreate the issue 'On demand' ... Or avoid it. :wink:

Regards,
CVH

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

Re: Parallel line on imported picture

Post by Husky » Thu Dec 30, 2021 11:02 pm

CVH wrote:
Thu Dec 30, 2021 10:02 pm
When I repeat this over a bitmap the preview is not cleared as long as:
  • + I stay over the bitmap.
    + I point at the same side.
    + I keep away from any other valid base.
Doing so, I can easily point more than a half screen away keeping the preview. :shock:
You can have the same fun with a hatch too ... :shock:
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..."

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

Re: Parallel line on imported picture

Post by CVH » Thu Dec 30, 2021 11:23 pm

Husky wrote:
Thu Dec 30, 2021 11:02 pm
You can have the same fun with a hatch too ...
Came to the same conclusion ... :wink:
First followed the code and found it excluding Hatches.
But testing that revealed the opposite. :?

Then again ... LineParallel.js calls Offset.js and that can be overruled by OffsetPro.js
Still, there is something off with clearing the focus in both cases.

Regards,
CVH

JTI
Newbie Member
Posts: 8
Joined: Fri Sep 24, 2021 12:06 am

Re: Parallel line on imported picture

Post by JTI » Fri Dec 31, 2021 5:51 pm

Here is the particular .jpg file. let me know if I should change the title to [solved].
Happy new year and thanks for your help.
Attachments
titanic.jpg
titanic.jpg (12.61 KiB) Viewed 5228 times

Post Reply

Return to “QCAD/CAM”