Sketcher Dialog/bg

Въведение

Докато се редактира скица или, с други думи, докато скица е в режим на редактиране, диалоговият прозорец Скица се показва в раздела Tasks (Задачи) на Combo View.

За да поставите скица в режим на редактиране вижте Sketcher EditSketch. За да завършите режим на редактиране, вижте Sketcher LeaveSketch.

Диалоговият прозорец Sketcher има следните раздели:

Параметри на инструмента

introduced in 1.0

Някои инструменти добавят секция с параметри в горната част на диалоговия прозорец. Наличните опции и/или режими зависят от инструмента.

Разделът параметри на инструмента Sketcher CreateLine

Sketch Edit

Този раздел информира за състоянието на скицата.

Възможните съобщения са:

Ако една скица е недостатъчно ограничена, се посочва броят на степените на свобода. Щракването върху подчертания текст ще избере недостатъчно ограничените елементи на скицата. Вижте Sketcher SelectElementsWithDoFs.

Ако една скица има излишни ограничения или е свръхограничена, са посочени индексите на съответните ограничения. Щракването върху подчертания текст ще ги избере. Вижте Sketcher SelectRedundantConstraints и Sketcher SelectConflictingConstraints.

Малформираните ограничения могат да бъдат фиксирани с Sketcher ValidateSketch.

Някои съобщения се показват в червено с причина: те са предупреждения, които не трябва да се пренебрегват. Те сигнализират за проблеми, които трябва да бъдат разгледани, тъй като те пречат на решаващата машина. Съобщенията не са взаимно изключващи се. Ако са приложими повече от едно, само първото от списъка се показва

За да промените цветовете, използвани за съобщението, вижте Fine-tuning.

Налични опции:

Опция Описание
Този бутон преизчислява документа.
Този бутон отваря меню:
  • Auto-update: Ако се провери, целият документ се преизчислява след всяко действие на скица. Не е препоръчително за сложни документи.
  • Display grid: Toggles the visibility of the grid. introduced in 1.1
  • Grid auto-spacing: If checked, grid spacing is automatically adapted based on the view dimensions. Stored in the ВидGrid Auto property of the sketch. introduced in 1.1
  • Snap to grid: Toggles grid snap in all sketches. If checked, the cursor will snap to grid lines and grid intersections. Snapping occurs if the distance of the cursor to a grid line is 20% of the grid spacing or less. Snapping also works if the grid is invisible. introduced in 1.1
  • Spacing: Specifies the distance between two subsequent grid lines. Used as a base value if Grid auto-spacing is enabled. Stored in the ВидGrid Size property of the sketch. introduced in 1.1
  • Snap to objects: If checked, the cursor will snap to edges of geometry and midpoints of lines and arcs. introduced in 1.1
  • Snap angle: Specifies the angle for angular snap. Snapping will occur at multiples of this value starting from the direction of the positive X-axis of the sketch. The Ctrl key must be held down for this snap. Angular snap only works when creating certain geometry. introduced in 1.1
  • Rendering order: items in the list can be dragged to change the rendering order of all sketches. In case of coincident objects, the rendering order determines which elements appear on top, and are therefore selected first, in the 3D View. introduced in 1.1

Прихващането работи само при създаването на геометрия. Имайте предвид, че прихващането е просто помощно средство за чертане, то не води до допълнителни ограничения.

Разширени контроли на решаващите машини

Този раздел ще се появи само ако включите опцията Show section 'Advanced Solver Controls' в sketcher preferences.

Забележете, че повечето от опциите в този раздел не са от практическа употреба. Те обаче могат да помогнат с тестването и разбирането на решаващите машини.

Налични опции:

Опция Описание
Default solver Решаваща машина, която се използва за решаване на геометрията. LevenbergMarquardt и DogLeg са trust region алгоритми за оптимизиране. Решаващата машина BFGS използва Broyden–Fletcher–Goldfarb–Shanno algorithm.
DogLeg Gauss step Тази настройка е достъпна само за решаваща машина DogLeg'. Това е типът стъпка, използван в алгоритъма DogLeg.
Maximum iterations Ако решаващата машина се нуждае от повече итерации, за да намери приближение на дадено решение, тя ще спре и ще изведе, че не е успяла.
Sketch size multiplier If checked, the maximum iterations will be multiplied by the number of parameters. The idea is that bigger sketches would need more iterations to converge.
Convergence The threshold for the squared error. This error is used to determine whether a solution converges or not.
Eps/Eps1/Tau These settings are only available for the solver LevenbergMarquardt. You should only change something here if you fully understand how the LevenbergMarquardt solver works.
Tolg/Tolx/Tolf These settings are only available for the solver DogLeg. You should only change something here if you fully understand how the DogLeg solver works.
QR Algorithm 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 threshold When doing a QR, values under the pivot threshold are treated as zero.
Redundant Solver The solver that is used during diagnosing to determine whether a group is redundant or conflicting.
Red. Max Iterations The same as Maximum iterations, but for the redundant solving.
Red. Sketch size multiplier The same as Sketch size multiplier, but for the redundant solving.
Red. Convergence The same as Convergence, but for the redundant solving.
R.Eps/R.Eps1/R.Tau The same as Eps/Eps1/Tau, but for the redundant solving.
R.Tolg/R.Tolx/R.Tolf The same as Tolg/Tolx/Tolf, but for the redundant solving.
Console Debug mode Setting to specify the verbosity of the console output.
Solve This button explicitly starts the solver.
Restore Defaults This button restores the default solver settings.

Ограничения (Constraints)

В този раздел са изброени ограниченията в скицата. Премахването на отметката пред едно ограничение в списъка ще го скрие в скицата. Ограничения могат да бъдат избрани в списъка, както и в скицата.

Ограниченията също могат да бъдат направени нескрити с Sketcher SwitchVirtualSpace.

Налични опции:

Опция Описание
Filter Ако е поставена отметка Филтър, падащият списък Филтър контролира кои ограничения са изброени:
  • All: Всички ограничения.
  • Geometric: Геометрични ограничения
  • 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 the background of the list, or right-clicking constraints selected in the list opens a context menu. The menu has the following options:
  • Edit 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 Driving/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. introduced in 26.3: The constraint can also be double-clicked, or the F2 key can be used.
  • Center Sketch: Centers the 3D View around the selected constraints.
  • Delete: Deletes the selected constrains. The Del key can also be used.
  • Delete All: Deletes all constraints. introduced in 26.3
  • Delete by Filter: Deletes the filtered constraints. introduced in 26.3
  • Swap Constraint Names: Swaps the names of selected constraints. Only works if two constraints with user given names are selected.

Елементи

В този раздел са изброени елементите в скицата. Премахването на отметката на елемент в списъка ще го скрие в скицата. Елементите могат да бъдат избирани в списъка, както и в скицата.

Налични опции:

Опция Описание
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.
Всеки елемент в списъка има 1 до 4 бутона, организирани в 4 колони. Те избират конкретна част от елемента. Показват се само приложими бутони.
  • Бутон в колона 1: Избира ръба на елемента.
  • Бутон в колона 2: Избира началната точка на елемента.
  • Бутон в колона 3: Избира крайната точка на елемента.
  • Бутон в колона 4: Избира централната точка на елемента.

Щракването върху текста има същия ефект като щракването върху първия наличен бутон на елемента.


В изображението са избрани ръба на линия и центъра на дъгата.
Линията няма бутон в колона 4, тъй като няма център.

Context menu Right-clicking the background of the list, or 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.