TechDraw ActiveView: Difference between revisions

From FreeCAD Documentation
No edit summary
No edit summary
(8 intermediate revisions by 4 users not shown)
Line 2: Line 2:
<translate>
<translate>
<!--T:19-->
<!--T:19-->
{{Docnav
{{Docnav|[[TechDraw_Spreadsheet|Spreadsheet]]|[[TechDraw_Clip|Clip]]|[[TechDraw_Module|TechDraw]]|IconL=techdraw-spreadsheet.svg|IconC=Workbench_TechDraw.svg|IconR=techdraw-clip.svg}}
|[[TechDraw_Spreadsheet|Spreadsheet]]
|[[TechDraw_Clip|Clip]]
|[[TechDraw_Module|TechDraw]]
|IconL=techdraw-spreadsheet.svg
|IconC=Workbench_TechDraw.svg
|IconR=techdraw-clip.svg
}}


<!--T:1-->
<!--T:1-->
Line 8: Line 15:
|Name=TechDraw ActiveView
|Name=TechDraw ActiveView
|Icon=techdraw-activeview.svg
|Icon=techdraw-activeview.svg
|MenuLocation=TechDraw → View
|MenuLocation=TechDraw → Insert Active View
|Workbenches=[[TechDraw Module|TechDraw]]
|Workbenches=[[TechDraw Module|TechDraw]]
|SeeAlso=
|SeeAlso=
|Version=0.19
}}
}}


Line 19: Line 27:


</translate>
</translate>
[[Image:TechDraw_ActiveView_Sample.png]]
[[File:TechDraw_ActiveView_example.png]]
<translate>
<translate>

<!--T:21-->
{{Caption|A simple view from the 3D model that doesn't perform any complex calculation.}}


==How to use== <!--T:3-->
==How to use== <!--T:3-->
Line 34: Line 45:
<!--T:13-->
<!--T:13-->
* Active views are static once generated, they are never updated with changes to the 3D model.
* Active views are static once generated, they are never updated with changes to the 3D model.
* This tool is still somewhat '''Experimental'''.


==Properties== <!--T:5-->
==Properties== <!--T:5-->


<!--T:22-->
see [[Image:Techdraw-newsymbol.svg|16px]] [[TechDraw Symbol|Symbol]]
see [[Image:Techdraw-symbol.svg|16px]] [[TechDraw Symbol|Symbol]]




Line 48: Line 61:
* {{PropertyData|Line Width}}: Thickness of individual lines in the view.
* {{PropertyData|Line Width}}: Thickness of individual lines in the view.
* {{PropertyData|Render Mode}}: Various special effects. See Coin3d SoRenderManager for details.
* {{PropertyData|Render Mode}}: Various special effects. See Coin3d SoRenderManager for details.

=== View === <!--T:9-->
* {{PropertyView|Keep Label}}: Always show View Label if true.
* {{PropertyView|LineWidth}}: The thickness of visible lines. See [[TechDraw_LineGroup|Line Groups]].
* {{PropertyView|HiddenWidth}}: The thickness of hidden lines, if enabled.
* {{PropertyView|IsoWidth}}: The thickness of isometric(u,v) surface lines and Dimension lines.
* {{PropertyView|ExtraWidth}}: not implemented yet.
* {{PropertyView|ShowCenters}}: Circle/arc center marks on/off.
* {{PropertyView|CenterScale}}: Circular arc center mark size adjustment, if enabled.
* {{PropertyView|HorizCenterLine}}: Show a horizontal centerline through view.
* {{PropertyView|VertCenterLine}}: Show a vertical centerline through view.
* {{PropertyView|ShowSectionLine}}: Show/hide section line if applicable.


==Scripting== <!--T:6-->
==Scripting== <!--T:6-->


<!--T:15-->
<!--T:15-->
{{Emphasis|See also:}} [[TechDraw API]] and [[FreeCAD Scripting Basics]].
{{Emphasis|See also:}} [[TechDraw API|TechDraw API]] and [[FreeCAD Scripting Basics|FreeCAD Scripting Basics]].


<!--T:16-->
<!--T:16-->
The New View tool can be used in [[macros]] and from the [[Python]] console by using the following functions:
The ActiveView tool can be used in [[macros|macros]] and from the [[Python|Python]] console by using the following functions:


</translate>
</translate>
Line 77: Line 78:


<!--T:20-->
<!--T:20-->
{{Docnav
{{Docnav|[[TechDraw_Spreadsheet|Spreadsheet]]|[[TechDraw_Clip|Clip]]|[[TechDraw_Module|TechDraw]]|IconL=techdraw-spreadsheet.svg|IconC=Workbench_TechDraw.svg|IconR=techdraw-clip.svg}}
|[[TechDraw_Spreadsheet|Spreadsheet]]
|[[TechDraw_Clip|Clip]]
|[[TechDraw_Module|TechDraw]]
|IconL=techdraw-spreadsheet.svg
|IconC=Workbench_TechDraw.svg
|IconR=techdraw-clip.svg
}}


<!--T:17-->
<!--T:17-->

Revision as of 13:30, 8 December 2019

File:Techdraw-activeview.svg TechDraw ActiveView

Menu location
TechDraw → Insert Active View
Workbenches
TechDraw
Default shortcut
None
Introduced in version
0.19
See also
None

Description

The ActiveView tool inserts a copy of a 3D window into a Drawing page.

A simple view from the 3D model that doesn't perform any complex calculation.

How to use

  1. Navigate to the 3D window you wish to copy.
  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-activeview.svg ActiveView button
  4. A dialog will open to allow you to specify the size, border and background color of the copy.

Notes

  • Active views are static once generated, they are never updated with changes to the 3D model.
  • This tool is still somewhat Experimental.

Properties

see File:Techdraw-symbol.svg Symbol


Dialog Fields

  • DataWidth: The width of the generated view.
  • DataHeight: The height of the generated view.
  • DataBorder: The amount of empty space to be left around the view (but within Width x Height).
  • DataBackground: Show or hide a background.
  • DataBackground Color: Color to paint the background, if applicable.
  • DataLine Width: Thickness of individual lines in the view.
  • DataRender Mode: Various special effects. See Coin3d SoRenderManager for details.

Scripting

See also: TechDraw API and FreeCAD Scripting Basics.

The ActiveView tool can be used in macros and from the Python console by using the following functions:

import TechDrawGui
TechDrawGui.copyActiveViewToSvgFile(Gui.ActiveDocument.ActiveView,"myFile.svg")