Solved -Trimming Objects

Use this forum for all posts and questions about the free QCAD Community Edition version 3

Moderator: andrew

User avatar
hwrd69
Junior Member
Posts: 13
Joined: Wed Oct 26, 2022 10:46 pm
Location: Mississippi, USA

Solved -Trimming Objects

Post by hwrd69 » Sat Oct 29, 2022 8:48 pm

QCAD Version: 3.27.8.0 Community Version
Running on Microsoft Windows 10 Home
Version 10.0.19044 Build 19044

In the attach example I have two rectangular objects and I want to use one to trim (or subtract the other). In the drawing I drew arrows to show that I want to use the "squarish" rectangle to trim the long skinning rectangle such that where the arrows are pointing is trimmed off and the remaining part of the rectangle is "inside" the other rectangle.

How is this done? I've tried searching and trying different methods and none work. I found one YouTube video that I thought would explain it but it was not even close to what I am trying to achieve.

Thanks for any a nd all responses.
Attachments
Example.dxf
(30.29 KiB) Downloaded 287 times
Last edited by hwrd69 on Thu Nov 03, 2022 1:18 am, edited 1 time in total.
"It's hard to tell that the world we live in is either a reality or a dream."

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

Re: Trimming Objects

Post by CVH » Sat Oct 29, 2022 9:00 pm

Hi,

One could use Break out Manual (B2) with the option to remove the Segment.
Indicate the entity to break and indicate the intersection points.
And that twice.

Regards,
CVH

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

Re: Trimming Objects

Post by Husky » Sat Oct 29, 2022 9:26 pm

I would use "Auto Trim" (AX),
Launch Auto Trim,
click both lines of the slim rectangle inside the large rectangle - that will trim the overshooting lines on both ends ...
select and delete the Leftovers (Head and Foot Lines) of the slim rectangle - done.
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..."

User avatar
hwrd69
Junior Member
Posts: 13
Joined: Wed Oct 26, 2022 10:46 pm
Location: Mississippi, USA

Re: Trimming Objects

Post by hwrd69 » Sun Oct 30, 2022 2:19 am

Awesome, I'll give this a try. Thank you
"It's hard to tell that the world we live in is either a reality or a dream."

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

Re: Trimming Objects

Post by CVH » Sun Oct 30, 2022 6:22 am

hwrd69,

Disregard mine ... That would remove the section of the narrow shape that is inside the larger one.
Or subtract the larger from the narrow.
Misread what the intention was :oops:

BTW: Have you read Husky's signature in blue? Are Dimensions adding up now?

Regards,
CVH

User avatar
hwrd69
Junior Member
Posts: 13
Joined: Wed Oct 26, 2022 10:46 pm
Location: Mississippi, USA

Re: Trimming Objects

Post by hwrd69 » Wed Nov 02, 2022 12:27 am

I'm just getting back on now and have not yet checked that response. As soon as I check it out I will report the results
"It's hard to tell that the world we live in is either a reality or a dream."

User avatar
hwrd69
Junior Member
Posts: 13
Joined: Wed Oct 26, 2022 10:46 pm
Location: Mississippi, USA

Re: Trimming Objects

Post by hwrd69 » Wed Nov 02, 2022 12:42 am

Husky wrote:
Sat Oct 29, 2022 9:26 pm
I would use "Auto Trim" (AX),
Launch Auto Trim,
click both lines of the slim rectangle inside the large rectangle - that will trim the overshooting lines on both ends ...
select and delete the Leftovers (Head and Foot Lines) of the slim rectangle - done.
Husky,

This works for just the rectangle I'm trying to trim. However, if the rectangle is filled with a hatch, the hatch is not affected and I'm not wetting the results I desire.

I'm using rectangles with hatch fillings to represent pieces of wood that will be set for an abstract piece of wood art. By moving and rotating the individual pieces I can use this as a baseline for my actual work. I didn't show the hatching originally because I was trying to just get the idea across and since I'm a newbie, I didn't know the Auto Trim would not work on the hatch also.

I hope I am getting across what I'm trying to achieve.

Thank for your response and assistance.

Hwrd69
"It's hard to tell that the world we live in is either a reality or a dream."

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

Re: Trimming Objects

Post by CVH » Wed Nov 02, 2022 5:49 am

Hwrd69,

You didn't mention Hatches before. :wink:

Hatches are entities on their own.
From the moment they are created they are unrelated to the shape or shapes or segments that were used to define the boundary.

Hatches areas can not be trimmed the same way as line art.
There is no method to sum or subtract filled areas, or any other logical operation.
They can be Stretched (SS) successful or not depending the nature of the boundary.

The idea here is to create them after you have defined the final geometry.

However, there is kind of another way.
If a hatch would have let us assume 5 straight edges.
Then one could created a regular pentagon, Hatch that, disregard the pentagon and drag the corners of the Hatch.

In this way odd thing can be achieved with Hatches with holes.
Below is one single Hatch entity:
OddHatch.png
Modified Hatch with 2 holes
OddHatch.png (2.71 KiB) Viewed 10206 times

Regards,
CVH

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

Re: Trimming Objects

Post by Husky » Wed Nov 02, 2022 6:28 am

@ hwrd69,
hwrd69 wrote:
Wed Nov 02, 2022 12:42 am
I hope I am getting across what I'm trying to achieve.
If not just tell us exactly what you are trying to archive and I'm sure someone in the forum can help you with that.

Husky-2022.11.01-03.png
Husky-2022.11.01-03.png (56.51 KiB) Viewed 10204 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..."

User avatar
hwrd69
Junior Member
Posts: 13
Joined: Wed Oct 26, 2022 10:46 pm
Location: Mississippi, USA

Re: Trimming Objects

Post by hwrd69 » Wed Nov 02, 2022 1:46 pm

I believe between what you and CVH have said I think I understand better as to what to do. I thought the hatching was part of the rectangle, not a separate entity. But now that that has been made clearer, I think I'll get it figured out.

I have an early appointment this morning, but I'm looking forward to working on it when I get back.

Thank you both for your assistance and patience.

Howard
"It's hard to tell that the world we live in is either a reality or a dream."

User avatar
hwrd69
Junior Member
Posts: 13
Joined: Wed Oct 26, 2022 10:46 pm
Location: Mississippi, USA

Re: Trimming Objects

Post by hwrd69 » Thu Nov 03, 2022 12:03 am

Husky wrote:
Wed Nov 02, 2022 6:28 am
@ hwrd69,
hwrd69 wrote:
Wed Nov 02, 2022 12:42 am
I hope I am getting across what I'm trying to achieve.
If not just tell us exactly what you are trying to archive and I'm sure someone in the forum can help you with that.


Husky-2022.11.01-03.png

I finally achieved what I was trying to do. I now have to implement it many times over such that I am creating the layout for my wood work piece. I find this method to be somewhat convoluted, but it is what it is.

As you can see below, what I was trying to do was more or less the inverse of what CVH showed me in his example.

I was unable to grab the points/vertices on a polyline so that didn't work for me. I finally laid out the intersections and then redrew the polyline to "hit" the points I wanted to get the shape I desired before adding the hatch.

I guess I will get the hang of it eventually. With enough practice, research, and questions.

Howard

Object example.png
Object example.png (8.99 KiB) Viewed 10136 times
"It's hard to tell that the world we live in is either a reality or a dream."

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

Re: Trimming Objects

Post by Husky » Thu Nov 03, 2022 12:21 am

hwrd69 wrote:
Thu Nov 03, 2022 12:03 am
I was unable to grab the points/vertices on a polyline so that didn't work for me. I finally laid out the intersections and then redrew the polyline to "hit" the points I wanted to get the shape I desired before adding the hatch.
Great! In the QCAD Pro version you could hatch that shape with "Hatch from Segments (HS)" :wink:

Note: I moved this topic to "QCAD Community Edition".
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: Solved -Trimming Objects

Post by CVH » Thu Nov 03, 2022 6:37 am

Under the 'QCAD Community Edition' you can only Hatch from a selected, trimmed boundary.
The easiest way is then to use a geometrically closed Polyline.
Logically closed or not doesn't matter here, as long as it displays as and is perfectly closed.
The advantage is that a Polyline is always perfectly closed at nodes in between start and end.
hwrd69 wrote:
Thu Nov 03, 2022 12:03 am
I was unable to grab the points/vertices on a polyline so that didn't work for me.
To Hatch, one needs boundary shapes or segments and not points/vertices or better nodes.

For sure one can 'grab' any marker of a selection and drag that to a new location.
This has nothing to do with creating a Hatch.
But one can drag the markers of a selected Hatch entity just the same as any other.
The results differ depending the nature of the boundary and it is found to be functional with straight edges.
hwrd69 wrote:
Thu Nov 03, 2022 12:03 am
what I was trying to do was more or less the inverse of what CVH showed me in his example.
My example image shows a selected solid Hatch (Yellow) with markers (Blue squares) after I dragged some of those markers to new positions.
One can see that it is still in selection because the markers are displayed.
Just an arbitrary example and nothing 'more or less inverse' of your preceding Example.dxf

I asked to disregard my trimming solution because that was based on 'subtracting one shape from the other'.
While QCAD has no methods for logical operations on shapes or filled areas, Inkscape does.
Object example.png is not at all the result of a subtraction of shapes nor of areas.
hwrd69 wrote:
Thu Nov 03, 2022 12:03 am
I find this method to be somewhat convoluted, but it is what it is.
Indeed, there is a feature request to Hatch from just one click:
https://qcad.org/bugtracker/index.php?d ... ask_id=763
It is over 3552 days old today and has (only) 7 votes making it the top 5 most requested feature for years.
Perhaps you could add your vote. :wink:

Regards,
CVH

User avatar
hwrd69
Junior Member
Posts: 13
Joined: Wed Oct 26, 2022 10:46 pm
Location: Mississippi, USA

Re: Solved -Trimming Objects

Post by hwrd69 » Thu Nov 03, 2022 1:24 pm

Thanks for the info. When I mentioned the inverse of your example I should have been more clear and specified the post with the rectangular examples not the hatch.

Since you mentioned the Community version, I was wondering if you could explain the differences between the Community and the Pro version or point me to where there's a good explanation and what the advantages of Pro are.

Thanks for your assistance and insight.

Howard
"It's hard to tell that the world we live in is either a reality or a dream."

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

Re: Solved -Trimming Objects

Post by CVH » Thu Nov 03, 2022 2:22 pm

See supported features:
https://www.ribbonsoft.com/en/documentation/features

Features in blue italic are available in QCAD Professional only.

A there unstated advantage is that you support the further development of QCAD. :P

On the CE forum it doesn't seems to be required to post one question per topic ... :lol:
Still, that would make the forum more searchable. :wink:

Regards,
CVH

Post Reply

Return to “QCAD Community Edition”