TechDraw View: Difference between revisions
Wandererfan (talk | contribs) No edit summary |
Wandererfan (talk | contribs) No edit summary |
||
Line 22: | Line 22: | ||
* {{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|Source}}: The 3D object to be depicted |
* {{PropertyData|Source}}: The 3D object to be depicted |
||
* {{PropertyData|Direction}}: A vector representing the viewing direction. |
* {{PropertyData|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) |
||
* {{PropertyData|ShowHiddenLines}}: Hidden lines on/off. |
* {{PropertyData|ShowHiddenLines}}: Hidden lines on/off. |
||
* {{PropertyData|ShowSmoothLines}}: Smooth lines on/off. |
* {{PropertyData|ShowSmoothLines}}: Smooth lines on/off. |
Revision as of 13:20, 24 October 2017
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. This is the basic building block of the TechDraw module. Most other Views are derived in some way from NewView.
How to use
- Select a part in the 3D window or tree.
- If you have multiple drawing pages in your document, you will also need to select the desired page in the tree.
- Press the File:Techdraw-view.png View 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. Common Directions are Front: (0,-1,0), Top: (0,0,1), Right: (1,0,0), Axo: (1,1,1). (1)
- DataShowHiddenLines: Hidden lines on/off.
- DataShowSmoothLines: Smooth lines on/off.
- DataShowSeamLines: Seam lines on/off.
- DataTolerance: Internal tolerance.
- 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.
(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.