Removing segments from an ellipse with D2

If you are having problems with QCAD, post here. Please report bugs through our Bug Tracker instead.

Always attach your original DXF or DWG file and mentions your QCAD version and the platform you are on.

Moderator: andrew

Forum rules

Always indicate your operating system and QCAD version.

Attach drawing files and screenshots.

Post one question per topic.

Post Reply
CVH
Premier Member
Posts: 4943
Joined: Wed Sep 27, 2017 4:17 pm

Removing segments from an ellipse with D2

Post by CVH » Thu Oct 09, 2025 6:08 am

It seem that I need to address this issue as a new topic with a newly created example file.

Related to FS#2693, follow up of FS#2685
Related to post 48576
Related to Ellipse Arc length (post 48990) and what the intended length is ( topic 11887)

HowToTrimEllipse.dxf
(105.5 KiB) Downloaded 10 times

In the attached example drawing using the latest stable QCAD release 3.32.4:
- Try removing segment A with D2 ... Undo (OO)
- Try removing segment B with D2 ... Undo (OO)

:arrow: This doesn't remove only the segments A or B, the action removes the ellipse completely.
Functional for segments C or D.

The workaround would be using B2:
- Indicate the ellipse.
- Indicate 2 intersection points for A or B.
- Indicate the segment A or B to remove.

- - - - - - - - -

Using D2 makes more sense in this case.
It is much less work and there is less chance of making mistakes. :wink:
But it fails for start or end parameter equal to 180°(Pi rads).

The reason for this is that the shape left after trimming with D2 has no defined length.

Let's create this so-called 'invalid' shape in a different way...

Revert to the drawing as given:
- Auto Trim (AX) segment A or B.
- Cancel the tool (R-Click).
- Select the remaining segment, its length is approximately 5.53593457 units.
- In the Property Editor set Reversed to 'Yes'.

This is the intended shape after trimming with D2, its length is NaN and therefore not created as result.

The estimated(*) length should be 48.4422411027384 - 5.53593457(*) ≈ 42.90630653...(*)
42.90631933 is fair enough ...
... The estimation can be enhanced with a good full (or 1/2 or 1/4) ellipse length and only estimating the flatter parts.


Hoping that this is more clear now and that the reported bug may be solved soon.
Regards,
CVH

Post Reply

Return to “QCAD Troubleshooting and Problems”