Draft Drawing/es

From FreeCAD Documentation
Revision as of 05:00, 21 February 2020 by FuzzyBot (talk | contribs) (Updating to match new version of source page)
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.


Development of the Drawing Workbench stopped in FreeCAD 0.16; the new TechDraw Workbench aiming to replace it was introduced in v0.17. Both workbenches are still provided in v0.17, but the Drawing Workbench may be removed in future releases.

Dibujo

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

Descripción

Esta herramienta te permite poner los objetos seleccionados en una hoja de dibujo SVG. Si no existe ninguna hoja en el documento, se creará una por defecto.

This tool works similarly to the Drawing View tool but is optimized for Draft Workbench objects, and can render 2D objects with a face filling. It can handle specific objects such as Draft Dimension and Draft Text, that the Drawing View tool cannot handle.

Draft object and dimensions imported into a Drawing page

Utilización

  1. Selecciona los objetos que quieres poner en una hoja de dibujo
  2. Presiona el botón de Dibujo

Notes

  • The tool will work best with 2D objects from the Draft Workbench or Sketcher Workbench.
  • The selected object can also be an Arch SectionPlane, which will show the elements viewed by that plane.
  • If there is no existing page, a new one will be created.
  • If no page was selected but there is at least one in the document, the first page found will be used to put the projections.
  • If you select a sheet and the objects already projected on that sheet, the projections will be updated.

Opciones

  • Selecciona los objetos que quieras poner en la hoja de dibujo. La herramienta trabajará mejor con objetos planos 2D desde los módulos de Boceto o Croquizado.
  • Si el objeto seleccionado es una Sección plana de arquitectura, esta herramienta creará una vista adicional de dicho plano de sección.
  • En la misma selección, añade el objeto página en el que quieras dibujar tus objetos. Si no existe ninguna página, se creará una nueva. Si no se selecciona ningún objeto página pero existe al menos uno en el documento, el primero que se encuentre será en el que se dibuje.
  • Si seleccionas una hoja de dibujo existente, y los objetos de la selección que estén ya en esa hoja de dibujo (por ejemplo para un objeto "rectángulo" que tuviera ya un objeto "ViewRectangle" en la hoja), serán sustituidos. Esto te permite simplemente seleccionar todos los objetos y enviarlos a una página existente, la cual simplemente se actualizará.

Propiedades

  • DatosFill Style: Para formas cerradas, permite especificar uno de los estilos de relleno de Boceto, o utilizar el color de la forma.
  • DatosFont Size: Te permite especificar el tamaño de letra de los textos y dimensiones.
  • DatosLine Width: Te permite especificar el espesor de línea de los objetos visualizados.

Programación

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

DrawingView = makeDrawingView(obj, page, lwmod=None, tmod=None, otherProjection=None)
  • Creates a DrawingView from obj in the specified page.
  • If given, lwmod modifies line weights in percentage, and tmod modifies text heights in percentage.

The attributes of the view usually need to be modified so that it is displayed correctly in the drawing page. In particular, the position is controlled by X and Y, which are given in millimeters, and Scale is important to correctly fit the projected shape in the page. The scale usually ranges from 1 to 0.25 (1:1 to 1:4) for small solids, and from 0.02 to 0.01 (1:50 to 1:100) for typical architectural elements.

Ejemplo:

import FreeCAD, Draft, Drawing

obj = Draft.makePolygon(5, 1000)
page = FreeCAD.ActiveDocument.addObject('Drawing::FeaturePage', 'Page')
page.Template = FreeCAD.getResourceDir() + 'Mod/Drawing/Templates/A3_Landscape.svg'

View = Draft.makeDrawingView(obj, page)
View.Scale = 0.02
FreeCAD.ActiveDocument.recompute()

View.X = 200
View.Y = 150
FreeCAD.ActiveDocument.recompute()