TechDraw View/ro: Difference between revisions

From FreeCAD Documentation
No edit summary
(Updating to match new version of source page)
(7 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<languages/>
<languages/>

<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
{{Docnav/ro
{{Docnav/ro
Line 26: Line 27:


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

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 32: Line 35:
<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
==Cum se utilizează==
==Cum se utilizează==
# Selectați unul sau mai multe obiecte (Corp, Aplicație :: Parte, Parte :: Funcție, Proiect de obiect, ... Vezi Note) în fereastra sau arborele 3D.
# Dacă aveți mai multe pagini de desen în document, va trebui, de asemenea, să selectați pagina dorită din arborescență.
# Apăsați butonul {{KEY|[[Image:Techdraw-view.png|24px]] [[TechDraw NewView|View]]}}
</div>
</div>


# 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|Insert 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.


==Proprietăți==
==Proprietăți==
Line 68: Line 72:


{{TitleProperty|Base}}
{{TitleProperty|Base}}

* {{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)
* {{PropertyData|LockPosition}}: Prevents Views from being dragged in the Gui when true. The View can still be moved by changing X,Y properties. (1)
* {{PropertyData|Lock Position}}: Prevents Views from being dragged in the Gui when true. The View can still be moved by changing X,Y properties. (1)
* {{PropertyData|Rotation}}: Counterclockwise rotation of the View on the page in degrees. (1)
* {{PropertyData|Rotation}}: Counterclockwise rotation of the View on the page in degrees. (1)
* {{PropertyData|ScaleType}}: "Document": use the Page's scale setting. "Custom": use a scale unique to this view. "Automatic": fit view to page. (1)
* {{PropertyData|Scale Type}}: "Document": use the Page's scale setting. "Custom": use a scale unique to this view. "Automatic": fit view to page. (1)
* {{PropertyData|Scale}}: A view will be rendered on the page in Scale:1 ratio to the Source. (1)
* {{PropertyData|Scale}}: A view will be rendered on the page in Scale:1 ratio to the Source. (1)
* {{PropertyData|Caption}}: Optional short text caption.
* {{PropertyData|Caption}}: Optional short text caption.

(1) Aceste proprietăți sunt comune tuturor tipurilor de vizualizare.


{{TitleProperty|Cosmetics}}
{{TitleProperty|Cosmetics}}


{{TitleProperty|HLR Parameters}}
{{TitleProperty|HLR Parameters}}

* {{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|Coarse View}}: 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.
Line 91: Line 98:


{{TitleProperty|Projection}}
{{TitleProperty|Projection}}

* {{PropertyData|Source}}: Links to the drawable objects to be depicted.
* {{PropertyData|Source}}: Links to the drawable objects to be depicted.
* {{PropertyData|XSource}}: Links to the drawable objects in an external file. {{Version|0.19}}
* {{PropertyData|XSource}}: Links to the drawable objects in an external file. {{Version|0.19}}
* {{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|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).
* {{PropertyData|XDirection}}: this vector controls the rotation of the view around the Direction. {{Version|0.19}}. (1)
* {{PropertyData|XDirection}}: this vector controls the rotation of the view around the Direction. {{Version|0.19}}.
* {{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.


=== View ===
(1) Aceste proprietăți sunt comune tuturor tipurilor de vizualizare.


<div class="mw-translate-fuzzy">
* {{PropertyView|Keep Label}}: Afișați întotdeauna eticheta de vizualizare dacă este True.
* {{PropertyView|Keep Label}}: Afișați întotdeauna eticheta de vizualizare dacă este True.
* {{PropertyView|LineWidth}}: Grosimea liniilor vizibile. Vezi [[TechDraw_LineGroup|Line Groups]].
* {{PropertyView|LineWidth}}: Grosimea liniilor vizibile. Vezi [[TechDraw_LineGroup|Line Groups]].
Line 110: Line 119:
* {{PropertyView|VertCenterLine}}: Afișează o linie verticală pe centrul vizualizării.
* {{PropertyView|VertCenterLine}}: Afișează o linie verticală pe centrul vizualizării.
* {{PropertyView|ShowSectionLine}}: Arată/ascunde linia de scțiune dacă există
* {{PropertyView|ShowSectionLine}}: Arată/ascunde linia de scțiune dacă există
</div>


==Script==
==Script==
Line 124: Line 134:
FreeCAD.ActiveDocument.View.Direction = (0.0,0.0,1.0)
FreeCAD.ActiveDocument.View.Direction = (0.0,0.0,1.0)
}}
}}



<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
Line 129: Line 140:
|[[TechDraw_RedrawPage|Redraw Page]]
|[[TechDraw_RedrawPage|Redraw Page]]
|[[TechDraw_ActiveView|Insert Active View]]
|[[TechDraw_ActiveView|Insert Active View]]
|[[TechDraw_Module|TechDraw]]
|[[TechDraw_Workbench|TechDraw]]
|IconL=TechDraw RedrawPage.svg
|IconL=TechDraw RedrawPage.svg
|IconC=Workbench_TechDraw.svg
|IconC=Workbench_TechDraw.svg
Line 138: Line 149:
{{TechDraw Tools navi{{#translation:}}}}
{{TechDraw Tools navi{{#translation:}}}}
{{Userdocnavi{{#translation:}}}}
{{Userdocnavi{{#translation:}}}}
{{clear}}

Revision as of 19:52, 14 April 2022

Noua vedere TechDraw

poziția meniului
TechDraw → Insert View
Ateliere
TechDraw
scurtătură
nici unul
Prezentat în versiune
-
A se vedea, de asemenea,
Insert Projection Group, Insert Section View

Descriere

Instrumentul Vizualizare adaugă o reprezentare a unuia sau mai multor obiecte pe o pagină de desen. Acesta este blocul de bază al modulului TechDraw. La plupart des autres vues proviennent de NewView.

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

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.

View of a solid box with hidden lines

Cum se utilizează

  1. Optionally rotate the 3D view. The camera direction in the 3D view determines the initial value of the DateDirection 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 Insert 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.

Proprietăți

  • DateX: Poziția orizontală a vederii pe pagină (1)
  • DateY: Poziția verticală a vederii pe pagină.(1)
  • DateLockPosition: Împiedică afișarea vederilor din Gui când este True. Vizualizarea poate fi în continuare mutată prin schimbarea proprietăților X, Y.(1)
  • DateRotation: Rotație antiorară a afișării vizualizării pe pagină exporimată în grade (1)
  • DateScaleType: "Document": utilizați setările de scală ale Paginii. "Custom": utilizați o scală unică doar pentru această vedere. "Automatic": potrivește vizualizarea în pagină. (1)
  • DateScale: A view will be rendered on the page in Scale:1 ratio to the Source. (1)
  • DateCaption: Optional short text caption.
  • DateSource: Links to the Drawable Objects to be depicted
  • DateDirection: A vector representing the viewing direction. See note below. (1)
  • DatePerspective: True for perspective projection, false for orthogonal projection.
  • DateFocus: 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.
  • DateCoarseView: If true, TechDraw will use a polygon approximation to calculate drawing geometry. If false, TechDraw will use a precision algorithm. See Notes.
  • DateSmooth Visible Lines: Visible Smooth lines on/off.
  • DateSeam Visible Lines: Visible Seam lines on/off.
  • DateIso Visible Lines:Liniile izometrice vizibile (u,v) sunt activate/dezactivate.
  • DateHard Hidden Lines: Liniile ascunse sunt activate/dezactivate.
  • DateSmooth Hidden Lines: Liniile lise sunt activate/dezactivate.
  • DateSeam Hidden Lines: Liniile de cusătuiră ( Seam) ascunse activate/dezactivate .
  • DateIso Hidden Lines: Linii izometrice ascunse (u, v) sunt activate /dezactivate.
  • DateIso Count: Numărul de linii izometrice (u, v) care se desenează pe fiecare fațetă.

Data

Base

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

(1) Aceste proprietăți sunt comune tuturor tipurilor de vizualizare.

Cosmetics

HLR Parameters

  • DateCoarse View: 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.
  • DateSmooth Visible: Visible Smooth lines on/off.
  • DateSeam Visible: Visible Seam lines on/off.
  • DateIso Visible: Visible Isometric(u,v) lines on/off.
  • DateHard Hidden: Hidden lines on/off.
  • DateSmooth Hidden: Hidden Smooth lines on/off.
  • DateSeam Hidden: Hidden Seam lines on/off.
  • DateIso Hidden: Hidden Isometric(u,v) lines on/off.
  • DateIso Count: Number of Isometric(u,v) lines to draw on each face.

Projection

  • DateSource: Links to the drawable objects to be depicted.
  • DateXSource: Links to the drawable objects in an external file. introduced in version 0.19
  • DateDirection: 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).
  • DateXDirection: this vector controls the rotation of the view around the Direction. introduced in version 0.19.
  • DatePerspective: True for perspective projection, false for orthogonal projection.
  • DateFocus: 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.

View

  • VizualizareKeep Label: Afișați întotdeauna eticheta de vizualizare dacă este True.
  • VizualizareLineWidth: Grosimea liniilor vizibile. Vezi Line Groups.
  • VizualizareHiddenWidth: Grosimea liniilor ascunse, dacă este activat.
  • VizualizareIsoWidth: Grosimea liniilor suprafeței izometrice(u,v) și a linilor de cotă(Dimension).
  • VizualizareExtraWidth: nu este implementat încă.
  • VizualizareShowCenters: Marcajul centrului pentru Cerc/arc de cerc activat/dezactivat.
  • VizualizareCenterScale: Reglarea mărimii marcajului central al arcului de cerc, dacă este activată.
  • VizualizareHorizCenterLine: Afișează o linie orizontală pe centrul vizualizării.
  • VizualizareVertCenterLine: Afișează o linie verticală pe centrul vizualizării.
  • VizualizareShowSectionLine: Arată/ascunde linia de scțiune dacă există

Script

Vederile pot fi adăugate la Pages utilizând Python.

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)