Draft Shape2DView: Difference between revisions

From FreeCAD Documentation
m (grammar)
(See also the TechDraw Workbench for more information)
Line 6: Line 6:
|MenuLocation=Draft → Shape 2D View
|MenuLocation=Draft → Shape 2D View
|Workbenches=[[Draft Module|Draft]], [[Arch Module|Arch]]
|Workbenches=[[Draft Module|Draft]], [[Arch Module|Arch]]
|SeeAlso=[[Part Workbench]], [[Arch Workbench]]
|SeeAlso=[[Part Workbench]], [[TechDraw Workbench]]
}}
}}



Revision as of 06:10, 14 November 2018

Draft Shape2DView

Menu location
Draft → Shape 2D View
Workbenches
Draft, Arch
Default shortcut
None
Introduced in version
-
See also
Part Workbench, TechDraw Workbench

Description

This tool produces a 2D projection from a selected 3D solid object such as those created with the Part, PartDesign, and Arch Workbenches.

The resulting projection is a Draft object and is placed in the 3D view. This object can be displayed on a TechDraw Workbench Page, using the TechDraw NewDraft tool. Alternatively, TechDraw has its own tools to create projected views in TechDraw NewView and TechDraw NewProjGroup; however, these tools are meant for preparing technical drawings, so they create the views only in the drawing page, and not in the 3D view.

How to use

  1. Select the object you want to extract a 2D view from
  2. Rotate the view (or use the view presets shortcuts) so it reflects the direction you want to project the object to. For example, using a Top view will project the object on the XY plane, vertically along the Z axis like on the image above.
  3. Press the Draft Shape2DView button

The default projection direction is along the current view.

Options

  • If the selected object is an Arch SectionPlane, the 2D projection will be of the contents of the Section plane, and the projection vector will be taken from the section plane instead of the Projection property below.
  • The normal operating mode is Solid, which projects the whole shape, but, if you selected some faces of the base object when creating the 2D view, you can also set the Individual Faces mode, which will project only the faces that were selected.
  • If the selected object is an Arch SectionPlane, Cutlines and Cutfaces projection mode are also available, which project only the edges being cut by the section plane. Cutfaces mode displays the cut areas of solids as faces.

Properties

  • DataProjection: The direction of the projection.
  • DataProjection Mode: The mode of the projection: solid, individual faces, or cutlines.
  • DataIn Place: If this is True, when using Cutlines or Cutfaces mode (Arch SectionPlane only), the result will appear at the cut plane location instead of the ground plane introduced in version 0.17
  • DataHiddenLines: Shows hidden lines or not
  • DataTessellation: Tessellate Ellipses and BSplines into line segments
  • DataSegment Length: The size of segments if Tessellation is turned on
  • DataVisible Only: If True, this view will be recomputed only if it is visible

Scripting

The Draft Shape2DView tool can by used in macros and from the python console by using the following function:

makeShape2DView (object,[projection],[facenumbers])
  • Adds a 2D shape to the document, which is a 2D projection of the given object.
  • A specific projection vector can also be given.
  • Returns the generated object.
  • You can also provide a list of face numbers to be considered.

Example:

import FreeCAD,Draft
Draft.makeShape2DView(FreeCAD.ActiveDocument.ActiveObject)