|
|
| poziția meniului |
|---|
| Draft → Line |
| Ateliere |
| Draft, Arch |
| scurtătură |
| L I |
| Prezentat în versiune |
| - |
| A se vedea, de asemenea, |
| Draft Wire |
Instrumentul Linie creează o linie dreaptă, definită prin două puncte. Ea utilizează Draft Linestyle definită în bara de instrumente Draft. Instrumentul Linie se comportă exact ca instrumentul Draft Wire , cu excepția faptului că se oprește după două puncte.
A Draft Line is in fact a Draft Wire with only two points.
See also: Draft Tray, Draft Snap and Draft Constrain.
The single character keyboard shortcuts available in the task panel can be changed. See Draft Preferences. The shortcuts mentioned here are the default shortcuts.
See also: Preferences Editor and Draft Preferences.
Instrumentul Linie poate fi utilizat în macros și din consola Python utilizând următoarea funcție:
To create a Draft Line use the make_line method (introduced in 0.19) of the Draft module. This method replaces the deprecated makeLine method.
line = make_line(p1, p2)
line = make_line(LineSegment)
line = make_line(Shape)
Line între cei două puncte punctele p1 și p2 , fiecare definit ca FreeCAD.Vector Line dintr-un Part.LineSegment Line de la primul vârf la ultimul vârf al Shape datăExempluː
import FreeCAD as App
import Draft
doc = App.newDocument()
p1 = App.Vector(0, 0, 0)
p2 = App.Vector(1000, 500, 0)
p3 = App.Vector(-250, -500, 0)
p4 = App.Vector(500, 1000, 0)
line1 = Draft.make_line(p1, p2)
line2 = Draft.make_line(p3, p4)
doc.recompute()