TechDraw HorizontalDimension: Difference between revisions

From FreeCAD Documentation
No edit summary
No edit summary
Line 38: Line 38:
== Limitations == <!--T:11-->
== Limitations == <!--T:11-->


See [[TechDraw_LengthDimension#Limitations|TechDraw LengthDimension]].
<!--T:12-->

Dimension objects are vulnerable to the "[[Topological_naming_problem|topological naming problem]]". See [[TechDraw_LengthDimension|TechDraw LengthDimension]] for more information.
== Notes ==

See [[TechDraw_LengthDimension#Notes|TechDraw LengthDimension]].


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

Revision as of 14:25, 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 between two vertices, the length of one edge or the horizontal distance between 2 edges. The distance will initially be the projected distance (ie as shown on the drawing), but this may be changed to the actual 3D distance using the TechDraw LinkDimension tool.

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

Usage

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)