TechDraw View/ru: Difference between revisions
(Created page with "Image:TechDraw_View_example.png") |
(Updating to match new version of source page) |
||
(11 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<languages/> |
<languages/> |
||
{{Docnav |
|||
|[[TechDraw_RedrawPage|Redraw Page]] |
|||
|[[TechDraw_ActiveView|Insert Active View]] |
|||
|[[TechDraw_Module|TechDraw]] |
|||
|IconL=TechDraw RedrawPage.svg |
|||
|IconC=Workbench_TechDraw.svg |
|||
|IconR=TechDraw_ActiveView.svg |
|||
}} |
|||
<div class="mw-translate-fuzzy"> |
|||
{{GuiCommand/ru |
{{GuiCommand/ru |
||
|Name=TechDraw NewView |
|Name=TechDraw NewView |
||
Line 8: | Line 18: | ||
|SeeAlso= |
|SeeAlso= |
||
}} |
}} |
||
</div> |
|||
[[Image:TechDraw_View_example.png]] |
[[Image:TechDraw_View_example.png]] |
||
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. |
|||
==How to use== |
|||
⚫ | |||
⚫ | |||
⚫ | |||
[[Image:TechDraw_View_example.png]] |
|||
==Options== |
|||
{{Caption|View of a solid box with hidden lines}} |
|||
None. |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
==Properties== |
==Properties== |
||
=== Data === |
|||
* {{PropertyData|X}}: The view's horizontal position on the page. (1) |
* {{PropertyData|X}}: The view's horizontal position on the page. (1) |
||
* {{PropertyData|Y}}: The view's vertical position on the page. (1) |
* {{PropertyData|Y}}: The view's vertical position on the page. (1) |
||
Line 28: | Line 46: | ||
* {{PropertyData|Caption}}: Optional short text caption. |
* {{PropertyData|Caption}}: Optional short text caption. |
||
* {{PropertyData|Source}}: Links to the Drawable Objects to be depicted |
* {{PropertyData|Source}}: Links to the Drawable Objects to be depicted |
||
* {{PropertyData|Direction}}: |
* {{PropertyData|Direction}}: 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) |
||
* {{PropertyData|XDirection}}: this vector controls the rotation of the view around the Direction. New in v0.19. (1) |
|||
* {{PropertyData|Perspective}}: True for perspective projection, false for orthogonal projection. |
* {{PropertyData|Perspective}}: True for perspective projection, false for orthogonal projection. |
||
* {{PropertyData|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. |
* {{PropertyData|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. |
||
* {{PropertyData|CoarseView}}: If true, TechDraw will use a polygon approximation to calculate drawing geometry. If false, TechDraw will use a precision algorithm. |
* {{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|Smooth Visible Lines}}: Visible Smooth lines on/off. |
* {{PropertyData|Smooth Visible Lines}}: Visible Smooth lines on/off. |
||
* {{PropertyData|Seam Visible Lines}}: Visible Seam lines on/off. |
* {{PropertyData|Seam Visible Lines}}: Visible Seam lines on/off. |
||
Line 41: | Line 61: | ||
* {{PropertyData|Iso Count}}: Number of Isometric(u,v) lines to draw on each face. |
* {{PropertyData|Iso Count}}: Number of Isometric(u,v) lines to draw on each face. |
||
⚫ | |||
=== View === |
|||
* {{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_LineGroup|Line Groups]]. |
* {{PropertyView|LineWidth}}: The thickness of visible lines. See [[TechDraw_LineGroup|Line Groups]]. |
||
Line 51: | Line 74: | ||
* {{PropertyView|VertCenterLine}}: Show a vertical centerline through view. |
* {{PropertyView|VertCenterLine}}: Show a vertical centerline through view. |
||
* {{PropertyView|ShowSectionLine}}: Show/hide section line if applicable. |
* {{PropertyView|ShowSectionLine}}: Show/hide section line if applicable. |
||
⚫ | |||
==Scripting== |
==Scripting== |
||
Views can be added to Pages using Python. |
|||
{{Emphasis|See also:}} [[TechDraw API|TechDraw API]] and [[FreeCAD Scripting Basics|FreeCAD Scripting Basics]]. |
|||
The New View tool can be used in [[macros|macros]] and from the [[Python|Python]] console by using the following functions: |
|||
{{Code|code= |
{{Code|code= |
||
view = FreeCAD.ActiveDocument.addObject('TechDraw::DrawViewPart','View') |
view = FreeCAD.ActiveDocument.addObject('TechDraw::DrawViewPart','View') |
||
Line 63: | Line 88: | ||
}} |
}} |
||
{{Docnav |
|||
⚫ | |||
|[[TechDraw_RedrawPage|Redraw Page]] |
|||
⚫ | |||
|[[TechDraw_ActiveView|Insert Active View]] |
|||
* Projection Direction property: 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). |
|||
|[[TechDraw_Module|TechDraw]] |
|||
* 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. |
|||
|IconL=TechDraw RedrawPage.svg |
|||
⚫ | |||
|IconC=Workbench_TechDraw.svg |
|||
|IconR=TechDraw_ActiveView.svg |
|||
}} |
|||
{{TechDraw Tools navi{{#translation:}}}} |
|||
{{Userdocnavi{{#translation:}}}} |
|||
{{clear}} |
Revision as of 22:32, 21 March 2020
TechDraw NewView |
Системное название |
---|
TechDraw NewView |
Расположение в меню |
TechDraw → View |
Верстаки |
TechDraw |
Быстрые клавиши |
na |
Представлено в версии |
- |
См. также |
Нет |
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.
View of a solid box with hidden lines
Usage
- Select one or more objects (Body, App::Part, Part::Feature, Draft object, ... See Notes) in the 3D view or 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 Ctrl to select multiple items in the tree.
- Press the Insert View button
View will try to draw anything with a Shape
property. You can select Draft objects and PartDesign Bodies also. View will also extract any shapes from objects within an App::Part container or a Group.
Properties
Data
- Данные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: 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)
- ДанныеXDirection: this vector controls the rotation of the view around the Direction. New in v0.19. (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. 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: 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.
- Данные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.
(1) these properties are common to all View types.
View
- Вид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.
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)
TechDraw
- Pages: Insert Default Page, Insert Page using Template, Redraw Page, Print All Pages
- Views: Insert View, Insert Active View, Insert Projection Group, Insert Section View, Insert Complex Section View, Insert Detail View, Insert Draft Workbench Object, Insert Arch Workbench Object, Insert Spreadsheet View, Insert Clip Group, Share View, Project Shape
- Stacking: Move view to top of stack, Move view to bottom of stack, Move view up one level, Move view down one level
- Decorations: Hatch Face using Image File, Apply Geometric Hatch to Face, Insert SVG Symbol, Insert Bitmap Image, Turn View Frames On/Off
- Dimensions: Insert Length Dimension, Insert Horizontal Dimension, Insert Vertical Dimension, Insert Radius Dimension, Insert Diameter Dimension, Insert Angle Dimension, Insert 3-Point Angle Dimension, Insert Horizontal Extent Dimension, Insert Vertical Extent Dimension, Link Dimension to 3D Geometry, Insert Balloon Annotation, Insert Axonometric Length Dimension, Insert Landmark Dimension, Adjust Geometric References of Dimension
- Annotations: Insert Annotation, Add Leaderline to View, Insert Rich Text Annotation, Add Cosmetic Vertex, Add Midpoint Vertices, Add Quadrant Vertices, Add Centerline to Faces, Add Centerline between 2 Lines, Add Centerline between 2 Points, Add Cosmetic Line Through 2 points, Add Cosmetic Circle, Change Appearance of Lines, Show/Hide Invisible Edges, Add Welding Information to Leader, Add Surface Finish Symbol, Add Hole or Shaft Tolerances
- Extensions:
- Attributes and modifications: Select Line Attributes, Cascade Spacing and Delta Distance, Change Line Attributes, Extend Line, Shorten Line, Lock/Unlock View, Position Section View, Position Horizontal Chain Dimensions, Position Vertical Chain Dimensions, Position Oblique Chain Dimensions, Cascade Horizontal Dimensions, Cascade Vertical Dimensions, Cascade Oblique Dimensions, Calculate the area of selected faces, Calculate the arc length of selected edges, Customize format label
- Centerlines and threading: Add Circle Centerlines, Add Bolt Circle Centerlines, Add Cosmetic Thread Hole Side View, Add Cosmetic Thread Hole Bottom View, Add Cosmetic Thread Bolt Side View, Add Cosmetic Thread Bolt Bottom View, Add Cosmetic Intersection Vertex(es), Add an offset vertex, Add Cosmetic Circle, Add Cosmetic Arc, Add Cosmetic Circle 3 Points, Add Cosmetic Parallel Line, Add Cosmetic Perpendicular Line
- Dimensions: Create Horizontal Chain Dimensions, Create Vertical Chain Dimensions, Create Oblique Chain Dimensions, Create Horizontal Coordinate Dimensions, Create Vertical Coordinate Dimensions, Create Oblique Coordinate Dimensions, Create Horizontal Chamfer Dimension, Create Vertical Chamfer Dimension, Create Arc Length Dimension, Insert '⌀' Prefix, Insert '〼' Prefix, Remove Prefix, Increase Decimal Places, Decrease Decimal Places
- Export: Export Page as SVG, Export Page as DXF
- Additional: Line Groups, Templates, Hatching, Geometric dimensioning and tolerancing, Preferences
Документация пользователя
- Начинающим
- Установка: Загрузка, Windows, Linux, Mac, Дополнительных компонентов, Docker, AppImage, Ubuntu Snap
- Базовая: О FreeCAD, Интерфейс, Навигация мыши, Методы выделения, Имя объекта, Настройки, Верстаки, Структура документа, Свойства, Помоги FreeCAD, Пожертвования
- Помощь: Учебники, Видео учебники
- Верстаки: Std Base, Arch, Assembly, CAM, Draft, FEM, Inspection, Mesh, OpenSCAD, Part, PartDesign, Points, Reverse Engineering, Robot, Sketcher, Spreadsheet, Start, Surface, TechDraw, Test Framework, Web