TechDraw LengthDimension: Difference between revisions
(Added link to the topological naming problem for an explanation of this issue.) |
Wandererfan (talk | contribs) No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 86: | Line 86: | ||
<!--T:20--> |
<!--T:20--> |
||
* '''Edge selection'''. Edges can be difficult to select. You can adjust the selection area for edges using the parameter "/Mod/TechDraw/General/EdgeFuzz" (see [[Std_DlgParameter|Std_DlgParameter]]). This is a dimension-less number. The default is 10.0. Values in the 20-30 range will make it noticeably easier to select edges. Large numbers will cause overlaps with other drawing elements. |
* '''Edge selection'''. Edges can be difficult to select. You can adjust the selection area for edges using the parameter "/Mod/TechDraw/General/EdgeFuzz" (see [[Std_DlgParameter|Std_DlgParameter]]). This is a dimension-less number. The default is 10.0. Values in the 20-30 range will make it noticeably easier to select edges. Large numbers will cause overlaps with other drawing elements. |
||
* '''Decimal places'''. Dimensions use the global decimal places setting by default. This can be changed via [[TechDraw_Preferences#Dimensions|preferences]] or by changing the FormatSpec property. |
|||
Revision as of 00:28, 12 September 2019
TechDraw Dimension Length |
Menu location |
---|
TechDraw → Dimension Length |
Workbenches |
TechDraw |
Default shortcut |
None |
Introduced in version |
- |
See also |
TechDraw Dimension Horizontal, TechDraw Dimension Vertical |
Description
The Dimension Length tool adds a linear dimension to a View. The dimension may be between the distance between two vertices, the length of one edge or the 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
How to use
- Select the points or edge which define your measurement.
- Press the File:TechDraw Dimension Length.png Dimension Length button
- A dimension will be added to the View. The dimension may be dragged to the desired position.
Limitations
Dimension objects are vulnerable to the "topological naming problem". This means that if you modify the 3D geometry the faces and edges of the model may be renamed internally; if a dimension is attached to an edge that is then modified, the dimension may break. In general, it is not possible to keep the projected 2D dimensions synchronized with the actual 3D objects.
Therefore, it is recommended that dimensions be added when the 3D model is no longer being modified.
Workaround
If you want to keep a TechDraw view with dimensions that won't break, you need to dimension an object that won't change.
- Select the object that you want to project, then switch to the Part Workbench and use Part → File:Part CreateSimpleCopy.svg Create simple copy. This will create a single object that is not parametric, that is, no longer editable.
- Select this copy, then use TechDraw NewView, and add the desired dimensions.
- If the original 3D model is modified, the modifications won't affect the simple copy, nor the dimensions in the TechDraw view.
Properties
Data
- DataX: Horizontal position of the dimension text relative to the View.
- DataY: Vertical position of the dimension text relative to the View.
- DataFormatSpec: Allows additional text to be added to the dimension text. Dimension value will replace %.2f (or other valid printf format specifier).
- DataType: Length,radius,diameter, etc. Not normally manipulated by the end user.
- DataMeasureType:
true
- based on 3D geometry or "Projected" - based on the drawing. Not normally manipulated directly by the end user. - DataOverTolerance: The amount by which the piece may be larger than the Dimension shown.
- DataUnderTolerance: The amount by which the piece may be smaller than the Dimension shown.
- DataArbitrary:
true
- ignore actual value and display FormatSpec as value.false
- use actual value.
View
- ViewFont: The name of the font to use for the dimension text.
- ViewFontsize: Dimension text size in mm.
- ViewLineWidth: Dimension line weight.
- ViewColor: Color for lines and text.
Scripting
See also: TechDraw API and FreeCAD Scripting Basics.
The Dimension Length 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 = "Distance"
dim1.References2D=[(view1, 'Edge1')]
rc = page.addView(dim1)
Notes
- Edge selection. Edges can be difficult to select. You can adjust the selection area for edges using the parameter "/Mod/TechDraw/General/EdgeFuzz" (see Std_DlgParameter). This is a dimension-less number. The default is 10.0. Values in the 20-30 range will make it noticeably easier to select edges. Large numbers will cause overlaps with other drawing elements.
- Decimal places. Dimensions use the global decimal places setting by default. This can be changed via preferences or by changing the FormatSpec property.
- 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, Start, Surface, TechDraw, Test Framework, Web
- Hubs: User hub, Power users hub, Developer hub