TechDraw View/ru: Difference between revisions

From FreeCAD Documentation
(Updating to match new version of source page)
(Updating to match new version of source page)
Line 43: Line 43:


* {{PropertyView|Keep Label}}: Always show View Label if true.
* {{PropertyView|Keep Label}}: Always show View Label if true.
* {{PropertyView|LineWidth}}: The thickness of visible lines. See [[TechDraw_LineGroups|Line Groups]].
* {{PropertyView|LineWidth}}: The thickness of visible lines. See [[TechDraw_LineGroup|Line Groups]].
* {{PropertyView|HiddenWidth}}: The thickness of hidden lines, if enabled.
* {{PropertyView|HiddenWidth}}: The thickness of hidden lines, if enabled.
* {{PropertyView|IsoWidth}}: The thickness of isometric(u,v) surface lines and Dimension lines.
* {{PropertyView|IsoWidth}}: The thickness of isometric(u,v) surface lines and Dimension lines.
Line 67: Line 67:
* View will draw anything with a Shape property. You can select Draft objects or Bodies also. View will also extract any shapes from objects within an App::Part container or a DocumentObject Group.
* View will draw anything with a Shape property. You can select Draft objects or Bodies also. View will also extract any shapes from objects within an App::Part container or a DocumentObject Group.
* 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.
* 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.
* Note that 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.



{{clear}}
{{clear}}

Revision as of 21:21, 22 February 2018

TechDraw NewView

Системное название
TechDraw NewView
Расположение в меню
TechDraw → View
Верстаки
TechDraw
Быстрые клавиши
na
Представлено в версии
-
См. также
Нет

Description

The View tool adds a representation of one or more objects to a Drawing page. This is the basic building block of the TechDraw module. Most other Views are derived in some way from NewView.

File:ViewOfBox2.png

How to use

  1. Select one or more objects (Body, App::Part, Part::Feature, Draft object, ... See Notes) 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-view.png View button

Options

None.

Properties

  • ДанныеX: The view's horizontal position on the page. (1)
  • ДанныеY: The view's vertical position on the page. (1)
  • ДанныеLockPosition: Prevents Views from being dragged in the Gui when true. The View can still be moved by changing X,Y properties. (1)
  • ДанныеRotation: Counterclockwise rotation of the View on the page in degrees. (1)
  • ДанныеScaleType: "Document": use the Page's scale setting. "Custom": use a scale unique to this view. "Automatic": fit view to page. (1)
  • ДанныеScale: A view will be rendered on the page in Scale:1 ratio to the Source. (1)
  • ДанныеCaption: Optional short text caption.
  • ДанныеSource: Links to the Drawable Objects to be depicted
  • ДанныеDirection: A vector representing the viewing direction. Common Directions are Front: (0,-1,0), Top: (0,0,1), Right: (1,0,0), Axo: (1,1,1). (1)
  • ДанныеPerspective: True for perspective projection, false for orthogonal projection.
  • ДанныеFocus: 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.
  • ДанныеCoarseView: If true, TechDraw will use a polygon approximation to calculate drawing geometry. If false, TechDraw will use a precision algorithm. See Notes.
  • ДанныеSmooth Visible Lines: Visible Smooth lines on/off.
  • ДанныеSeam Visible Lines: Visible Seam lines on/off.
  • ДанныеIso Visible Lines: Visible Isometric(u,v) lines on/off.
  • ДанныеHard Hidden Lines: Hidden lines on/off.
  • ДанныеSmooth Hidden Lines: Hidden Smooth lines on/off.
  • ДанныеSeam Hidden Lines: Hidden Seam lines on/off.
  • ДанныеIso Hidden Lines: Hidden Isometric(u,v) lines on/off.
  • ДанныеIso Count: Number of Isometric(u,v) lines to draw on each face.
  • ВидKeep Label: Always show View Label if true.
  • ВидLineWidth: The thickness of visible lines. See Line Groups.
  • ВидHiddenWidth: The thickness of hidden lines, if enabled.
  • ВидIsoWidth: The thickness of isometric(u,v) surface lines and Dimension lines.
  • ВидExtraWidth: not implemented yet.
  • ВидShowCenters: Circle/arc center marks on/off.
  • ВидCenterScale: Circular arc center mark size adjustment, if enabled.
  • ВидHorizCenterLine: Show a horizontal centerline through view.
  • ВидVertCenterLine: Show a vertical centerline through view.
  • ВидShowSectionLine: Show/hide section line if applicable.

(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. View will also extract any shapes from objects within an App::Part container or a DocumentObject Group.
  • 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.
  • Note that CoarseView is affected by an upstream bug in OCCT (#3332) which causes the View's position on the Page to be slightly off from the specified X,Y values.
Other languages: