TechDraw HorizontalDimension

From FreeCAD Documentation
Revision as of 14:35, 25 July 2023 by Roy 043 (talk | contribs)

TechDraw HorizontalDimension

Menu location
TechDraw → Dimensions → Insert Horizontal Dimension
Workbenches
TechDraw
Default shortcut
Shift + H
Introduced in version
-
See also
TechDraw LengthDimension, TechDraw VerticalDimension

Description

The TechDraw HorizontalDimension tool adds a horizontal dimension to a View. The dimension may be the horizontal distance between two vertices or the horizontal length of a straight edge. As with the TechDraw LengthDimension tool it is also possible to select two edges or a vertex and an edge, but these options make less sense for this tool.

For more information see TechDraw LengthDimension.

Length dimension taken from two arbitrary nodes of the view; the distance is measured horizontally

Usage

See TechDraw LengthDimension.

Dimension dialog

See TechDraw LengthDimension.

Limitations

See TechDraw LengthDimension.

Notes

See TechDraw LengthDimension.

Properties

See TechDraw LengthDimension.

Scripting

See also: Autogenerated API documentation and FreeCAD Scripting Basics.

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

dim1 = FreeCAD.ActiveDocument.addObject('TechDraw::DrawViewDimension','Dimension')
dim1.Type = "DistanceX"
dim1.References2D=[(view1, 'Edge1')]
rc = page.addView(dim1)