TechDraw ActiveView: Difference between revisions

From FreeCAD Documentation
No edit summary
No edit summary
Line 7: Line 7:
{{GuiCommand
{{GuiCommand
|Name=TechDraw ActiveView
|Name=TechDraw ActiveView
|Icon=techdraw-activeview.svg
|MenuLocation=TechDraw → View
|MenuLocation=TechDraw → View
|Workbenches=[[TechDraw Module|TechDraw]]
|Workbenches=[[TechDraw Module|TechDraw]]

Revision as of 14:57, 29 August 2019

File:Techdraw-activeview.svg TechDraw ActiveView

Menu location
TechDraw → View
Workbenches
TechDraw
Default shortcut
None
Introduced in version
-
See also
None

Description

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

File:TechDraw ActiveView Sample.png

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.

Properties

see File:Techdraw-newsymbol.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.

View

  • ViewKeep Label: Always show View Label if true.
  • ViewLineWidth: The thickness of visible lines. See Line Groups.
  • ViewHiddenWidth: The thickness of hidden lines, if enabled.
  • ViewIsoWidth: The thickness of isometric(u,v) surface lines and Dimension lines.
  • ViewExtraWidth: not implemented yet.
  • ViewShowCenters: Circle/arc center marks on/off.
  • ViewCenterScale: Circular arc center mark size adjustment, if enabled.
  • ViewHorizCenterLine: Show a horizontal centerline through view.
  • ViewVertCenterLine: Show a vertical centerline through view.
  • ViewShowSectionLine: 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:

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