スケッチャーSketcher ConstrainEqual
説明
ConstrainEqualはライン、ポリライン、長方形に含まれる複数の線分が等しい長さになるように拘束を行います。円弧や円に対して適用した場合はその半径が等しくなるように拘束を行います。異なるタイプの幾何プリミティブ間(例えば線分と円弧)に適用することはできません。
操作
下のスケッチの例には複数のスケッチプリミティブ(ライン、ポリライン、長方形、円弧、円)が含まれています。
複数の線分を選択します(例えばラインと長方形の一辺)。
(スケッチャーワークベンチまたはパートデザインワークベンチにある)スケッチャーツールバのConstrainEqualアイコンをクリックするか、選択されているワークベンチ(スケッチャーまたはパートデザイン)に応じてSketchメニューアイテムまたはPart DesignメニューアイテムにあるSketcher constraintsサブメニューアイテムのConstrain Equaメニューアイテムを選択して選択アイテムに拘束を適用します。
今度はスケッチ上の円弧と円を選択します。
先ほどと同じようにConstrainEqual拘束を適用します。
今度は線分、ポリラインの全線分、そして長方形の拘束されずに残っている辺の一つを選択します。
先ほどと同じようにConstrainEqual拘束を適用します。
線分と円弧を選択します。
先ほどと同じようにConstrainEqual拘束を適用します。すると拘束アイテム同じ形状タイプ(曲線を含まない線分集合または曲線を含む線分集合)でなければならいということを示すポップアップメッセージが表示されます。
The example sketch below contains a number of sketch primitives (line, poly-line, rectangle, arc and circle).
Select two or more line segments (e.g. line and one side of the rectangle).
Click on Constrain equal in the Sketcher toolbar (in either the Sketcher or Part Design workbenches) or select the Constrain Equal menu item from the Sketcher constraints sub menu item in either the Sketch or Part Design menu item depending upon which workbench is selected (Sketcher or Part Design) to apply the constraint to the selected items.
Now select the arc and the circle in the sketch.
and apply Constrain equal as before.
Now select the line segment, all segments of the poly-line and one of the remaining unconstrained sides of the rectangle
and apply Constrain equal as before.
Select the line segment and the arc
and apply Constrain equal as before. A pop-up message indicates that the constrained items have to be of the same geometrical type (lines of zero curvature or lines of non-zero curvature).
Scripting
Sketch.addConstraint(Sketcher.Constraint('Equal', Edge1, Edge2))
The Scripting Sketcher constraints in Python page explains the values which can be used for Edge1
and Edge2
and contains further examples on how to create constraints from Python scripts.
- General: Create sketch, Edit sketch, Attach sketch, Reorient sketch, Validate sketch, Merge sketches, Mirror sketch, Leave sketch, View sketch, View section, Toggle grid, Toggle snap, Configure rendering order, Stop operation
- Sketcher geometries: Point, Polyline, Line, Arc, Arc by 3 points, Arc of ellipse, Arc of hyperbola, Arc of parabola, Circle, Circle by 3 points, Ellipse, Ellipse by 3 points, Rectangle, Centered rectangle, Rounded rectangle, Triangle, Square, Pentagon, Hexagon, Heptagon, Octagon, Regular polygon, Slot, Arc slot, B-spline by control points, Periodic B-spline by control points, B-spline by knots, Periodic B-spline by knots, Toggle construction geometry
- Sketcher constraints:
- Dimensional constraints: Dimension, Horizontal distance, Vertical distance, Distance, Auto radius/diameter, Radius, Diameter, Angle, Lock
- Geometric constraints: Coincident (unified), Coincident, Point on object, Horizontal/vertical, Horizontal, Vertical, Parallel, Perpendicular, Tangent or collinear, Equal, Symmetric, Block
- Other constraints: Refraction (Snell's law)
- Constraint tools: Toggle driving/reference constraint, Activate/deactivate constraint
- Sketcher tools: Fillet, Chamfer, Trim, Split, Extend, External geometry, Carbon copy, Select origin, Select horizontal axis, Select vertical axis, Array transform, Polar transform, Scale transform, Offset geometry, Symmetry, Remove axes alignment, Delete all geometry, Delete all constraints
- Sketcher B-spline tools: Convert geometry to B-spline, Increase B-spline degree, Decrease B-spline degree, Increase knot multiplicity, Decrease knot multiplicity, Insert knot, Join curves
- Sketcher visual: Select unconstrained DoF, Select associated constraints, Select associated geometry, Select redundant constraints, Select conflicting constraints, Show/hide circular helper for arcs, Show/hide B-spline degree, Show/hide B-spline control polygon, Show/hide B-spline curvature comb, Show/hide B-spline knot multiplicity, Show/hide B-spline control point weight, Show/hide internal geometry, Switch virtual space
- Additional: Sketcher Dialog, Preferences, Sketcher scripting
- 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, Assembly, BIM, CAM, Draft, FEM, Inspection, Mesh, OpenSCAD, Part, PartDesign, Points, Reverse Engineering, Robot, Sketcher, Spreadsheet, Surface, TechDraw, Test Framework
- Hubs: User hub, Power users hub, Developer hub