Draft DelPoint

From FreeCAD Documentation
Jump to: navigation, search
This page is a translated version of the page Draft DelPoint and the translation is 6% complete.

Outdated translations are marked like this.
Other languages:
čeština • ‎Deutsch • ‎English • ‎español • ‎français • ‎italiano • ‎română • ‎русский • ‎svenska • ‎Türkçe
Arrow-left.svg Previous: Draft AddPoint.svg Add point

Draft DelPoint.svg Nokta sil

Menü konumu
Draft → Remove Point
Tezgahlar
Draft, Arch
Varsayılan kısayol
Hiçbiri
Versiyonda tanıtıldı
-
Ayrıca bkz
Hiçbiri


Description

This tool allows you to remove points from already created Draft Wires and Draft BSplines.

The counterpart to this tool is the Draft AddPoint operation.

How to use

  1. Select a Draft Wire or a Draft BSpline. The tool is disabled if no object is selected.
  2. Press the Draft DelPoint.svg Draft DelPoint button.
  3. Click a point on the object.
  4. 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.svg Draft Edit tool.

Options

The options of this tool are described in Draft Edit.svg 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()
Arrow-left.svg Previous: Draft AddPoint.svg Add point