Sketcher RestoreInternalAlignmentGeometry: Difference between revisions

From FreeCAD Documentation
mNo edit summary
(several ways added)
 
(12 intermediate revisions by 7 users not shown)
Line 1: Line 1:
<languages/>
<languages/>
<translate>
<translate>

<!--T:12-->
<!--T:12-->
{{Docnav
{{Docnav
|[[Sketcher SelectElementsAssociatedWithConstraints|Select Elements Associated with constraints]]
|[[Sketcher_SelectConflictingConstraints|Select conflicting constraints]]
|[[Sketcher_SelectOrigin|Select origin]]
|[[Sketcher Symmetry|Symmetry]]
|[[Sketcher_Workbench|Sketcher]]
|[[Sketcher_Workbench|Sketcher]]
|IconL=Sketcher_SelectConflictingConstraints.svg
|IconL=Sketcher_SelectElementsAssociatedWithConstraints.svg
|IconR=Sketcher_SelectOrigin.svg‎
|IconC=Workbench_Sketcher.svg
|IconC=Workbench_Sketcher.svg
|IconR=Sketcher_Symmetry.svg‎
}}
}}


Line 14: Line 15:
{{GuiCommand
{{GuiCommand
|Name=Sketcher RestoreInternalAlignmentGeometry
|Name=Sketcher RestoreInternalAlignmentGeometry
|Workbenches=[[Sketcher Workbench|Sketcher]]
|MenuLocation=Sketch → Sketcher tools → Show/hide internal geometry
|MenuLocation=Sketch → Sketcher tools → Show/hide internal geometry
|Workbenches=[[Sketcher_Workbench|Sketcher]]
|Shortcut=Ctrl+Shift+E
|Shortcut={{KEY|Z}} {{KEY|I}}
|SeeAlso=[[Sketcher CreateEllipseByCenter|Ellipse]], [[Sketcher ConstrainInternalAlignment|Internal Alignment Constraint]]
|SeeAlso=
}}
}}


Line 23: Line 24:


<!--T:8-->
<!--T:8-->
The command deletes unused elements aligned to internal geometry, or recreates the missing ones.
The [[Image:Sketcher_RestoreInternalAlignmentGeometry.svg|24px]] [[Sketcher_RestoreInternalAlignmentGeometry|Sketcher RestoreInternalAlignmentGeometry]] command deletes unused elements aligned to internal geometry, or recreates the missing ones.


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


<!--T:9-->
<!--T:9-->
* Select an element of a sketch that supports internal alignment (currently only Ellipse/Arc and B-spline).
# Select a sketch element that supports internal alignment ([[Sketcher_CreateEllipseByCenter|Ellipse]], [[Sketcher_CreateArcOfEllipse|Arc of ellipse]], [[Sketcher_CreateArcOfHyperbola|Arc of hyperbola]], [[Sketcher_CreateArcOfParabola|Arc of parabola]] or [[Sketcher_CreateBSpline|B-spline]]).
# There are several ways to invoke the command:
* Invoke the command by clicking [[Image:Sketcher_RestoreInternalAlignmentGeometry.png|24px]] or choose {{KEY| Sketch}} → {{KEY| Sketcher tools}} → {{KEY|[[Image:Sketcher_RestoreInternalAlignmentGeometry.png|24px]] Show/Hide Internal Geometry}} or using the keyboard shortcut.
#* Press the {{Button|[[Image:Sketcher_RestoreInternalAlignmentGeometry.svg|16px]] [[Sketcher_RestoreInternalAlignmentGeometry|Show/hide internal geometry]]}} button.
#* Select the {{MenuCommand|Sketch → Sketcher tools → [[Image:Sketcher_RestoreInternalAlignmentGeometry.svg|16px]] Show/hide internal geometry}} option from the menu.
#* Use the keyboard shortcut: {{KEY|Z}} then {{KEY|I}}.
If there are free alignment places for the selected element, new construction geometry is created and aligned to the available places. If all alignment places are occupied, the unused internal geometry is deleted (the element is treated as unused if it is not constrained to anything else).
If there are free alignment places for the selected element, new construction geometry is created and aligned to the available places. If all alignment places are occupied, the unused internal geometry is deleted (the element is treated as unused if it is not constrained to anything else).


Line 37: Line 41:
# Create a new ellipse. New ellipses are always fully-packed. You'll see an ellipse and a bunch of construction geometry: major diameter, minor diameter, foci.
# Create a new ellipse. New ellipses are always fully-packed. You'll see an ellipse and a bunch of construction geometry: major diameter, minor diameter, foci.
# Select minor diameter line and hit {{KEY|Del}}. The diameter is gone, but the ellipse remains. How do we get the diameter back?
# Select minor diameter line and hit {{KEY|Del}}. The diameter is gone, but the ellipse remains. How do we get the diameter back?
# Select the ellipse and invoke the {{KEY|[[Image:Sketcher_RestoreInternalAlignmentGeometry.png|24px]]}} command. The diameter is restored.
# Select the ellipse and invoke the {{Button|[[File:Sketcher_RestoreInternalAlignmentGeometry.svg|16px]] [[Sketcher_RestoreInternalAlignmentGeometry|Show/hide internal geometry]]}} command. The diameter is restored.
# Now, constrain the major diameter of the ellipse to some length. Select the ellipse and invoke the {{KEY|[[Image:Sketcher_RestoreInternalAlignmentGeometry.png|24px]]}} command.
# Now, constrain the major diameter of the ellipse to some length. Select the ellipse and invoke the {{Button|[[File:Sketcher_RestoreInternalAlignmentGeometry.svg|16px]] [[Sketcher_RestoreInternalAlignmentGeometry|Show/hide internal geometry]]}} command.
'''Result:''' Minor diameter and foci are deleted, but the major diameter is kept, because it participates in other constraints. Ellipse's center remains too, because it is inherent, like center of a circle.
'''Result:''' Minor diameter and foci are deleted, but the major diameter is kept, because it participates in other constraints. Ellipse's center remains too, because it is inherent, like center of a circle.


Line 44: Line 48:
<!--T:13-->
<!--T:13-->
{{Docnav
{{Docnav
|[[Sketcher SelectElementsAssociatedWithConstraints|Select Elements Associated with constraints]]
|[[Sketcher_SelectConflictingConstraints|Select conflicting constraints]]
|[[Sketcher_SelectOrigin|Select origin]]
|[[Sketcher Symmetry|Symmetry]]
|[[Sketcher_Workbench|Sketcher]]
|[[Sketcher_Workbench|Sketcher]]
|IconL=Sketcher_SelectConflictingConstraints.svg
|IconL=Sketcher_SelectElementsAssociatedWithConstraints.svg
|IconR=Sketcher_SelectOrigin.svg‎
|IconC=Workbench_Sketcher.svg
|IconC=Workbench_Sketcher.svg
|IconR=Sketcher_Symmetry.svg‎
}}
}}

<!--T:14-->
{{Sketcher Tools navi}}

<!--T:15-->
{{Userdocnavi}}


</translate>
</translate>
{{Sketcher_Tools_navi{{#translation:}}}}
{{clear}}
{{Userdocnavi{{#translation:}}}}

Latest revision as of 18:45, 2 March 2024

Sketcher RestoreInternalAlignmentGeometry

Menu location
Sketch → Sketcher tools → Show/hide internal geometry
Workbenches
Sketcher
Default shortcut
Z I
Introduced in version
-
See also
None

Description

The Sketcher RestoreInternalAlignmentGeometry command deletes unused elements aligned to internal geometry, or recreates the missing ones.

Usage

  1. Select a sketch element that supports internal alignment (Ellipse, Arc of ellipse, Arc of hyperbola, Arc of parabola or B-spline).
  2. There are several ways to invoke the command:
    • Press the Show/hide internal geometry button.
    • Select the Sketch → Sketcher tools → Show/hide internal geometry option from the menu.
    • Use the keyboard shortcut: Z then I.

If there are free alignment places for the selected element, new construction geometry is created and aligned to the available places. If all alignment places are occupied, the unused internal geometry is deleted (the element is treated as unused if it is not constrained to anything else).

Example

  1. Create a new ellipse. New ellipses are always fully-packed. You'll see an ellipse and a bunch of construction geometry: major diameter, minor diameter, foci.
  2. Select minor diameter line and hit Del. The diameter is gone, but the ellipse remains. How do we get the diameter back?
  3. Select the ellipse and invoke the Show/hide internal geometry command. The diameter is restored.
  4. Now, constrain the major diameter of the ellipse to some length. Select the ellipse and invoke the Show/hide internal geometry command.

Result: Minor diameter and foci are deleted, but the major diameter is kept, because it participates in other constraints. Ellipse's center remains too, because it is inherent, like center of a circle.