Constraint Internal Alignment/es
|
Ubicación en el Menú |
---|
Sketch → Sketcher constraints → Constrain InternalAlignment |
Entornos de trabajo |
Sketcher |
Atajo de teclado por defecto |
Ctrl+A |
Introducido en versión |
- |
Ver también |
Show/Hide Internal Geometry, Ellipse |
Description
The InternalAlignment constraint aligns lines and points to particular places of a complex sketcher element (there is just one "complex" element so far, the Ellipse).
For Ellipse and
Arc of ellipse, it supports constraining lines to become major and minor diameters, and constraining
points to positions of ellipse's foci.
The constraint is for experienced users because its usage is not as straight forward as for the other constraints. There is a helper tool called Show/Hide internal geometry to avoid the need to invoke the InternalAlignment constraint manually.
Operation on Ellipse
- Select elements to be aligned and an ellipse. The ellipse must be selected last. Accepted are up to two lines and up to two points.
- Invoking the constraint can be done several ways:
- Pressing the
Constrain internal alignment button in the toolbar.
- Using the Sketch → Sketcher constraints →
Constrain internal alignment entry from the top menu.
- Pressing the
The first line that was selected gets aligned to become ellipse's major diameter (but if it is not occupied already by another line, otherwise it will become minor diameter). The second line is aligned to become minor radius. The lines are automatically switched to construction.
Likewise, the first point is constrained to become the first unoccupied focus, and the second point goes to the other focus.
Note: By default new ellipses have an internal construction geometry. When this defines the ellipse already completely, you cannot directly use the InternalAlignment constraint. You first need to delete the construction geometry or parts of it. In case you don't see the construction geometry, select the ellipse and use the tool Show/Hide internal geometry to make it visible.
Scripting
Sketch.addConstraint(Sketcher.Constraint('InternalAlignment:EllipseMajorDiameter', index_of_line, index_of_ellipse))
Sketch.addConstraint(Sketcher.Constraint('InternalAlignment:EllipseMinorDiameter', index_of_line, index_of_ellipse))
Sketch.addConstraint(Sketcher.Constraint('InternalAlignment:EllipseFocus1', index_of_point, 1, index_of_ellipse))
Sketch.addConstraint(Sketcher.Constraint('InternalAlignment:EllipseFocus2', index_of_point, 1, index_of_ellipse))
Remarks:
Sketch
is a sketch object.- Number
1
in the focus calls stands for starting point of a point element (it is ignored). - The
index_of_point
argument must be a point, it cannot be used to e.g. denote an edge's extremity.
The Sketcher scripting page explains the values which can be used for index_of_line
, index_of_point
and index_of_ellipse
and contains further examples on how to create constraints from Python scripts.
- General: Create sketch, Edit sketch, Leave sketch, View sketch, View section, Map sketch to face, Reorient sketch, Validate sketch, Merge sketches, Mirror sketch, Stop operation
- Sketcher geometries: Point, Line, Arc, Arc by 3 points, Circle, Circle by 3 points, Ellipse, Ellipse by 3 points, Arc of ellipse, Arc of hyperbola, Arc of parabola, B-spline, Periodic B-pline, Polyline, Rectangle, Centered rectangle, Rounded rectangle, Triangle, Square, Pentagon, Hexagon, Heptagon, Octagon, Regular polygon, Slot, Fillet, Trim, Extend, Split, External geometry, Carbon copy, Toggle construction geometry
- Sketcher constraints:
- Geometric constraints: Coincident, Point on object, Vertical, Horizontal, Parallel, Perpendicular, Tangent, Equal, Symmetric, Block
- Dimensional constraints: Lock, Horizontal distance, Vertical distance, Distance, Radius, Diameter, Radiam, Angle, Snell's law, Internal alignment
- Constraint tools: Toggle driving/reference constraint, Activate/deactivate constraint
- Sketcher tools: Select unconstrained DoF, Close shape, Connect edges, Select associated constraints, Select associated geometry, Select redundant constraints, Select conflicting constraints, Show/hide internal geometry, Select origin, Select vertical axis, Select horizontal axis, Symmetry, Clone, Copy, Move, Rectangular array, Remove axes alignment, Delete all geometry, Delete all constraints
- Sketcher B-spline tools: 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, Convert geometry to B-spline, Increase B-spline degree, Decrease B-spline degree, Increase knot multiplicity, Decrease knot multiplicity, Insert knot
- Sketcher virtual space: 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, Arch, Draft, FEM, Image, Inspection, Mesh, OpenSCAD, Part, PartDesign, Path, Points, Raytracing, Reverse Engineering, Sketcher, Spreadsheet, Start, Surface, TechDraw, Test Framework, Web
- Deprecated or unmaintained workbenches: Complete, Drawing, Robot
- Hubs: User hub, Power users hub, Developer hub