| Article | 70002572 |
| Type | Wish |
| Product | Engine |
| Date Added | 10/4/2024 12:00:00 AM |
| Fixed | 11.3.1.0 (10/14/2024 12:00:00 AM) |
| Submitted by | Brian Rossiter |
Summary
I would like a command that uses the SubtractSimple method of the polyline. This method substracts curves from a polyline.
Solution
In version 11.3 we added a new method in the commandLine like below
summary> Substracts the passed vdCurves(closed polyline , rect or circle) from the main passed polyline and creates a new polyline for the result which is added to the ActiveLayout.
param name="MainFigure">A vdPolyline or vdRect figure or "user" , null so the user will select a polyline object.
param name="SubstractCurves">A vdSelection of vdCurves(closed polyline , circle , arc or rect) or "user", null so the user picks the entities from the Document.
param name="MoveAfterOperation">A boolean value representing if the cmdMove command will be called after the substraction.
returns>True if the operation is succesfull.
remarks>Only closed polylines rects or circles(SubstractCurves) can be substracted from the main polyline.
Arcs must have two intersection points with the main polyline.
public bool CmdSubstractCurvesFromPoly(object MainFigure , object SubstractCurves , bool MoveAfterOperation)
Example of substracting some curves from a rect polyline

This method was added also in SimpleCAD and vdfCAD applications that we provide
