TechDraw HorizontalDimension: Difference between revisions

From FreeCAD Documentation
No edit summary
Line 44: Line 44:
==Limitations==
==Limitations==


<!--T:12-->
Dimension objects are vulnerable to the "[[Topological_naming_problem|topological naming problem]]". See [[TechDraw_LengthDimension#Limitations|TechDraw LengthDimension]].
Dimension objects are vulnerable to the "[[Topological_naming_problem|topological naming problem]]". See [[TechDraw_LengthDimension#Limitations|TechDraw LengthDimension]].



Revision as of 14:42, 25 July 2023

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

Dimension objects are vulnerable to the "topological naming problem". 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)