TechDraw HorizontalDimension: Difference between revisions

From FreeCAD Documentation
(document shortcut)
No edit summary
Line 7: Line 7:
|[[TechDraw_Module|TechDraw]]
|[[TechDraw_Module|TechDraw]]
|IconL=TechDraw_Dimension_Length.svg
|IconL=TechDraw_Dimension_Length.svg
|IconC=Workbench_TechDraw.svg
|IconR=TechDraw_Dimension_Vertical.svg
|IconR=TechDraw_Dimension_Vertical.svg
|IconC=Workbench_TechDraw.svg
}}
}}


Line 15: Line 15:
|Name=TechDraw Dimension Horizontal
|Name=TechDraw Dimension Horizontal
|MenuLocation=TechDraw → Dimension Horizontal
|MenuLocation=TechDraw → Dimension Horizontal
|Workbenches=[[TechDraw Module|TechDraw]]
|Workbenches=[[TechDraw_Module|TechDraw]]
|Shortcut={{KEY|Shift}} + {{KEY|H}}
|Shortcut={{KEY|Shift}} + {{KEY|H}}
|SeeAlso=[[TechDraw Dimension Length|TechDraw Dimension Length]], [[TechDraw Dimension Vertical|TechDraw Dimension Vertical]]
|SeeAlso=[[TechDraw_Dimension_Length|TechDraw Dimension Length]], [[TechDraw_Dimension_Vertical|TechDraw Dimension Vertical]]
}}
}}


Line 35: Line 35:
<!--T:10-->
<!--T:10-->
# Select the points or edge which define your measurement.
# Select the points or edge which define your measurement.
# Press the {{Button|[[Image:TechDraw_Dimension_Horizontal.svg|16px]] [[TechDraw Dimension Horizontal|Dimension Horizontal]]}} button
# Press the {{Button|[[Image:TechDraw_Dimension_Horizontal.svg|16px]] [[TechDraw_Dimension_Horizontal|Dimension Horizontal]]}} button
# A dimension will be added to the View. The dimension may be dragged to the desired position.
# A dimension will be added to the View. The dimension may be dragged to the desired position.


Line 41: Line 41:


<!--T:12-->
<!--T:12-->
Dimension objects are vulnerable to "topological naming" issues. See the information in the [[TechDraw Dimension Length|TechDraw Dimension Length]] tool for more information.
Dimension objects are vulnerable to "topological naming" issues. See the information in the [[TechDraw_Dimension_Length|TechDraw Dimension Length]] tool for more information.


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


<!--T:13-->
<!--T:13-->
This object has the same properties as the [[TechDraw Dimension Length|TechDraw Dimension Length]] tool. See that tool for details.
This object has the same properties as the [[TechDraw_Dimension_Length|TechDraw Dimension Length]] tool. See that tool for details.


==Scripting== <!--T:6-->
==Scripting== <!--T:6-->


<!--T:14-->
<!--T:14-->
{{Emphasis|See also:}} [[TechDraw API|TechDraw API]] and [[FreeCAD Scripting Basics|FreeCAD Scripting Basics]].
{{Emphasis|See also:}} [[TechDraw_API|TechDraw API]] and [[FreeCAD_Scripting_Basics|FreeCAD Scripting Basics]].


<!--T:15-->
<!--T:15-->
The Dimension Horizontal tool can be used in [[macros|macros]] and from the [[Python|Python]] console by using the following functions:
The Dimension Horizontal tool can be used in [[Macros|macros]] and from the [[Python|Python]] console by using the following functions:


</translate>
</translate>
Line 72: Line 72:
|[[TechDraw_Module|TechDraw]]
|[[TechDraw_Module|TechDraw]]
|IconL=TechDraw_Dimension_Length.svg
|IconL=TechDraw_Dimension_Length.svg
|IconC=Workbench_TechDraw.svg
|IconR=TechDraw_Dimension_Vertical.svg
|IconR=TechDraw_Dimension_Vertical.svg
|IconC=Workbench_TechDraw.svg
}}
}}



Revision as of 21:54, 2 December 2020

TechDraw Dimension Horizontal

Menu location
TechDraw → Dimension Horizontal
Workbenches
TechDraw
Default shortcut
Shift + H
Introduced in version
-
See also
TechDraw Dimension Length, TechDraw Dimension Vertical

Description

The Dimension Horizontal 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 Link Dimension tool.

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

Usage

  1. Select the points or edge which define your measurement.
  2. Press the Dimension Horizontal button
  3. A dimension will be added to the View. The dimension may be dragged to the desired position.

Limitations

Dimension objects are vulnerable to "topological naming" issues. See the information in the TechDraw Dimension Length tool for more information.

Properties

This object has the same properties as the TechDraw Dimension Length tool. See that tool for details.

Scripting

See also: TechDraw API and FreeCAD Scripting Basics.

The Dimension Horizontal 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)