TechDraw HorizontalExtentDimension: Difference between revisions

From FreeCAD Documentation
No edit summary
(Marked this version for translation)
 
(9 intermediate revisions by the same user not shown)
Line 24: Line 24:


<!--T:8-->
<!--T:8-->
The '''TechDraw HorizontalExtentDimension''' tool adds a linear dimension to a View. The dimension extends from the left most point on the selected objects to the right most point. A CosmeticVertex will be placed at each point.
The '''TechDraw HorizontalExtentDimension''' tool adds a linear dimension to a View. The dimension extends from the left most point on the selected objects to the right most point.


</translate>
</translate>
Line 30: Line 30:
<translate>
<translate>
<!--T:9-->
<!--T:9-->
{{Caption|Horizontal Extent dimension of B-spline Face}}
{{Caption|Horizontal and vertical extent dimensions of a B-spline}}


==How to use== <!--T:3-->
==Usage== <!--T:22-->


<!--T:10-->
<!--T:10-->
# Select a View or a collection of Edges in a View.
# Select a View or a collection of Edges in a View.
# There are several ways to invoke the tool:
# Press the {{Button|[[Image:TechDraw_HorizontalExtentDimension.svg|16px]] [[TechDraw_HorizontalExtentDimension|Horizontal Extent Dimension]]}} button
#* Press the {{Button|[[Image:TechDraw_HorizontalExtentDimension.svg|16px]] [[TechDraw_HorizontalExtentDimension|Insert Horizontal Extent Dimension]]}} button.
# A dimension will be added to the View. The dimension may be dragged to the desired position.
#* Select the {{MenuCommand|TechDraw → Dimensions → [[Image:TechDraw_HorizontalExtentDimension.svg|16px]] Insert Horizontal Extent Dimension}} option from the menu.
# A dimension is added to the View.
# The dimension may be dragged to the desired position.
# If needed, add tolerances as described on [[TechDraw_Geometric_dimensioning_and_tolerancing#Tolerances|this page]].

===Change properties=== <!--T:23-->

<!--T:24-->
To change the properties of a dimension object either double-click it in the drawing or in the [[Tree_view|Tree view]]. This will open the [[TechDraw_LengthDimension#Dimension_dialog|Dimension dialog]].


== Limitations == <!--T:11-->
== Limitations == <!--T:11-->


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

==Notes== <!--T:25-->

<!--T:26-->
See [[TechDraw_LengthDimension#Notes|TechDraw LengthDimension]].


==Properties== <!--T:5-->
==Properties== <!--T:5-->
Line 50: Line 64:


=== Data === <!--T:20-->
=== Data === <!--T:20-->

<!--T:27-->
{{Properties_Title|Base}}


<!--T:21-->
<!--T:21-->
* {{PropertyData|MeasureType}}: {{TRUE}} - based on 3D geometry or "Projected" - based on the drawing. Not normally manipulated directly by the end user. Not yet implemented for Dimension Horizontal Extent.
* {{PropertyData|Measure Type|Enumeration}}: Not yet implemented for extent dimensions.


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

Latest revision as of 19:02, 27 July 2023

TechDraw HorizontalExtentDimension

Menu location
TechDraw → Dimensions → Insert Horizontal Extent Dimension
Workbenches
TechDraw
Default shortcut
None
Introduced in version
0.19
See also
TechDraw LengthDimension, TechDraw VerticalExtentDimension

Description

The TechDraw HorizontalExtentDimension tool adds a linear dimension to a View. The dimension extends from the left most point on the selected objects to the right most point.

Horizontal and vertical extent dimensions of a B-spline

Usage

  1. Select a View or a collection of Edges in a View.
  2. There are several ways to invoke the tool:
  3. A dimension is added to the View.
  4. The dimension may be dragged to the desired position.
  5. If needed, add tolerances as described on this page.

Change properties

To change the properties of a dimension object either double-click it in the drawing or in the Tree view. This will open the Dimension dialog.

Limitations

Dimension objects are vulnerable to the "topological naming problem". See TechDraw LengthDimension.

Notes

See TechDraw LengthDimension.

Properties

See TechDraw LengthDimension. Exceptions noted below.

Data

Base

  • DataMeasure Type (Enumeration): Not yet implemented for extent dimensions.

Scripting

See also: Autogenerated API documentation and FreeCAD Scripting Basics.

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

selection = ['Edge1', 'Edge2']                      # or [] for all

TechDraw.makeExtentDim(view1, selection, 0)         # view1 is a DrawViewPart; 0 for horizontal
App.ActiveDocument.DimExtent.Y = -60                # offset dimension line from dimensioned edges in Y direction
App.ActiveDocument.DimExtent.X = 10                 # offset dimension text along dimension line in X direction
App.ActiveDocument.DimExtent.FormatSpec = '%.0f'    # Dimension format

TechDraw.makeExtentDim(view1, selection, 1)         # view1 is a DrawViewPart; 1 for vertical
App.ActiveDocument.DimExtent001.X = -130            # offset dimension line from dimensioned edges in X direction
App.ActiveDocument.DimExtent001.Y = 10              # offset dimension text along dimension line in Y direction
App.ActiveDocument.DimExtent001.FormatSpec = '%.0f'

# Note the dimension names are 'DimExtent', 'DimExtent001' etc in the order created.