TechDraw HorizontalDimension: Difference between revisions

From FreeCAD Documentation
(See also TechDraw API)
(Marked this version for translation)
 
(52 intermediate revisions by 8 users not shown)
Line 1: Line 1:
<languages/>
<languages/>
<translate>
<translate>

<!--T:18-->
{{Docnav
|[[TechDraw_LengthDimension|LengthDimension]]
|[[TechDraw_VerticalDimension|VerticalDimension]]
|[[TechDraw_Workbench|TechDraw]]
|IconL=TechDraw_LengthDimension.svg
|IconR=TechDraw_VerticalDimension.svg
|IconC=Workbench_TechDraw.svg
}}

<!--T:1-->
<!--T:1-->
{{GuiCommand
{{GuiCommand|Name=TechDraw Dimension Horizontal|Workbenches=[[TechDraw Module|TechDraw]]|MenuLocation=TechDraw → Dimension Horizontal|Shortcut=|SeeAlso=}}
|Name=TechDraw HorizontalDimension
|MenuLocation=TechDraw → Dimensions → Insert Horizontal Dimension
|Workbenches=[[TechDraw_Workbench|TechDraw]]
|Shortcut={{KEY|Shift}} + {{KEY|H}}
|SeeAlso=[[TechDraw_LengthDimension|TechDraw LengthDimension]], [[TechDraw_VerticalDimension|TechDraw VerticalDimension]]
}}


==Description== <!--T:2-->
==Description== <!--T:2-->
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 [[Image:LinkDimension.png|24px]] tool.
[[File:HorizontalSample.png|200px|center]]


==How to use== <!--T:3-->
<!--T:8-->
The '''TechDraw HorizontalDimension''' tool adds a horizontal dimension to a View. The dimension may be the horizontal distance between two points or the horizontal length of a straight edge. As with the [[TechDraw_LengthDimension|TechDraw LengthDimension]] tool it is also possible to select two edges or a point and an edge, but these options make less sense for this tool.
# Select the points or edge which define your measurement.
# Press the {{KEY|[[Image:Dimension_Horizontal.png|24px]] [[TechDraw Dimension Horizontal|Dimension Horizontal]]}} button
# A dimension will be added to the View. The dimension may be dragged to the desired position.


==Options== <!--T:4-->
<!--T:21-->
For more information see [[TechDraw_LengthDimension|TechDraw LengthDimension]].
None.

==Properties== <!--T:5-->
{{TechDraw DimProps}}

==Scripting== <!--T:6-->
{{Emphasis|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:


</translate>
</translate>
[[Image:TechDraw_Dimension_Horizontal_example.png|200px]]
{{Code|code=
dim1 = FreeCAD.ActiveDocument.addObject('TechDraw::DrawViewDimension','Dimension')
dim1.Type = "DistanceX"
dim1.References2D=[(view1, 'Edge1')]
rc = page.addView(dim1)
}}
<translate>
<translate>
<!--T:9-->
{{Caption|Horizontal dimension taken from two points}}



==Notes== <!--T:7-->
<!--T:19-->
* All Dimensions are extremely vulnerable to the infamous "topological naming" issue. It is not possible at this time to keep references to 2D (projected) or 3D (actual) geometrical objects in sync with changes in the model. It is recommended that Dimensions be added towards the end of the drawing creation process.
{{Docnav
|[[TechDraw_LengthDimension|LengthDimension]]
|[[TechDraw_VerticalDimension|VerticalDimension]]
|[[TechDraw_Workbench|TechDraw]]
|IconL=TechDraw_LengthDimension.svg
|IconR=TechDraw_VerticalDimension.svg
|IconC=Workbench_TechDraw.svg
}}


</translate>
</translate>
{{TechDraw Tools navi{{#translation:}}}}
{{clear}}
{{Userdocnavi{{#translation:}}}}

Latest revision as of 06:46, 26 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 points or the horizontal length of a straight edge. As with the TechDraw LengthDimension tool it is also possible to select two edges or a point and an edge, but these options make less sense for this tool.

For more information see TechDraw LengthDimension.

Horizontal dimension taken from two points