Draft Clone/es: Difference between revisions

From FreeCAD Documentation
(Created page with "{{Docnav/es |Estiramiento |ArregloOrtogonal |Borrador |IconL=Draft_Stretch.svg |IconR=Draft_OrthoArray.svg |Ic...")
No edit summary
Line 52: Line 52:


==Scripting==
==Scripting==

<div class="mw-translate-fuzzy">
==Archivos de guión==


La herramienta Clonar se puede utilizar en [[macros/es|macros]] y desde la consola de Python utilizando la siguiente función:
La herramienta Clonar se puede utilizar en [[macros/es|macros]] y desde la consola de Python utilizando la siguiente función:
</div>


To create a clone use the {{incode|make_clone}} method ({{Version|0.19}}) of the Draft module. This method replaces the deprecated {{incode|clone}} method.
To create a clone use the {{incode|make_clone}} method ({{Version|0.19}}) of the Draft module. This method replaces the deprecated {{incode|clone}} method.

Revision as of 15:57, 5 July 2021

Draft Clone

Ubicación en el Menú
Boceto → Clonar
Entornos de trabajo
Boceto, Arquitectura
Atajo de teclado por defecto
Ninguno
Introducido en versión
-
Ver también
Ninguno

Descripción

Esta herramienta crea un clon (una copia que está paramétricamente vinculada al objeto original) de un objeto seleccionado. Si el objeto original cambia, el clon también cambia, pero mantiene su posición, rotación y escala.

The command can be used on 2D objects created with the Draft Workbench or Sketcher Workbench, but also on many 3D objects such as those created with the Part Workbench, PartDesign Workbench or Arch Workbench. Clones of 2D objects can be used in PartDesign Bodies.

Usage

Utilización

  1. Selecciona los objetos que quieres clonar
  2. Presiona el botón Clonar

Properties

See also: Property editor.

An object created with the Draft Clone command is derived from a Part Part2DObject, a Part Feature object or, if an Arch Clone is created, from the object type of the source object. It inherits all properties from that object. A clone derived from one of the first two objects also has the following additional properties:

Data

Draft

Propiedades

  • DatosScale: Especifica un factor de escala para el clon
  • El resultado de la herramienta Escalar también es un clon

Scripting

La herramienta Clonar se puede utilizar en macros y desde la consola de Python utilizando la siguiente función:

To create a clone use the make_clone method (introduced in version 0.19) of the Draft module. This method replaces the deprecated clone method.

cloned_object = make_clone(obj, delta=None, forcedraft=False)
  • Crea un clon de un o más objetos dados.
  • El clon es una copia exacta vinculada al objeto dado.
  • Si el objeto original cambia, el objeto final también cambia. Opcionalmente, puedes indicar un vector delta para mover el clon desde su posición original.

Ejemplo:

import FreeCAD as App
import Draft

doc = App.newDocument()

place = App.Placement(App.Vector(1000, 0, 0), App.Rotation())
polygon1 = Draft.make_polygon(3, 750)
polygon2 = Draft.make_polygon(5, 750, placement=place)

vector = App.Vector(2600, 500, 0)
cloned_object = Draft.clone([polygon1, polygon2], delta=vector)

cloned_object.Fuse = True

doc.recompute()