TechDraw View/es: Difference between revisions

From FreeCAD Documentation
(Updating to match new version of source page)
(Updating to match new version of source page)
Line 27: Line 27:
La herramienta Vista añade una representación de uno o más objetos a una página de Dibujo. Este es el elemento básico del módulo TechDraw. La mayoría de las otras Vistas se derivan de alguna manera de NuevoVista.
La herramienta Vista añade una representación de uno o más objetos a una página de Dibujo. Este es el elemento básico del módulo TechDraw. La mayoría de las otras Vistas se derivan de alguna manera de NuevoVista.
</div>
</div>

View will try to draw anything with a {{incode|Shape}} property. You can select [[Sketcher_Workbench|sketches]], [[PartDesign_Body|PartDesign Bodies]], [[Draft_Workbench|Draft objects]] etc. View will also extract any shapes from objects within a [[Std_Part|Std Part]] or a [[Std_Group|Std Group]].


[[Image:TechDraw_View_example.png]]
[[Image:TechDraw_View_example.png]]
Line 33: Line 35:
==Utilización==
==Utilización==


# Optionally rotate the [[3D_view|3D view]]. The camera direction in the [[3D_view|3D view]] determines the initial value of the {{PropertyData|Direction}} property of the View.
# Select one or more objects (Body, App::Part, Part::Feature, Draft object, ... See Notes) in the [[3D_view|3D view]] or [[Tree_view|Tree view]].
# Select one or more objects in the [[3D_view|3D view]] or [[Tree_view|Tree view]].
# If you have multiple drawing pages in your document, you will also need to select the desired page in the tree. Use the {{Button|Ctrl}} to select multiple items in the tree.
# If there are multiple drawing pages in the document: optionally add the desired page to the selection by selecting it in the [[Tree_view|Tree view]]. This is not optional for {{VersionMinus|0.19}}.
# Press the {{Button|[[Image:TechDraw_View.svg|16px]] [[TechDraw_View|Insert View]]}} button
# There are several ways to invoke the tool:

#* Press the {{Button|[[Image:TechDraw_View.svg|16px]] [[TechDraw_View|TechDraw View]]}} button.
View will try to draw anything with a {{incode|Shape}} property. You can select [[Draft_Workbench|Draft]] objects and [[PartDesign_Body|PartDesign Bodies]] also. View will also extract any shapes from objects within an [[Std_Part|App::Part]] container or a [[Std_Group|Group]].
#* Select the {{MenuCommand|TechDraw → [[Image:TechDraw_View.svg|16px]] Insert View}} option from the menu.
# If there are multiple drawing pages in the document and you have not yet selected a page, the {{MenuCommand|Page Chooser}} dialog box opens: {{Version|0.20}}
## Select the desired page.
## Press the {{Button|OK}} button.


==Propiedades==
==Propiedades==
Line 58: Line 64:


* {{PropertyData|CoarseView}}: If true, TechDraw will use a polygon approximation to calculate drawing geometry. If false, TechDraw will use a precision algorithm. CoarseView can be much faster for complex models. The quality of the drawing is reduced, since every curve is approximated as a series of short line segments. Vertices are not displayed in CoarseView since each short segment would result in two new Vertices and the display becomes cluttered. Linear Dimensions can be added to a CoarseView, but are unlikely to be useful.
* {{PropertyData|CoarseView}}: If true, TechDraw will use a polygon approximation to calculate drawing geometry. If false, TechDraw will use a precision algorithm. CoarseView can be much faster for complex models. The quality of the drawing is reduced, since every curve is approximated as a series of short line segments. Vertices are not displayed in CoarseView since each short segment would result in two new Vertices and the display becomes cluttered. Linear Dimensions can be added to a CoarseView, but are unlikely to be useful.
:{{Emphasis|Note:}} CoarseView is affected by an upstream bug in OCCT ([https://www.freecadweb.org/tracker/view.php?id=3332 #3332]) which causes the View's position on the Page to be slightly off from the specified X,Y values.
* {{PropertyData|Smooth Visible}}: Visible Smooth lines on/off.
* {{PropertyData|Smooth Visible}}: Visible Smooth lines on/off.
* {{PropertyData|Seam Visible}}: Visible Seam lines on/off.
* {{PropertyData|Seam Visible}}: Visible Seam lines on/off.

Revision as of 19:37, 7 January 2022

TechDraw Vista

Ubicación en el Menú
TechDraw → Insertar Vista
Entornos de trabajo
TechDraw
Atajo de teclado por defecto
Ninguno
Introducido en versión
-
Ver también
TechDraw Insertar Grupo de Proyección, TechDraw Insertar vista de sección

Descripción

La herramienta Vista añade una representación de uno o más objetos a una página de Dibujo. Este es el elemento básico del módulo TechDraw. La mayoría de las otras Vistas se derivan de alguna manera de NuevoVista.

View will try to draw anything with a Shape property. You can select sketches, PartDesign Bodies, Draft objects etc. View will also extract any shapes from objects within a Std Part or a Std Group.

Vista de una caja sólida con líneas ocultas

Utilización

  1. Optionally rotate the 3D view. The camera direction in the 3D view determines the initial value of the DatosDirection property of the View.
  2. Select one or more objects in the 3D view or Tree view.
  3. If there are multiple drawing pages in the document: optionally add the desired page to the selection by selecting it in the Tree view. This is not optional for version 0.19 and below.
  4. There are several ways to invoke the tool:
    • Press the TechDraw View button.
    • Select the TechDraw → Insert View option from the menu.
  5. If there are multiple drawing pages in the document and you have not yet selected a page, the Page Chooser dialog box opens: introduced in version 0.20
    1. Select the desired page.
    2. Press the OK button.

Propiedades

Datos

Base

  • DatosX: The view's horizontal position on the page. (1)
  • DatosY: The view's vertical position on the page. (1)
  • DatosLockPosition: Prevents Views from being dragged in the Gui when true. The View can still be moved by changing X,Y properties. (1)
  • DatosRotation: Counterclockwise rotation of the View on the page in degrees. (1)
  • DatosScaleType: "Document": use the Page's scale setting. "Custom": use a scale unique to this view. "Automatic": fit view to page. (1)
  • DatosScale: A view will be rendered on the page in Scale:1 ratio to the Source. (1)
  • DatosCaption: Optional short text caption.

Cosmetics

HLR Parameters

  • DatosCoarseView: If true, TechDraw will use a polygon approximation to calculate drawing geometry. If false, TechDraw will use a precision algorithm. CoarseView can be much faster for complex models. The quality of the drawing is reduced, since every curve is approximated as a series of short line segments. Vertices are not displayed in CoarseView since each short segment would result in two new Vertices and the display becomes cluttered. Linear Dimensions can be added to a CoarseView, but are unlikely to be useful.
  • DatosSmooth Visible: Visible Smooth lines on/off.
  • DatosSeam Visible: Visible Seam lines on/off.
  • DatosIso Visible: Visible Isometric(u,v) lines on/off.
  • DatosHard Hidden: Hidden lines on/off.
  • DatosSmooth Hidden: Hidden Smooth lines on/off.
  • DatosSeam Hidden: Hidden Seam lines on/off.
  • DatosIso Hidden: Hidden Isometric(u,v) lines on/off.
  • DatosIso Count: Number of Isometric(u,v) lines to draw on each face.

Projection

  • DatosSource: Links to the drawable objects to be depicted.
  • DatosXSource: Links to the drawable objects in an external file. introduced in version 0.19
  • DatosDirection: this vector controls the direction from which you are viewing the object. +X is right, -X is left, +Y is rear, -Y is front (looking into the screen), +Z is up and -Z is down. So a Front view is (0,-1,0) and an isometric view is (1,-1,1). (1)
  • DatosXDirection: this vector controls the rotation of the view around the Direction. introduced in version 0.19. (1)
  • DatosPerspective: True for perspective projection, false for orthogonal projection.
  • DatosFocus: Distance from camera to projection plane for perspective projections. Needs to be adjusted to fit the object. Too far and the perspective is lost, too close and the object is distorted.

(1) these properties are common to all View types.

View

  • VistaKeep Label: Always show View Label if true.
  • VistaLineWidth: The thickness of visible lines. See Line Groups.
  • VistaHiddenWidth: The thickness of hidden lines, if enabled.
  • VistaIsoWidth: The thickness of isometric(u,v) surface lines and Dimension lines.
  • VistaExtraWidth: not implemented yet.
  • VistaShowCenters: Circle/arc center marks on/off.
  • VistaCenterScale: Circular arc center mark size adjustment, if enabled.
  • VistaHorizCenterLine: Show a horizontal centerline through view.
  • VistaVertCenterLine: Show a vertical centerline through view.
  • VistaShowSectionLine: Show/hide section line if applicable.

Scripting

See also: TechDraw API and FreeCAD Scripting Basics.

The New View tool can be used in macros and from the Python console by using the following functions:

view = FreeCAD.ActiveDocument.addObject('TechDraw::DrawViewPart','View')
rc = page.addView(view)
FreeCAD.ActiveDocument.View.Source = [App.ActiveDocument.Box]
FreeCAD.ActiveDocument.View.Direction = (0.0,0.0,1.0)