TechDraw DiameterDimension/en: Difference between revisions

From FreeCAD Documentation
(Importing a new version from external source)
(Updating to match new version of source page)
(18 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<languages/>
{{GuiCommand|Name=TechDraw Dimension Diameter|Workbenches=[[TechDraw Module|TechDraw]]|MenuLocation=TechDraw → Dimension Diameter|Shortcut=|SeeAlso=}}

{{Docnav
|[[TechDraw_RadiusDimension|RadiusDimension]]
|[[TechDraw_AngleDimension|AngleDimension]]
|[[TechDraw_Workbench|TechDraw]]
|IconL=TechDraw_RadiusDimension.svg
|IconR=TechDraw_AngleDimension.svg
|IconC=Workbench_TechDraw.svg
}}

{{GuiCommand
|Name=TechDraw DiameterDimension
|MenuLocation=TechDraw → Dimensions → Insert Diameter Dimension
|Workbenches=[[TechDraw_Workbench|TechDraw]]
|SeeAlso=[[TechDraw_RadiusDimension|TechDraw RadiusDimension]]
}}


==Description==
==Description==
The Dimension Diameter tool adds a diameter dimension to a View. The dimension may be applied to any circular in the drawing. 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:DiameterSample.png|200px|center]]


The Diameter Dimension tool adds a diameter dimension to a View. The dimension may be applied to any circular in the drawing. 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 {{Button|[[Image:TechDraw_LinkDimension.svg|16px]] [[TechDraw_LinkDimension|TechDraw LinkDimension]]}} tool.
==How to use==
# Select a circular edge in the drawing. (Note some arcs which appear to be circular are actually ellipses or BSplines. You cannot make a diameter dimension in these cases)
# Press the {{KEY|[[Image:Dimension_Diameter.png|24px]] [[TechDraw Dimension Diameter|Dimension Diameter]]}} button
# A dimension will be added to the View. The dimension may be dragged to the desired position.


[[Image:TechDraw_Dimension_Diameter_example.png|130px]]
==Options==
{{Caption|Measuring a circle, indicating the diameter}}
None.

==Usage==

# Select a circular edge in the drawing. (Note some arcs which appear to be circular are actually ellipses or BSplines. You cannot make a diameter dimension in these cases)
# Press the {{Button|[[Image:TechDraw_DiameterDimension.svg|16px]] [[TechDraw_DiameterDimension|Diameter Dimension]]}} button
# A dimension will be added to the View. The dimension may be dragged to the desired position.
# If needed, add tolerances as described in [[TechDraw_Geometric_dimensioning_and_tolerancing#Tolerances|this page]].

To change the properties of a dimension object either double-clicking it in the drawing or in the [[Tree_view|Tree view]]. This will open the [[TechDraw_LengthDimension#Dimension_dialog|dimension dialog]].

== Limitations ==

Dimension objects are vulnerable to the "[[Topological_naming_problem|topological naming problem]]". See [[TechDraw_LengthDimension|TechDraw LengthDimension]] for more information.


==Properties==
==Properties==

* {{PropertyData|X}}: Horizontal position of the dimension text relative to the View.
See [[TechDraw_LengthDimension#Properties|TechDraw LengthDimension]].
* {{PropertyData|Y}}: Vertical position of the dimension text relative to the View.
* {{PropertyData|Font}}: The name of the font to use for the dimension text.
* {{PropertyData|Fontsize}}: Dimension text size in mm.
* {{PropertyData|FormatSpec}}: Allows additional text to be added to the dimension text. Dimension value will replace %value%.
* {{PropertyData|LineWidth}}: Dimension line weight.
* {{PropertyData|Type}}: Length,radius,diameter, etc. Not normally manipulated by the end user.
* {{PropertyData|MeasureType}}: "True" - based on 3D geometry or "Projected" - based on the drawing. Not normally manipulated directly by the end user.


==Scripting==
==Scripting==

Diameter dimensions can be added to Pages using Python.
{{Emphasis|See also:}} [[TechDraw_API|TechDraw API]] and [[FreeCAD_Scripting_Basics|FreeCAD Scripting Basics]].

The Diameter Dimension tool can be used in [[Macros|macros]] and from the [[Python|Python]] console by using the following functions:

{{Code|code=
{{Code|code=
dim1 = FreeCAD.ActiveDocument.addObject('TechDraw::DrawViewDimension','Dimension')
dim1 = FreeCAD.ActiveDocument.addObject('TechDraw::DrawViewDimension','Dimension')
Line 31: Line 53:
rc = page.addView(dim1)
rc = page.addView(dim1)
}}
}}
==Notes==
* 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.



{{clear}}
{{Docnav
<languages/>
|[[TechDraw_RadiusDimension|RadiusDimension]]
|[[TechDraw_AngleDimension|AngleDimension]]
|[[TechDraw_Workbench|TechDraw]]
|IconL=TechDraw_RadiusDimension.svg
|IconR=TechDraw_AngleDimension.svg
|IconC=Workbench_TechDraw.svg
}}

{{TechDraw Tools navi{{#translation:}}}}
{{Userdocnavi{{#translation:}}}}

Revision as of 19:28, 15 September 2021

TechDraw DiameterDimension

Menu location
TechDraw → Dimensions → Insert Diameter Dimension
Workbenches
TechDraw
Default shortcut
None
Introduced in version
-
See also
TechDraw RadiusDimension

Description

The Diameter Dimension tool adds a diameter dimension to a View. The dimension may be applied to any circular in the drawing. 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 TechDraw LinkDimension tool.

Measuring a circle, indicating the diameter

Usage

  1. Select a circular edge in the drawing. (Note some arcs which appear to be circular are actually ellipses or BSplines. You cannot make a diameter dimension in these cases)
  2. Press the Diameter Dimension button
  3. A dimension will be added to the View. The dimension may be dragged to the desired position.
  4. If needed, add tolerances as described in this page.

To change the properties of a dimension object either double-clicking 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 for more information.

Properties

See TechDraw LengthDimension.

Scripting

See also: TechDraw API and FreeCAD Scripting Basics.

The Diameter Dimension 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 = "Diameter"
dim1.References2D=[(view1, 'Edge1')]
rc = page.addView(dim1)