Difference between revisions of "Draft DelPoint"
m (png to svg) |
|||
Line 15: | Line 15: | ||
|Name=Draft DelPoint | |Name=Draft DelPoint | ||
|MenuLocation=Draft → Remove Point | |MenuLocation=Draft → Remove Point | ||
− | |Workbenches=[[ | + | |Workbenches=[[Draft_Module|Draft]], [[Arch_Module|Arch]] |
− | |SeeAlso=[[ | + | |SeeAlso=[[Draft_AddPoint|Draft AddPoint]], [[Draft_Edit|Draft Edit]] |
}} | }} | ||
Revision as of 21:17, 24 November 2020
Menu location |
---|
Draft → Remove Point |
Workbenches |
Draft, Arch |
Default shortcut |
None |
Introduced in version |
- |
See also |
Draft AddPoint, Draft Edit |
Contents |
Description
The Draft DelPoint tool allows you to remove points from already created
Draft Wires and
Draft BSplines.
The counterpart to this tool is the Draft AddPoint operation.
Usage
- Select a Draft Wire or a Draft BSpline. Note: the tool is disabled if no object is selected.
- Press the
Draft DelPoint button.
- Click a point on the object.
- Press Esc or the Close button to finish the operation; points already deleted will be gone.
This functionality is also available from the Draft Edit tool.
Options
The options of this tool are described in Draft Edit.
Scripting
See also: Draft API and FreeCAD Scripting Basics.
There is no programming interface available for the DelPoint tool, however, removing points is simple.
The Points
attribute of a wire or spline is a list with the points that comprise that object; to remove points, overwrite this attribute with a shorter list of points. You can use methods like pop()
to remove an element in the desired position in the list. Each point is defined by its FreeCAD.Vector
, with units in millimeters.
Example:
import FreeCAD, Draft
p1 = FreeCAD.Vector(-1000, 400, 0)
p2 = FreeCAD.Vector(1500, -1500, 0)
p3 = FreeCAD.Vector(2200, 1000, 0)
wire = Draft.makeWire([p1, p2, p3])
points = wire.Points
points.pop(1)
wire.Points = points
FreeCAD.ActiveDocument.recompute()
- Basics: Coordinates, Constraining, Snapping (Near, Extension, Parallel, Grid, Endpoint, Midpoint, Perpendicular, Angle, Center, Ortho, Intersection, Special, Dimensions, Working plane)
- Drawing: Line, Polyline, Fillet, Circle, Arc, Arc 3 points, Ellipse, Polygon, Rectangle, Text, Dimension, BSpline, Point, ShapeString, Facebinder, Cubic Bezier Curve, Bezier Curve, Label
- Modifying: Move, Rotate, Offset, Trimex, Join, Split, Upgrade, Downgrade, Scale, Edit, SubelementHighlight, Wire to BSpline, Add point, Delete point, Shape 2D View, Draft to Sketch, Array, LinkArray, Polar Array, Circular Array, Path Array, Path LinkArray, Point Array, Clone, Drawing, Mirror, Stretch
- Utilities: Set working plane, Finish line, Close line, Undo line, Toggle construction mode, Toggle continue mode, Apply style, Toggle display mode, Add to group, Select group contents, Toggle snap, Toggle grid, Show snap bar, Heal, Flip Dimension, VisGroup, Slope, AutoGroup, Set Working Plane Proxy, Add to Construction group
- Additional: Preferences, Import Export Preferences (DXF/DWG, SVG, OCA, DAT); Draft API

- Getting started
- Installation: Download, Windows, Linux, Mac, Additional components, Docker, AppImage, Ubuntu Snap
- Basics: About FreeCAD, Interface, Mouse navigation, Selection methods, Object name, Preferences, Workbenches, Document structure, Properties; Help FreeCAD, Donate
- Help: Tutorials, Video tutorials
- Workbenches: Std Base; Arch, Draft, FEM, Image, Inspection, Mesh, OpenSCAD, Part, PartDesign, Path, Points, Raytracing, Reverse Engineering, Sketcher, Spreadsheet, Start, Surface, TechDraw, Test Framework, Web
- Deprecated or unmaintained workbenches: Complete, Drawing, Robot
- Hubs: User hub, Power users hub, Developer hub