Sketcher Dialog

From FreeCAD Documentation
This page is a translated version of the page Sketcher Dialog and the translation is 50% complete.
Outdated translations are marked like this.

Einleitung

Während eine Skizze bearbeitet wird, oder anders gesagt, während die Skizze im Bearbeitungsmodus ist, wird der Sketcher-Dialog auf der Registerkarte Aufgaben der Combo-Ansicht angezeigt.

To put a sketch in edit mode see Sketcher EditSketch. To finish edit mode see Sketcher LeaveSketch.

Der Dialog besteht aus den folgenden Abschnitten:

Tool parameters

introduced in version 0.22

Some tools add a parameters section at the top of the dialog. Available options and/or modes depend on the tool.

The parameters section of the Sketcher CreateLine tool

Meldungen des Lösers

Dieser Abschnitt informiert über den Zustand der Skizze. Eine Skizze kann unterbestimmt, vollständig bestimmt oder überbestimmt (mit redundant festgelegten Freiheitsgraden) sein.

The possible messages are:

  • Empty sketch
  • Fully constrained
  • Under constrained: n DoF(s)
  • Redundant constraints: (#, #, #)
  • Over-constrained: (#, #, #)

Ist eine Skizze ist unterbestimmt, wird die Anzahl nicht festgelegter Freiheitsgrade angezeigt. Klickt man darauf, werden die unterbestimmten Skizzenelemente ausgewählt.

Besitzt eine Skizze redundant festgelegte Randbedingungen, werden die Indizes der Randbedingungen angezeigt. Klickt man darauf, werden diese Randbedingungen ausgewählt.

The last two messages are displayed in red for a reason: they are warnings that should not be ignored. They indicate issues that must be addressed as they interfere with the solver.

The last three messages are not mutually exclusive. If more than one applies only the most important message, occurring lowest in the list, is displayed.

Vorhandene Optionen:

Option Beschreibung
Diese Schaltfläche öffnet ein Menü:
  • Auto update: wenn aktiviert, wird nach jeder Aktion in der Skizze das ganze Modell neu berechnet. Nicht empfohlen für komplexe Dokumente.

Erweiterte Steuerung des Lösers

Dieser Abschnitt wird nur angezeigt, wenn die Option Bereich 'Erweiterte Steuerung des Lösers' anzeigen in den Voreinstellungen des Sketchers aktiviert wurde.

Beachte, dass die meisten Optionen in diesem Abschnitt haben keinen praktischen Nutzen besitzen. Sie können trotzdem beim Testen und Verstehen der Löser helfen.

Vorhandene Optionen:

Option Description
Standard-Löser Der Löser, der zur Lösung der Geometrie verwendet wird. Levenberg-Marquardt-Algorithmus und DogLeg (Trust-Region-Verfahren) sind Optimierungsalgorithmen. Der BFGS-Löser verwendet das Broyden–Fletcher–Goldfarb–Shanno -Verfahren.
DogLeg Gauss Schritt Diese Einstellung ist nur für den DogLeg-Löser verfügbar. Es ist der im DogLeg-Algorithmus verwendete Schritttyp.
Maximale Iterationszahl Falls der Löser mehr Iterationen benötigt, um eine Konvergenz für eine Lösung zu finden, wird er anhalten und melden, dass er gescheitert ist.
Multiplikator der Skizzengröße Falls aktiviert, wird die Zahl der maximalen Iterationen mit der Anzahl der Parameter multipliziert. Die Idee ist, dass größere Skizzen mehr Iterationen zum Konvergieren benötigen.
Konvergenz Der Grenzwert für den Quadratfehler (squared error). Dieser Fehler wird verwendet, um festzustellen, ob eine Lösung konvergiert oder nicht.
Eps/Eps1/Tau Diese Einstellungen sind nur für den LevenbergMarquardt-Löser verfügbar. Du solltest nur dann etwas ändern, wenn du vollständig verstehst, wie der Levenberg-Marquardt-Löser arbeitet.
Tolg/Tolx/Tolf Diese Einstellungen sind nur für den Dogleg-Löser verfügbar. Du solltest nur dann etwas ändern, wenn du vollständig verstehst, wie der Dogleg-Löser arbeitet.
QR-Algorithmus Während der Diagnose wird der Rang der Matrix berechnet, was die weitere Analyse des Beschränkungssystem ermöglicht, um festzustellen, ob es redundante/sich widersprechende Beschränkungen gibt. Die 'Rang'-berechnende Zerlegung in FreeCAD ist QR. Es gibt zwei Algorithmen: Eigen Dense QR ist ein dichte Matrix-QR mit voller Pivotisierung, was ein altbewährter Algorithmus ist, der sehr gut arbeitet, aber ziemlich langsam ist, wenn das System wächst. Der Eigen Sparse QR-Algoritmus ist eine Optimierung für dünnbesetzte Matrizen (mit vielen Nullen), der üblicherweise viel schneller ist, da FreeCADs Systeme viele Nullen haben.

(During diagnosing the rank of the matrix is calculated which enables to further analyze the constraint system to determine if there are redundant/conflicting constraints. The rank revealing decomposition used in FreeCAD is QR. There are two algorithms: Eigen Dense QR is a dense matrix QR with full pivoting, which is the legacy proven algorithm that works very well but it is rather slow as the system grows. The Eigen Sparse QR algorithm is an optimization for sparse matrices (having lots of zeros), which is usually much faster, since FreeCAD's systems do have a lot of zeros.)

Pivot-Grenzwert Bei der Ausführung des QR-Verfahrens werden Werte unterhalb des Pivot-Grenzwertes als Null behandelt.
Redundanz-Löser Der Löser, der während der Diagnose verwendet wird, ob eine Gruppe redundant oder sich widersprechend (conflicting) ist.
Redundant max. Iterationen Das Gleiche wie Maximale Iterationszahl, aber für das redundante Lösen.
Redundanter Zeichnungsgrößen-Multplikator Das Gleiche wie Multiplikator der Skizzengröße, aber für das redundante Lösen
Redundante Konvergenz Das Gleiche wie Konvergenz, aber für das redundante Lösen
R.Tolg/R.Tolx/R.Tolf Das Gleiche wie Tolg/Tolx/Tolf, aber für das redundante Lösen
Konsolen-Debug-Modus Einstellung für die Ausführlichkeit der Konsolenausgaben.
Lösen Diese Schaltfläche startet den Löser direkt.
Standardeinstellungen wiederherstellen Dieser Schaltfläche stellt die Standardeinstellungen wieder her.

Einschränkungen

Dieser Abschnitt listet die Randbedingungen der Skizze. Wird eine Randbedingung in der Liste deaktiviert, wird sie in der Skizze ausgeblendet. Randbedingungen können sowohl in der Liste als auch in der Skizze ausgewählt werden.

Vorhandene Optionen:

Option Description
Filter If the Filter checkbox is checked the Filter dropdown list controls which constraints are listed:
  • All: All constraints.
  • Geometric: Geometric constraints.
  • Datums: Driving dimensional constraints. Does not work properly: all dimensional constraints are filtered.
  • Named: Named constraints. Does not work.
  • Reference: Driven dimensional constraints. Does not work.
  • Selected constraints: Constraints selected in the sketch.
  • Associated constraints: Constraints associated with elements selected in the sketch.
This button toggles the visibility of the listed constraints in the sketch.
This button opens a menu:
  • Auto constraints: If checked, some geometric constraints are applied automatically to new elements.
  • Auto remove redundants: If checked, new constraints that are redundant are automatically removed.
  • Show only filtered Constraints: If checked, only the listed constraints are shown in the sketch.
  • Extended information (in widget): If checked, extended information is added in this form:
[(GeoID1,PosID1),(GeoID2,PosID2),(GeoID3,PosID3)]
GeoID is a zero-based index for non-external geometry. The X axis has GeoID -1, the Y axis has GeoID -2. GeoID -3, -4 etc. are used for external geometry.
PosID can have the following values:
0 = edge, 1 = start point, 2 = end point, 3 = center point.
For example a dimension from the origin to the center of a circle that is the 2nd non-external element in the sketch will have this extended information:
[(-1,1),(1,3)]
  • Hide internal alignment (in widget): If checked, constraints associated with internal alignments are hidden in the list. The Show/Hide internal geometry tool can also hide these constraints, but will also hide the internal alignments in the sketch.
Context menu Right-clicking constraints selected in the list opens a context menu. The menu has the following options:
  • Change value: Changes the value of a dimensional constraint. Only works for a single constraint. You can also double click the constraint in the list, or double click its value in the 3D view.
  • Toggle to/from reference: See Sketcher ToggleDrivingConstraint.
  • Deactivate or Activate: See Sketcher ToggleActiveConstraint.
  • Show constraints: Same as checking the constraint checkbox. But, unlike the checkbox, also works for more than one constraint.
  • Hide constraints: Same as unchecking the constraint checkbox. Idem.
  • Select Elements: See Sketcher SelectElementsAssociatedWithConstraints.
  • Rename: Renames the constraint.
  • Center sketch: Centers the 3D view around the selected constraints.
  • Delete: Deletes the selected constrains. The Del key can also be used.
  • Swap constraint names: Swaps the names of selected constraints. Only works if two constraints with user given names are selected.

Elemente

Dieser Abschnitt listet die Elemente in der Skizze. Wird ein Element in der Liste deaktiviert, wird es in der Skizze ausgeblendet. Elemente können sowohl in der Liste als auch in der Skizze ausgewählt werden.

Vorhandene Optionen:

Option Description
Filter If the Filter checkbox is checked the Filter dropdown list controls which elements are listed:
  • Normal: Normal geometry: geometry that does not fall in the next three categories.
  • Construction: Construction geometry.
  • Internal: Internal geometry.
  • External: External geometry.
  • All types: All geometry types. Specific types can be selected in the rest of the list:
    • Point
    • Line
    • Circle
    • Ellipse
    • Arc of circle
    • Arc of ellipse
    • Arc of hyperbola
    • Arc of parabola
    • B-Spline
This button opens a menu:
  • Extended information: If checked, extended element information is provided.
For non-external geometry the information in the list then changes from:
<N>-<TYPE>
to:
<TYPE>(Edge<N>#ID<GeoID>#<VLX>)[-Construction]
<TYPE>: Element type.
<N>: A 1-based index that indicates the creation order of the element.
<GeoID>: See under Constraints.
<VLX>: Element layer. See below.
Each element in the list has 1 to 4 buttons organized in 4 columns. These select a specific part of the element. Only applicable buttons are shown.
  • Button in column 1: Selects the edge of the element.
  • Button in column 2: Selects the start point of the element.
  • Button in column 3: Selects the end point of the element.
  • Button in column 4: Selects the center point of the element.

Clicking the text has the same effect as clicking the first available button of the element.


In the image the edge of a line and the center of an arc have been selected.
The line does not have a button in column 4 as it does not have a center.

Context menu Right-clicking elements selected in the list opens a context menu. The menu contains the Geometric constraint tools, the Dimensional constraint tools and the following additional options:
  • Toggle construction geometry: See Sketcher ToggleConstruction.
  • Select Constraints: See Sketcher SelectConstraints.
  • Select Origin: See Sketcher SelectOrigin.
  • Select Horizontal Axis: See Sketcher SelectHorizontalAxis.
  • Select Vertical Axis: See Sketcher SelectVerticalAxis.
  • Layer: 3 layers are available:
    • Layer 0: Indicated as VL0 in extended information. This is the default layer. Elements on this layer are displayed with a solid line type.
    • Layer 1: Indicated as VL1 in extended information. Elements on this layer are displayed with a dashed line type.
    • Hidden: Indicated as VL2 in extended information. Elements on this layer are hidden in the sketch.
The rendering order of layers 0 and 1 is such that when picking coincident points in the 3D view elements on layer 0 are selected in favor of those on layer 1.
  • Delete: Deletes the selected elements. The Del key can also be used.