TechDraw HorizontalExtentDimension: Difference between revisions
No edit summary |
(Marked this version for translation) |
||
(21 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
<languages/> |
<languages/> |
||
<translate> |
<translate> |
||
<!--T:18--> |
<!--T:18--> |
||
{{Docnav |
{{Docnav |
||
|[[TechDraw_3PtAngleDimension|3PtAngleDimension]] |
|||
|[[TechDraw_Balloon|Balloon]] |
|||
|[[TechDraw_VerticalExtentDimension|VerticalExtentDimension]] |
|||
|[[TechDraw_Dimension_Vertical_Extent|Dimension Vertical Extent]] |
|||
|[[ |
|[[TechDraw_Workbench|TechDraw]] |
||
|IconL= |
|IconL=TechDraw_3PtAngleDimension.svg |
||
|IconR= |
|IconR=TechDraw_VerticalExtentDimension.svg |
||
|IconC=Workbench_TechDraw.svg |
|IconC=Workbench_TechDraw.svg |
||
}} |
}} |
||
Line 13: | Line 14: | ||
<!--T:1--> |
<!--T:1--> |
||
{{GuiCommand |
{{GuiCommand |
||
|Name=TechDraw |
|Name=TechDraw HorizontalExtentDimension |
||
|MenuLocation=TechDraw → |
|MenuLocation=TechDraw → Dimensions → Insert Horizontal Extent Dimension |
||
|Workbenches=[[ |
|Workbenches=[[TechDraw_Workbench|TechDraw]] |
||
|Version=0.19 |
|Version=0.19 |
||
|SeeAlso=[[ |
|SeeAlso=[[TechDraw_LengthDimension|TechDraw LengthDimension]], [[TechDraw_VerticalExtentDimension|TechDraw VerticalExtentDimension]] |
||
}} |
}} |
||
Line 23: | Line 24: | ||
<!--T:8--> |
<!--T:8--> |
||
The |
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 29: | Line 30: | ||
<translate> |
<translate> |
||
<!--T:9--> |
<!--T:9--> |
||
{{Caption|Horizontal |
{{Caption|Horizontal and vertical extent dimensions of a B-spline}} |
||
== |
==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: |
#* Press the {{Button|[[Image:TechDraw_HorizontalExtentDimension.svg|16px]] [[TechDraw_HorizontalExtentDimension|Insert Horizontal Extent Dimension]]}} button. |
||
⚫ | |||
#* 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. |
|||
⚫ | |||
# 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 "[[topological naming problem |
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--> |
||
<!--T:13--> |
<!--T:13--> |
||
See [[TechDraw_LengthDimension#Properties|TechDraw LengthDimension]]. Exceptions noted below. |
|||
=== Data === <!--T:20--> |
=== Data === <!--T:20--> |
||
<!--T:27--> |
|||
{{Properties_Title|Base}} |
|||
<!--T:21--> |
<!--T:21--> |
||
* {{PropertyData| |
* {{PropertyData|Measure Type|Enumeration}}: Not yet implemented for extent dimensions. |
||
==Scripting== <!--T:6--> |
==Scripting== <!--T:6--> |
||
<!--T:14--> |
<!--T:14--> |
||
See also: [https://freecad.github.io/SourceDoc/ Autogenerated API documentation] and [[FreeCAD_Scripting_Basics|FreeCAD Scripting Basics]]. |
|||
<!--T:15--> |
<!--T:15--> |
||
The |
The Horizontal Extent Dimension tool can be used in [[Macros|macros]] and from the [[Python|Python]] console by using the following functions: |
||
</translate> |
</translate> |
||
{{Code|code= |
{{Code|code= |
||
selection = [ |
selection = ['Edge1', 'Edge2'] # or [] for all |
||
hExtentDim = TechDraw.Dimension.makeExtentDim(selection, HORIZONTAL) |
|||
TechDraw.makeExtentDim(view1, selection, 0) # view1 is a DrawViewPart; 0 for horizontal |
|||
rc = page.addView(hExtentDim) |
|||
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. |
|||
}} |
}} |
||
<translate> |
<translate> |
||
Line 72: | Line 100: | ||
<!--T:19--> |
<!--T:19--> |
||
{{Docnav |
{{Docnav |
||
|[[TechDraw_3PtAngleDimension|3PtAngleDimension]] |
|||
|[[TechDraw_Balloon|Balloon]] |
|||
|[[TechDraw_VerticalExtentDimension|VerticalExtentDimension]] |
|||
|[[TechDraw_Dimension_Vertical_Extent|Dimension Vertical Extent]] |
|||
|[[ |
|[[TechDraw_Workbench|TechDraw]] |
||
|IconL= |
|IconL=TechDraw_3PtAngleDimension.svg |
||
|IconR= |
|IconR=TechDraw_VerticalExtentDimension.svg |
||
|IconC=Workbench_TechDraw.svg |
|IconC=Workbench_TechDraw.svg |
||
}} |
}} |
||
Line 83: | Line 111: | ||
{{TechDraw Tools navi{{#translation:}}}} |
{{TechDraw Tools navi{{#translation:}}}} |
||
{{Userdocnavi{{#translation:}}}} |
{{Userdocnavi{{#translation:}}}} |
||
{{clear}} |
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
- Select a View or a collection of Edges in a View.
- There are several ways to invoke the tool:
- Press the Insert Horizontal Extent Dimension button.
- Select the TechDraw → Dimensions → 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 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
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.
- Pages: Insert Default Page, Insert Page using Template, Redraw Page, Print All Pages
- Views: Insert View, Insert Active View, Insert Projection Group, Insert Section View, Insert Complex Section View, Insert Detail View, Insert Draft Workbench Object, Insert Arch Workbench Object, Insert Spreadsheet View, Insert Clip Group, Share View, Project Shape
- Stacking: Move view to top of stack, Move view to bottom of stack, Move view up one level, Move view down one level
- Decorations: Hatch Face using Image File, Apply Geometric Hatch to Face, Insert SVG Symbol, Insert Bitmap Image, Turn View Frames On/Off
- Dimensions: Insert Length Dimension, Insert Horizontal Dimension, Insert Vertical Dimension, Insert Radius Dimension, Insert Diameter Dimension, Insert Angle Dimension, Insert 3-Point Angle Dimension, Insert Horizontal Extent Dimension, Insert Vertical Extent Dimension, Link Dimension to 3D Geometry, Insert Balloon Annotation, Insert Axonometric Length Dimension, Insert Landmark Dimension, Adjust Geometric References of Dimension
- Annotations: Insert Annotation, Add Leaderline to View, Insert Rich Text Annotation, Add Cosmetic Vertex, Add Midpoint Vertices, Add Quadrant Vertices, Add Centerline to Faces, Add Centerline between 2 Lines, Add Centerline between 2 Points, Add Cosmetic Line Through 2 points, Add Cosmetic Circle, Change Appearance of Lines, Show/Hide Invisible Edges, Add Welding Information to Leader, Add Surface Finish Symbol, Add Hole or Shaft Tolerances
- Extensions:
- Attributes and modifications: Select Line Attributes, Cascade Spacing and Delta Distance, Change Line Attributes, Extend Line, Shorten Line, Lock/Unlock View, Position Section View, Position Horizontal Chain Dimensions, Position Vertical Chain Dimensions, Position Oblique Chain Dimensions, Cascade Horizontal Dimensions, Cascade Vertical Dimensions, Cascade Oblique Dimensions, Calculate the area of selected faces, Calculate the arc length of selected edges, Customize format label
- Centerlines and threading: Add Circle Centerlines, Add Bolt Circle Centerlines, Add Cosmetic Thread Hole Side View, Add Cosmetic Thread Hole Bottom View, Add Cosmetic Thread Bolt Side View, Add Cosmetic Thread Bolt Bottom View, Add Cosmetic Intersection Vertex(es), Add an offset vertex, Add Cosmetic Circle, Add Cosmetic Arc, Add Cosmetic Circle 3 Points, Add Cosmetic Parallel Line, Add Cosmetic Perpendicular Line
- Dimensions: Create Horizontal Chain Dimensions, Create Vertical Chain Dimensions, Create Oblique Chain Dimensions, Create Horizontal Coordinate Dimensions, Create Vertical Coordinate Dimensions, Create Oblique Coordinate Dimensions, Create Horizontal Chamfer Dimension, Create Vertical Chamfer Dimension, Create Arc Length Dimension, Insert '⌀' Prefix, Insert '〼' Prefix, Remove Prefix, Increase Decimal Places, Decrease Decimal Places
- Export: Export Page as SVG, Export Page as DXF
- Additional: Line Groups, Templates, Hatching, Geometric dimensioning and tolerancing, Preferences
- Getting started
- Installation: Download, Windows, Linux, Mac, Additional components, Docker, AppImage, Ubuntu Snap
- Basics: About FreeCAD, Interface, Mouse navigation, Selection methods, Object name, Preferences, Workbenches, Document structure, Properties, Help FreeCAD, Donate
- Help: Tutorials, Video tutorials
- Workbenches: Std Base, Arch, Assembly, CAM, Draft, FEM, Inspection, Mesh, OpenSCAD, Part, PartDesign, Points, Reverse Engineering, Robot, Sketcher, Spreadsheet, Surface, TechDraw, Test Framework
- Hubs: User hub, Power users hub, Developer hub