Draft Line/es: Difference between revisions
(Updating to match new version of source page) |
(Updating to match new version of source page) |
||
(27 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
<languages/> |
<languages/> |
||
{{Docnav |
|||
<div class="mw-translate-fuzzy"> |
|||
{{Docnav/es |
|||
| |
| |
||
|[[Draft_Wire| |
|[[Draft_Wire/es|Hilo]] |
||
|[[Draft_Workbench/es|Borrador]] |
|||
|[[Draft_Module|Draft]] |
|||
|IconL= |
|IconL= |
||
|IconR=Draft_Wire.svg |
|IconR=Draft_Wire.svg |
||
|IconC=Workbench_Draft.svg |
|IconC=Workbench_Draft.svg |
||
}} |
}} |
||
</div> |
|||
<div class="mw-translate-fuzzy"> |
<div class="mw-translate-fuzzy"> |
||
{{GuiCommand/es |
|||
{{GuiCommand/es|Name=Draft Line|Name/es=Draft Linea|Workbenches=[[Draft Module/es|Croquis]], [[Arch Module/es|Arquitectura]]|MenuLocation=Croquis → Línea|Shortcut=L I|SeeAlso=[[Draft Wire/es|Contorno]]}} |
|||
|Name=Draft Line |
|||
|Name/es=Borrador Linea |
|||
|MenuLocation=Borrador → Línea |
|||
|Workbenches=[[Draft_Workbench/es|Borrador]], [[Arch_Workbench/es|Arquitectura]] |
|||
|Shortcut={{KEY|L}} {{KEY|I}} |
|||
|Version=0.7 |
|||
|SeeAlso=[[Draft_Wire/es|Borrador Hilo]], [[Draft_Point/es|Borrador Punto]] |
|||
}} |
|||
</div> |
</div> |
||
= |
<span id="Description"></span> |
||
==Descripción== |
|||
<div class="mw-translate-fuzzy"> |
<div class="mw-translate-fuzzy"> |
||
La herramienta Línea crea una línea recta definida por dos puntos. Utiliza el [[Draft_Linestyle/es|Estilo de Línea de Borrador]] establecido en la [[Draft_Tray/es|Bandeja de Borrador]]. La herramienta Línea se comporta exactamente como la herramienta [[Draft_Wire/es|Borrador Hilo]], excepto que se detiene después de dos puntos. |
|||
==Descripción== |
|||
La herramienta de Línea crea un segmento recto de línea entre dos puntos. Toma el [[Draft Linestyle/es|tipo de línea y color]] previamente establecido. La herramienta de Línea se comporta exactamente igual que la herramienta [[Draft Wire/es|Línea del módulo de boceto]], excepto porque utiliza sólo dos puntos. |
|||
</div> |
</div> |
||
A Draft Line is in fact a [[Draft_Wire|Draft Wire]] with only two points. |
|||
[[Image:Draft_Line_example.jpg|400px]] |
[[Image:Draft_Line_example.jpg|400px]] |
||
<div class="mw-translate-fuzzy"> |
<div class="mw-translate-fuzzy"> |
||
{{Caption|Línea creada por dos puntos}} |
|||
[[Image:Draft_Line_example.jpg|400px]] |
|||
</div> |
</div> |
||
= |
<span id="Usage"></span> |
||
==Utilización== |
|||
See also: [[Draft_Tray|Draft Tray]], [[Draft_Snap|Draft Snap]] and [[Draft_Constrain|Draft Constrain]]. |
|||
<div class="mw-translate-fuzzy"> |
|||
==Cómo utilizarla== |
|||
<div class="mw-translate-fuzzy"> |
|||
# Presiona el botón {{KEY|[[Image:Draft Line.png|16px]]}} de la herramienta de [[Draft Line/es|Línea]] o pulsa las teclas {{KEY|L}} y {{KEY|I}} |
|||
# Pulse el {{Button|[[Image:Draft Line.svg|16px]] [[Draft Line/es|Línea de Borrador]]}}, o utilice el botón {{KEY|Borrador}} → {{KEY|[[Image:Draft Line.svg|16px]] [[Draft Line/es|Línea]]}} del menú superior, o utiliza el atajo de teclado: {{KEY|L}} y luego {{KEY|I}}. |
|||
# Indica un primer punto en la vista 3D, o escribe sus [[Draft_Coordinates/es|coordenadas ]] |
|||
# |
# Haga clic en un primer punto en la vista 3D, o escriba una coordenada y pulse el {{Button|[[Image:Draft_AddPoint.svg|16px]] añadir punto}}. |
||
# Haz clic en un segundo punto en la vista 3D, o escribe una coordenada y pulsa el {{Button|[[Image:Draft_AddPoint.svg|16px]] añadir punto}}. |
|||
</div> |
</div> |
||
==Options== |
|||
The line can be edited by double clicking on the element in the tree view, or by pressing the {{Button|[[Image:Draft Edit.svg|16px]] [[Draft Edit|Draft Edit]]}} button. Then you can move the points to a new position. |
|||
The single character keyboard shortcuts available in the task panel can be changed. See [[Draft_Preferences|Draft Preferences]]. The shortcuts mentioned here are the default shortcuts (for version 0.22). |
|||
=== Fusing single lines === |
|||
If several connected [[Draft_Line|Draft Lines]] are selected they can be fused into a wire by pressing the {{Button|[[Image:Draft_Upgrade.svg|16px]] [[Draft_Upgrade|Draft Upgrade]]}} tool; however, this [[Image:Workbench_Part.svg|24px]] Wire will not be editable. To '''create an editable wire''', use {{Button|[[Image:Draft_Upgrade.svg|16px]] [[Draft_Upgrade|Draft Upgrade]]}} three more times on the new shapes (wire, closed wire, face). You can also fuse the original lines with the {{Button|[[Image:Draft_Wire.svg|16px]] [[Draft_Wire|Draft Wire]]}} tool. |
|||
=== Adding points === |
|||
A wire can also be created from a single line by adding another point anywhere along its length. To do this, press the {{Button|[[Image:Draft_AddPoint.svg|16px]] [[Draft_AddPoint|add point]]}} button, and click anywhere on the line. |
|||
<div class="mw-translate-fuzzy"> |
<div class="mw-translate-fuzzy"> |
||
==Opciones== |
==Opciones== |
||
* Pulse {{KEY|X}}, {{KEY|Y}} o {{KEY|Z}} después del primer punto para restringir el segundo punto en el eje dado. |
|||
* Para introducir las coordenadas manualmente, simplemente introduzca los números y luego pulse {{KEY|Enter}} entre cada componente X, Y y Z. |
|||
* Presiona {{KEY|X}}, {{KEY|Y}} o {{KEY|Z}} después del primer punto para restringir el segundo punto de un eje dado. |
|||
** También puede definir las coordenadas polares del punto dando un valor a "Longitud" y "Ángulo". Haga clic en la casilla de verificación junto a "Ángulo" para restringir el puntero al ángulo especificado. |
|||
* Para introducir coordenadas manualmente, simplemente introduce el número y presiona {{KEY|ENTER}} entre cada componente X, Y y Z. |
|||
** Puede pulsar el {{Button|[[Image:Draft_AddPoint.svg|16px]] añadir un punto}} cuando tenga los valores deseados para insertar el punto. |
|||
* Presiona {{KEY|R}} o pulsa el checkbox para activar o desactivar el modo {{KEY|'''Relativo'''}}. Si está activado el modo relativo, las coordenadas del segundo punto serán relativas al primero. En caso contrario, serán absolutas, a partir del punto de origen (0,0,0). |
|||
* |
* Pulse {{KEY|R}} o haga clic en la casilla para activar el modo ''relativo''. Si el modo relativo está activado, las coordenadas del segundo punto son relativas al primero; si no, son absolutas, tomadas desde el origen (0,0,0). |
||
* Pulse {{KEY|T}} o haga clic en la casilla para activar el modo ''continuar''. Si el modo de continuar está activado, la herramienta Línea se reiniciará después de dar el segundo punto, lo que le permitirá dibujar otro segmento de línea sin tener que volver a pulsar el botón de la herramienta. |
|||
* Presiona {{KEY|CTRL}} mientras dibujas para forzar el [[Draft_Snap/es|ajuste]] de tu punto a las ubicaciones de ajuste más cercanas, independientemente de la distancia. |
|||
* |
* Mantén pulsado {{KEY|Ctrl}} mientras dibujas para forzar [[Draft_Snap|snapping]] tu punto a la ubicación de snap más cercana, independientemente de la distancia. |
||
* Mantén pulsado {{KEY|Shift}} mientras dibujas para [[Draft_Constrain/es|restringir]] tu segundo punto horizontal o verticalmente en relación con el primero. |
|||
* Presiona {{KEY|CTRL}}+{{KEY|Z}} o presiona el icono {{KEY|[[Image:Draft UndoLine.png|12px]] '''[[Draft_UndoLine|Undo]]'''}} para deshacer el último punto. |
|||
* |
* Pulse {{KEY|Ctrl}}+{{KEY|Z}} o pulse el {{Button|[[Image:Draft_UndoLine.svg|12px]] Deshacer}} para deshacer el último punto. |
||
* Pulse {{KEY|Esc}} o el botón {{Button|Close}} para abortar el comando actual. |
|||
* Si se seleccionan [[Draft Line/es | Draft Lineas]] conectadas, se pueden transformar en un cable presionando el botón '''Draft Upgrade'''. |
|||
</div> |
</div> |
||
==Notes== |
|||
<div class="mw-translate-fuzzy"> |
|||
==Propiedades== |
|||
<div class="mw-translate-fuzzy"> |
|||
* {{PropertyData/es|Inicio}}: El punto de Inicio |
|||
La línea puede editarse haciendo doble clic en el elemento en la vista de árbol, o pulsando el {{Button|[[Image:Draft Edit.svg|16px]] [[Draft Edit/es|Borrador de edición]]}}. A continuación, puede mover los puntos a una nueva posición. |
|||
* {{PropertyData/es|Fin}}: El punto final |
|||
* {{PropertyData/es|Subdivisions}}: Divide la línea con el número dado de subdivisiones {{version/es|0.16}} |
|||
</div> |
</div> |
||
== |
==Preferences== |
||
* {{PropertyData|Start}}: specifies the start point. |
|||
* {{PropertyData|End}}: specifies the end point. |
|||
* {{PropertyData|Subdivisions}}: specifies the number of interior nodes in the line. {{version|0.16}} |
|||
* {{PropertyData|Length}}: (read-only) specifies the length of the segment. |
|||
See also: [[Preferences_Editor|Preferences Editor]] and [[Draft_Preferences|Draft Preferences]]. |
|||
===View=== |
|||
* {{PropertyView|End Arrow}}: if it is {{TRUE}} it will display a symbol at the last point of the line, so it can be used as an annotation line. |
|||
* To change the initial focus of the task panel to the {{MenuCommand|Length}} input box: {{MenuCommand|Edit → Preferences... → Draft → General → Set focus on Length instead of X coordinate}}. Note that you must move the pointer in the [[3D_view|3D view]] for the change to take effect. |
|||
* {{PropertyView|Arrow Size}}: specifies the size of the symbol displayed at the end of the line. |
|||
* If the {{MenuCommand|Edit → Preferences... → Draft → General → Create Part primitives if possible}} option is checked, the command will create a [[Part_Line|Part Line]] instead of a Draft Line. |
|||
* {{PropertyView|Arrow Type}}: specifies the type of symbol displayed at the end of the line, which can be "Dot", "Circle", "Arrow", or "Tick". |
|||
==Properties== |
|||
<div class="mw-translate-fuzzy"> |
<div class="mw-translate-fuzzy"> |
||
==Propiedades== |
|||
==Archivos de guión== |
|||
Un objeto Línea comparte todas las propiedades de un {{Button|[[Image:Draft_Wire.svg|16px]] [[Draft Wire/es|Borrador Hilo]]}}, sin embargo, sólo algunas de estas propiedades son aplicables a la Línea. |
|||
</div> |
|||
==Scripting== |
|||
La herramienta Línea se puede utilizar en [[macros/es|macros]] y desde la consola de Python utilizando la siguiente función: |
|||
<div class="mw-translate-fuzzy"> |
|||
==Guión== |
|||
{{Emphasis|Ver también:}} [[Draft API/es|Borrador API]] y [[FreeCAD Scripting Basics/es|Fundamentos de Guión FreeCAD]]. |
|||
</div> |
</div> |
||
To create a Draft Line use the {{incode|make_line}} method ({{Version|0.19}}) of the Draft module. This method replaces the deprecated {{incode|makeLine}} method. |
|||
The Line tool can be used in [[macros|macros]] and from the [[Python|Python]] console by using the following function: |
|||
{{Code|code= |
{{Code|code= |
||
line = make_line(p1, p2) |
|||
line = make_line(LineSegment) |
|||
line = make_line(Shape) |
|||
}} |
}} |
||
* Crea un objeto {{incode|Line}} entre los puntos {{incode|p1}} y {{incode|p2}}, cada uno definido por su {{incode|FreeCAD.Vector}}, con unidades en milímetros. |
|||
<div class="mw-translate-fuzzy"> |
|||
* Crea un objeto {{incode|Line}} a partir de un {{incode|Part.LineSegment}}. |
|||
* Crea objeto <code>Line</code> entre dos puntos <code>p1</code> and <code>p2</code>, cada uno definido como <code>FreeCAD.Vector</code> |
|||
* Crea un objeto {{incode|Line}} desde el primer vértice hasta el último del {{incode|Shape}} dado. |
|||
* Crea objeto <code>Line</code> a partir de <code>Part.LineSegment</code> |
|||
* Crea objeto <code>Line</code> que va del primer vértice al último vértice de <code>Shape</code> |
|||
* El [[Draft Linestyle/es|estilo de línea]] actual será usado |
|||
</div> |
|||
Ejemplo: |
Ejemplo: |
||
{{Code|code= |
{{Code|code= |
||
import FreeCAD as App |
import FreeCAD as App |
||
import Draft |
import Draft |
||
doc = App.newDocument() |
|||
p1 = App.Vector(0, 0, 0) |
p1 = App.Vector(0, 0, 0) |
||
Line 109: | Line 119: | ||
p4 = App.Vector(500, 1000, 0) |
p4 = App.Vector(500, 1000, 0) |
||
line1 = Draft.make_line(p1, p2) |
|||
line2 = Draft.make_line(p3, p4) |
|||
_doc.recompute() |
|||
doc.recompute() |
|||
}} |
}} |
||
{{Docnav |
|||
<div class="mw-translate-fuzzy"> |
|||
{{Docnav/es |
|||
| |
| |
||
|[[Draft_Wire| |
|[[Draft_Wire/es|Hilo]] |
||
|[[Draft_Workbench/es|Borrador]] |
|||
|[[Draft_Module|Draft]] |
|||
|IconL= |
|IconL= |
||
|IconR=Draft_Wire.svg |
|IconR=Draft_Wire.svg |
||
|IconC=Workbench_Draft.svg |
|IconC=Workbench_Draft.svg |
||
}} |
}} |
||
</div> |
|||
{{Draft Tools navi{{#translation:}}}} |
{{Draft Tools navi{{#translation:}}}} |
||
{{Userdocnavi{{#translation:}}}} |
{{Userdocnavi{{#translation:}}}} |
||
{{clear}} |
Latest revision as of 04:56, 9 January 2024
Borrador Linea |
Ubicación en el Menú |
---|
Borrador → Línea |
Entornos de trabajo |
Borrador, Arquitectura |
Atajo de teclado por defecto |
L I |
Introducido en versión |
0.7 |
Ver también |
Borrador Hilo, Borrador Punto |
Descripción
La herramienta Línea crea una línea recta definida por dos puntos. Utiliza el Estilo de Línea de Borrador establecido en la Bandeja de Borrador. La herramienta Línea se comporta exactamente como la herramienta Borrador Hilo, excepto que se detiene después de dos puntos.
A Draft Line is in fact a Draft Wire with only two points.
Línea creada por dos puntos
Utilización
See also: Draft Tray, Draft Snap and Draft Constrain.
- Pulse el Línea de Borrador, o utilice el botón Borrador → Línea del menú superior, o utiliza el atajo de teclado: L y luego I.
- Haga clic en un primer punto en la vista 3D, o escriba una coordenada y pulse el añadir punto.
- Haz clic en un segundo punto en la vista 3D, o escribe una coordenada y pulsa el añadir punto.
Options
The single character keyboard shortcuts available in the task panel can be changed. See Draft Preferences. The shortcuts mentioned here are the default shortcuts (for version 0.22).
Opciones
- Pulse X, Y o Z después del primer punto para restringir el segundo punto en el eje dado.
- Para introducir las coordenadas manualmente, simplemente introduzca los números y luego pulse Enter entre cada componente X, Y y Z.
- Pulse R o haga clic en la casilla para activar el modo relativo. Si el modo relativo está activado, las coordenadas del segundo punto son relativas al primero; si no, son absolutas, tomadas desde el origen (0,0,0).
- Pulse T o haga clic en la casilla para activar el modo continuar. Si el modo de continuar está activado, la herramienta Línea se reiniciará después de dar el segundo punto, lo que le permitirá dibujar otro segmento de línea sin tener que volver a pulsar el botón de la herramienta.
- Mantén pulsado Ctrl mientras dibujas para forzar snapping tu punto a la ubicación de snap más cercana, independientemente de la distancia.
- Mantén pulsado Shift mientras dibujas para restringir tu segundo punto horizontal o verticalmente en relación con el primero.
- Pulse Ctrl+Z o pulse el Deshacer para deshacer el último punto.
- Pulse Esc o el botón Close para abortar el comando actual.
Notes
La línea puede editarse haciendo doble clic en el elemento en la vista de árbol, o pulsando el Borrador de edición. A continuación, puede mover los puntos a una nueva posición.
Preferences
See also: Preferences Editor and Draft Preferences.
- To change the initial focus of the task panel to the Length input box: Edit → Preferences... → Draft → General → Set focus on Length instead of X coordinate. Note that you must move the pointer in the 3D view for the change to take effect.
- If the Edit → Preferences... → Draft → General → Create Part primitives if possible option is checked, the command will create a Part Line instead of a Draft Line.
Properties
Propiedades
Un objeto Línea comparte todas las propiedades de un Borrador Hilo, sin embargo, sólo algunas de estas propiedades son aplicables a la Línea.
Scripting
Guión
Ver también: Borrador API y Fundamentos de Guión FreeCAD.
To create a Draft Line use the make_line
method (introduced in version 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)
- Crea un objeto
Line
entre los puntosp1
yp2
, cada uno definido por suFreeCAD.Vector
, con unidades en milímetros. - Crea un objeto
Line
a partir de unPart.LineSegment
. - Crea un objeto
Line
desde el primer vértice hasta el último delShape
dado.
Ejemplo:
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()
- Drafting: Line, Polyline, Fillet, Arc, Arc by 3 points, Circle, Ellipse, Rectangle, Polygon, B-spline, Cubic Bézier curve, Bézier curve, Point, Facebinder, ShapeString, Hatch
- Annotation: Text, Dimension, Label, Annotation styles, Annotation scale
- Modification: Move, Rotate, Scale, Mirror, Offset, Trimex, Stretch, Clone, Array, Polar array, Circular array, Path array, Path link array, Point array, Point link array, Edit, Subelement highlight, Join, Split, Upgrade, Downgrade, Wire to B-spline, Draft to sketch, Set slope, Flip dimension, Shape 2D view
- Draft Tray: Select plane, Set style, Toggle construction mode, AutoGroup
- Snapping: Snap lock, Snap endpoint, Snap midpoint, Snap center, Snap angle, Snap intersection, Snap perpendicular, Snap extension, Snap parallel, Snap special, Snap near, Snap ortho, Snap grid, Snap working plane, Snap dimensions, Toggle grid
- Miscellaneous: Apply current style, Layer, Manage layers, Add a new named group, Move to group, Select group, Add to construction group, Toggle normal/wireframe display, Create working plane proxy, Heal, Show snap toolbar
- Additional: Constraining, Pattern, Preferences, Import Export Preferences, DXF/DWG, SVG, OCA, DAT
- Context menu:
- Layer container: Merge layer duplicates, Add new layer
- Layer: Activate this layer, Select layer contents
- Text: Open hyperlinks
- Wire: Flatten
- Working plane proxy: Write camera position, Write objects state
- 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, Assembly, CAM, Draft, FEM, Inspection, Mesh, OpenSCAD, Part, PartDesign, Points, Reverse Engineering, Robot, Sketcher, Spreadsheet, Surface, TechDraw, Test Framework
- Hubs: User hub, Power users hub, Developer hub