Sketcher: Constrângere de aliniere internă
Menu location |
---|
Sketch → Sketcher constraints → Constrain InternalAlignment |
Workbenches |
Sketcher |
Default shortcut |
Ctrl + A |
Introduced in version |
- |
See also |
Show/Hide Internal Geometry, Ellipse |
Description
Descriere
Această constrângere aliniază liniile și punctele particulare ale unui element complex tip schiță (există doar un element "complex"Ellipse).
Pentru Ellipse și al său Arc, susține liniile de constrângere pentru a deveni axe majore și minore, și constrângere points la poziția focarelor elipsei.
The constraint requires a lot of effort to use in the way other constraints are. It is hidden in the menu, and not exposed on any toolbars by default. There is a helper tool called Show/Hide Internal Geometry which is exposed on workbenches' toolbars and aimed to completely remove the need to invoke the constraint manually.
Operation on Ellipse
Operații cu Elipse
- Selectați elementele pentru a fi aliniate ți o elipsă.
Elipsa trebuie aleasă ultima dată. Sunt acceptate până la două linii și până la două puncte.
- Invocați constrângerea selectând elementul din meniu (Sketch → Sketcher constraints → Constrain InternalAlignment).
Prima linie selectată va fi aliniată pentru a deveni axa cea mai mare al elipsei (dar dacă nu este ocupată de altă linie, altfel va deveni un diametru minor). A doua linie este aliniată pentru a deveni o semiaxaă minoră. Liniile sunt schimbate automat construction.
În mod similar, primul punct este forțat să devină primul focar neocupat, iar al doilea este îndreptat spre celălalt focar.
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.
Scripturi
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 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.
- The tools: New sketch, Edit sketch, Leave sketch, View sketch, View section, Map sketch to face, Reorient sketch, Validate sketch, Merge sketches, Mirror sketch
- Sketcher geometries: Point, Line by 2 point, Create an arc, Arc, Arc by 3 Point, Create a circle, Circle, Circle by 3 Point, Create a conic, Ellipse by center, Ellipse by 3 points, Arc of ellipse, Arc of hyperbola, Arc of parabola, Create a B-spline, Create B-spline, Create periodic B-pline, Polyline (multiple-point line), Rectangle, Create regular polygon, Triangle, Square, Pentagon, Hexagon, Heptagon, Octagon, Create Regular Polygon, Slot, Fillet, Trimming, Extend, External Geometry, CarbonCopy, Construction Mode
- Sketcher constraints
- Geometric constraints Coincident, Point On Object, Vertical, Horizontal, Parallel, Perpendicular, Tangent, Equal Length, Symmetric, Constrain Block
- Dimensional constraints Lock, Horizontal Distance, Vertical Distance, Distance, Radius, Internal Angle, Snell's Law, Internal Alignment, Toggle reference/driving constraint,
- Sketcher tools Select solver DOFs, Close Shape, Connect Edges, Select Constraints, Select Origin, Select Vertical Axis, Select Horizontal Axis, Select Redundant Constraints, Select Conflicting Constraints, Select Elements Associated with constraints, Show/Hide internal geometry, Symmetry, Clone, Copy, Move, Rectangular Array, 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, Convert Geometry to B-spline, Increase degree, Increase knot multiplicity, Decrease knot multiplicity
- Sketcher virtual space Switch Virtual Space

- Installation: Windows, Linux, Mac; Getting started
- Basics: About FreeCAD, Workbenches, Preferences, Document structure, Interface Customization, Properties, Mouse Model; Tutorials
- Workbenches: Arch, Draft, FEM, Image, Inspection, Mesh, OpenSCAD, Part, PartDesign, Path, Plot, Points, Raytracing, Reverse Engineering, Robot, Ship, Sketcher, Spreadsheet, Start, Surface workbench, TechDraw, Test Framework, Web
- Scripting: Introduction to Python, FreeCAD scripting tutorial, FreeCAD Scripting Basics, How to install macros, Gui Command, Units Modules: Builtin modules, Workbench creation, Installing more workbenches Meshes: Mesh Scripting, Mesh Module Parts: The Part Module, Topological data scripting, PythonOCC, Mesh to Part Coin scenegraph: The Coin/Inventor scenegraph, Pivy Qt interface: PySide, Using the FreeCAD GUI, Dialog creation Parametric objects: Scripted objects Other: Code snippets, Line drawing function, Embedding FreeCAD, FreeCAD vector math library, Power users hub, Python, Macros, FreeCAD Scripting Basics, Topological data scripting