Sketcher SketchObject/pl

Wprowadzenie


Obiekt SketchObject, lub formalnie, jest podstawowym elementem do tworzenia obiektów 2D za pomocą środowiska pracy Szkicownik.

Obiekt wywodzi się z obiektu Part2DObject, co oznacza, że jest to obiekt Cecha wyspecjalizowany dla geometrii 2D. Podobnie jak obiekt Part2DObject, obiekt SketchObject może być dołączany do płaszczyzn i powierzchni. Ponadto obiekt SketchObject może obsługiwać wiązania geometryczne.



Użycie

 * 1) Przejdź do środowiska pracy Szkicownik.
 * 2) Naciśnij przycisk.
 * 3) Wybierz  jako: Płaszczyzna XY, Płaszczyzna XZ lub Płaszczyzna YZ. Opcjonalnie wybierz także opcję  i podaj wartość.
 * 4) Naciśnij przycisk.

Although the SketchObject can be used by itself to draw on a plane, it is most commonly used in conjunction with the PartDesign Workbench to create extruded solids.


 * 1) Switch to the PartDesign Workbench.
 * 2) Press.
 * 3) Press.
 * : XY_Plane (Base plane), XZ_Plane (Base plane), or YZ_Plane (Base plane).
 * 1) Press.

Properties
See Property for all property types that scripted objects can have.

The Sketcher SketchObject ( class) is derived from the Part Part2DObject ( class) and inherits all its properties.

The Sketcher SketchObject also has the following additional properties in the property editor. Hidden properties can be shown by using the command in the context menu of the property editor.

Data

 * : a list of Part geometries that exist inside the sketch.
 * : named constraints, if they exist; otherwise it is an empty list.
 * : a list of Part geometries outside this Sketch that are used for reference.
 * : (read-only) if the sketch is fully constrained.

View

 * : if constraints are automatically added when geometry is drawn.
 * : if redundant auto-constraints are avoided.


 * : if the grid is resized based on the boundingbox of the geometry of the sketch.
 * : the size of the spacing of the local grid lines in the 3D view; it defaults to.
 * : if the grid can be used to snap points.
 * : the style of the grid lines; (default) or.
 * : if a grid local to the object will be displayed in the 3D view. This grid is independent of the Draft Grid.
 * : if the grid is only displayed while the sketch is being edited.
 * : if the local grid will be localized around the origin of the shape, otherwise it will extend itself more.
 * : the maximum number of lines in the grid.


 * : name of the workbench to activate when editing the sketch; it defaults to.
 * : if the camera will be forced to orthographic view mode when the sketch is opened.
 * : if all objects that depend on the sketch are hidden when the sketch is opened.
 * : if the camera position is saved before opening the sketch, and is restored after closing it.
 * : if only (parts of) objects behind the sketch plane are visible while the sketch is being edited.
 * : if all objects used in links to external geometry are shown when the sketch is opened.
 * : if all objects this sketch is attached to are shown when the sketch is opened.
 * : a custom class associated with this object, that handles hiding and showing other objects when opening and closing the sketch.

Tworzenie skryptów
Podstawy tworzenia skryptów FreeCAD, oraz Obiekty skryptowe.

Ogólne informacje na temat dodawania obiektów do dokumentu można znaleźć na stronie Część: właściwość.

Obiekt SketchObject jest tworzony za pomocą metody dokumentu.

Dlatego też, dla klasy podrzędnej Python, powinieneś stworzyć obiekt.