TechDraw View

From FreeCAD Documentation
Revision as of 19:28, 25 August 2016 by Wandererfan (talk | contribs) (Created page with "<translate> <!--T:1--> {{GuiCommand|Name=TechDraw NewView|Workbenches=TechDraw|MenuLocation=TechDraw → View|Shortcut=na|SeeAlso=}} ==Description== <!--...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

TechDraw NewView

Menu location
TechDraw → View
Workbenches
TechDraw
Default shortcut
na
Introduced in version
-
See also
None

Description

The View tool adds a representation of a Part to a Drawing page.

How to use

  1. Select a part in the 3D window or tree.
  2. If you have multiple drawing pages in your document, you will also need to select the desired page in the tree.
  3. Press the File:TechDraw NewView.svg TechDraw NewView button

Options

None.

Properties

  • DataX: The view's horizontal position on the page. (1)
  • DataY: The view's vertical position on the page. (1)
  • DataScale: A view will be rendered on the page in Scale:1 ratio to the Source. (1)
  • DataScaleType: "Document": use the Page's scale setting. "Custom": use a scale unique to this view. "Automatic": fit view to page. (1)
  • DataRotation: Counterclockwise rotation of the View on the page in degrees. (1)
  • DataSource: The 3D object to be depicted
  • DataDirection: A vector representing the viewing direction.
  • DataShowHiddenLines: Hidden lines on/off.
  • DataShowSmoothLines: Smooth lines on/off.
  • DataShowSeamLines: Seam lines on/off.
  • DataTolerance: Internal tolerance.
  • DataXAxisDirection: Where to place projection's XAxis in display.
  • DataLineWidth: The thickness of visible lines.
  • DataHiddenWidth: The thickness of hidden lines, if enabled.
  • DataShowCenters: Circle/arc center marks on/off.
  • DataCenterScale: Center mark size adjustment, if enabled.
  • DataHorizCenterLine: Show a horizontal centerline through view.
  • DataVertCenterLine: Show a vertical centerline through view.
  • DataShowSectionLine: Show/hide section line if applicable.
  • DataHorizSectionLine: Section line is horizontalif true, vertical if false.
  • DataArrowUpSection: Section line arrows points up/right if true, down/left if false.
  • DataSymbolSection: Section identifier.

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

Scripting

Views can be added to Pages using Python.

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)

Notes

  • View will draw anything with a Shape property. You can select Draft objects or Bodies also.