Draft Clone/es: Difference between revisions

From FreeCAD Documentation
(Created page with "==Guión==")
(Created page with "==Propiedades==")
Line 34: Line 34:
</div>
</div>


==Properties==
==Propiedades==


See also: [[property_editor|Property editor]].
See also: [[property_editor|Property editor]].

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

Propiedades

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

Guión

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()