70002333 Implement ExTrim command

Article 70002333
Type Wish
Product Engine
Version 1003
Date Added 3/28/2023 12:00:00 AM
Fixed 10.1004.0.2 (4/20/2023 12:00:00 AM)
Submitted by Demetris Monoyios

Summary

Implement ExTrim command. ExTrim command let you choose the cutting figure (polyline , line , circle) and a cutting side point , and then all entities that have an intersection point with the given figure are trimmed from the side of the picked side point.

Solution

In version 1004 we added the ExTrim command.
We added a new command in the CommandLine dll like below

summary> Trims all objects at the cutting edge specified by a selected polyline, line, circle, arc, ellipse, text , Image.
param name="Figure">A vdCurve (polyline, line, circle, arc, ellipse, Image) or "USER" , null so the user selects the figure.
param name="SidePoint">A gPoint to pick the side where the trim will occur or "USER" , null so the user selects the figure.
returns>true if the command was succesfull.
public bool ExTrim(object Figure, object SidePoint)

Some examples follow.


You can ExTrim with a Line. Below we choose the Line and we click on the right side for the "side point"

Before

After




You can ExTrim with a Rect or a circle to trim the inner (or outer) intersecting entities.


Before

After




You can ExTrim with a Text, a vdMtext or even an image to trim the inner (or outer) intersecting entities.


Before

After




And here is an example of trimming outer entities by clicking outside of a polyline to pick a side point.

Before

After


Send comments on this topic.