Std DrawStyle

From FreeCAD Documentation
Revision as of 22:15, 23 November 2019 by Vocx (talk | contribs) (New page for the draw style.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Std DrawStyle

Menu location
View → Draw style
Workbenches
All
Default shortcut
None
Introduced in version
-
See also
SelBoundingBox

Description

All objects of the 3D view are shown in different drawing styles, including solid lines, wireframe, and as points.

File:FreeCAD draw styles.png

Different drawing styles: (0) as is, (1) flat lines, (2) shaded, (3) wireframe, (4) points, (5) hidden line, (6) no shading.

How to use

  • Go to the menu View → Draw styles, and select an option.
    • As is
    • Flat lines
    • Shaded
    • Wireframe
    • Points
    • Hidden line
    • No shading
  • Or press the corresponding icon button in the view toolbar.

Scripting

The draw style can be set from the Python console.

The argument to the "Std_DrawStyle" command determines the style.

  • 0, As is
  • 1, Flat lines
  • 2, Shaded
  • 3, Wireframe
  • 4, Points
  • 5, Hidden line
  • 6, No shading
import FreeCADGui as Gui

Gui.runCommand('Std_DrawStyle', 0)
Gui.runCommand('Std_DrawStyle', 1)
Gui.runCommand('Std_DrawStyle', 2)
Gui.runCommand('Std_DrawStyle', 3)
Gui.runCommand('Std_DrawStyle', 4)
Gui.runCommand('Std_DrawStyle', 5)
Gui.runCommand('Std_DrawStyle', 6)