\n\n\n*The [Draft Workbench](3D_view]]_is_a_component_of_the_FreeCAD_[[interface]]. By default it shows a small widget with coordinate axes, and the navigation cube also with coordinate axes; the grid can be displayed and configured by loading the [[Draft Workbench.md).*\n\n## Context menu \n\nThe options in the context menu of the 3D view depend on the selected object(s) and the currently active workbench. To display this menu optionally select one or more objects and then right-click in the 3D view.\n\n## Details\n\nFreeCAD uses the Quarter library to use Coin3D in a Qt environment.\n\nIt is possible to interact directly with the 3D view scenegraph from the [Python console](Python_console.md) by using the Python library Pivy.\n\nFor more information see the power user documentation:\n\n- [Scenegraph](Scenegraph.md), description of Coin3D.\n- [Pivy](Pivy.md), usage of Coin3D from the Python console.\n- [Third party libraries](Third_Party_Libraries.md) used by FreeCAD.\n- [Coin3D](https://grey.colorado.edu/coin3d/index.html) C++ documentation.\n\n {{Interface navi}}\n\n\n---\n⏵ [documentation index](../README.md) > 3D view\n"}
{"id": "freecad-docs:wiki/API_documentation.md", "source": "freecad-docs", "repository": "https://github.com/FreeCAD/FreeCAD-documentation", "revision": "0499378a238ce4c77c643b9cc4a03d0947381e45", "path": "wiki/API_documentation.md", "url": "https://github.com/FreeCAD/FreeCAD-documentation/blob/0499378a238ce4c77c643b9cc4a03d0947381e45/wiki/API_documentation.md", "license": "CC0-1.0", "encoding": "utf-8", "sha256": "d1bd711f05ec2283df6741fe8ffcb7dfe34f226ecd557f9266e6869d0c8072ca", "bytes": 159, "tokens": 60, "text": "# API documentation\n1. REDIRECT [:Category:API](:Category_API.md)\n\n\n---\n⏵ [documentation index](../README.md) > [API](Category_API.md) > API documentation\n"}
{"id": "freecad-docs:wiki/Advanced_FreeCAD_test_system.md", "source": "freecad-docs", "repository": "https://github.com/FreeCAD/FreeCAD-documentation", "revision": "0499378a238ce4c77c643b9cc4a03d0947381e45", "path": "wiki/Advanced_FreeCAD_test_system.md", "url": "https://github.com/FreeCAD/FreeCAD-documentation/blob/0499378a238ce4c77c643b9cc4a03d0947381e45/wiki/Advanced_FreeCAD_test_system.md", "license": "CC0-1.0", "encoding": "utf-8", "sha256": "761176c060a8bb7b2b44595b71dd4fd2cf60ba737eb8e2680d060b2bb0e7cdd4", "bytes": 4774, "tokens": 1088, "text": "# Advanced FreeCAD test system\nThis page is dedicated to the Google Summer of Code project regarding the enhancement of FreeCAD\\'s test system.\n\n**Obsolete**: This page has been moved to
\n\n\n*[Arch Wall](Arch_Wall.md) cut by a line. Left: subtractive box that appears when using the tool. Right: resulting wall after the cut is done.*\n\n## Usage\n\n1. If required align the working plane:\n - The selected edge may not be parallel to the normal of the working plane.\n - The generated cutting face will be perpendicular to the working plane.\n2. Select the object to be cut in the [Tree view](Tree_view.md) or the [3D view](3D_view.md).\n3. Select a straight edge. This must be selected in the [3D view](3D_view.md).\n4. Press the **
\n\n## Usage\n\n1. Select either a face, an edge, or a vertex of the 3D part or the whole part in the assembly tree.\n2. Activate the
\n\n## Usage\n\n1. Select either a face, an edge, or a vertex of the 3D part or the whole part in the assembly tree.\n2. Activate the
\n\nThe **BIM Box** tool allows you to create a standard [Part Box](Part_Box.md), but instead of creating the object and letting you specify its dimensions and position afterwards, like the original [Part Workbench](Part_Workbench.md) tool does, this tool allows you to place and define the box dimensions graphically when creating the object. Boxes are basic [cuboid](https://en.wikipedia.org/wiki/Cuboid) shapes, that can be used as a base of any other kind of BIM object later on.\n\n## Usage\n\n1. Press the **
\n\n\n*The materials manager*\n\n## Usage\n\n1. (Optionally) select one or more objects\n2. Press the **
\n\nThe FreeCAD CAM Workbench workflow creates these machine instructions as follows:\n\n- A 3D model is the base object, typically created using one or more of the
\n*Visual reference for Depth properties (settings)*\n\n## Commands\n\nSome commands are experimental and not available by default. To enable them see [CAM experimental](CAM_experimental.md).\n\n### Project Commands \n\n-
\n\n\n*Left: objects shown in the standard [tree view](tree_view.md). Right: objects shown in the DAG view.*\n\n\n\n\n*Relationships between the objects shown in the [dependency graph](Std_DependencyGraph.md).*\n\n## Activating the DAG view \n\nThe DAG view was introduced in 0.17 as an experimental feature for power users and developers, so they could troubleshoot complex models; therefore, the DAG view is not available by default.\n\nTo use this view use the [parameter editor](Std_DlgParameter.md). Create the following subgroup if it doesn\\'t exist\n\n- `BaseApp/Preferences/DockWindows/DAGView`\n \n\nthen add the parameter `Enabled` of type `Boolean`, and set it to `True`.\n\nRestart FreeCAD and activate DAG view: **{{StdMenu|[View](Std_View_Menu.md)** → Panels → DAG view}}.\n\nIn the [parameter editor](Std_DlgParameter.md) you can also change some properties in the following subgroup\n\n- `BaseApp/Preferences/DAGView`\n \n\n- FontPointSize - Set size of text font and can help with readability with high DPI displays. Set to 0 for default font size.\n\n- SelectionMode\n - 0 - single click selects an item. Ctrl-click to add items to selection.\n - 1 - every click adds/removes item to selection.\n\n- Direction - the order in which items are displayed.\n - 1 - child on top, parent under it\n - -1 - parent on top, children under it\n\n## Links\n\n- [DAGView](https://forum.freecadweb.org/viewtopic.php?f=20&t=11276), forum thread presenting the new tool.\n- [easter egg of PartDesign Next: DAG View](https://forum.freecadweb.org/viewtopic.php?t=15375), including the view together with the update to PartDesign.\n\n\n{{Interface navi\n\n}} {{Std Base navi}}\n\n\n---\n⏵ [documentation index](../README.md) > DAG view\n"}
{"id": "freecad-docs:wiki/DebianDevelopment.md", "source": "freecad-docs", "repository": "https://github.com/FreeCAD/FreeCAD-documentation", "revision": "0499378a238ce4c77c643b9cc4a03d0947381e45", "path": "wiki/DebianDevelopment.md", "url": "https://github.com/FreeCAD/FreeCAD-documentation/blob/0499378a238ce4c77c643b9cc4a03d0947381e45/wiki/DebianDevelopment.md", "license": "CC0-1.0", "encoding": "utf-8", "sha256": "bed14b55c743e206cb7d5fea8c41d22c14f0191cf5bd5d372649ee867ea8de1e", "bytes": 144, "tokens": 53, "text": "# DebianDevelopment\n1. REDIRECT [Debian development](Debian_development.md)\n\n\n---\n⏵ [documentation index](../README.md) > DebianDevelopment\n"}
{"id": "freecad-docs:wiki/Defeaturing_Workbench.md", "source": "freecad-docs", "repository": "https://github.com/FreeCAD/FreeCAD-documentation", "revision": "0499378a238ce4c77c643b9cc4a03d0947381e45", "path": "wiki/Defeaturing_Workbench.md", "url": "https://github.com/FreeCAD/FreeCAD-documentation/blob/0499378a238ce4c77c643b9cc4a03d0947381e45/wiki/Defeaturing_Workbench.md", "license": "CC0-1.0", "encoding": "utf-8", "sha256": "3bb194f179dae2a938019b4fff369b4d3d34538db6011b498bced197c70fb68f", "bytes": 9233, "tokens": 3695, "text": "#
[Remove Holes](DefeatWB_Tools_rmv_hole.md): remove Hole from Face\n-
[Remove listed Faces](DefeatWB_Tools_rmv_listed_Faces.md): remove \\'in List\\' Faces\n-
[Add Faces from \\'in List\\' Edges](DefeatWB_Tools_add_Faces_listed_Edges.md): add Faces from \\'in List\\' Edges\n-
[Select Faces to be Parametric defeatured](DefeatWB_Tools_select_Faces_Param_Defeat.md): select Faces to be Parametric defeatured\n-
[Create a copy of the \\'in List\\' Edges ](DefeatWB_Tools_create_copy_listed_edges.md): create a copy of the \\'in List\\' Edges\n\n-
[copy Faces from \\'in List\\' Faces ](DefeatWB_Tools_copy_Faces_listed_faces.md): copy Faces from \\'in List\\' Faces\n-
[ offset face](DefeatWB_Tools_offset_face.md): offset face\n-
[offset edge](DefeatWB_Tools_offset_edge.md): offset edge\n\n-
[Make Solid from in List Faces](DefeatWB_Tools_make_solid_listed_faces.md): make Solid from in List Faces\n-
[Make Solid from the Faces of the selected Objects](DefeatWB_Tools_make_solid_faces_selected_objects.md): make Solid from the Faces of the selected Objects\n-
[Make Solid from in List Faces](DefeatWB_Tools_select_one_object_2_make_solid_step_proc.md): select ONE object to try to make a Solid through STEP import/export process\n-
[Connect](DefeatWB_Tools_Connect.md): connect\n-
[clean Face(s) removing holes and merging Outwire](DefeatWB_Tools_clean_face_rmv_holes.md): clean Face(s) removing holes and merging Outwire\n\n-
[show \\'in List' Edge(s)](DefeatWB_Tools_show_listed_edges.md): show \\'in List' Edge(s)\n-
[show \\'in List' Face(s)](DefeatWB_Tools_show_listed_faces.md): show \\'in List' Face(s)\n-
[refine](DefeatWB_Tools_refine.md): refine\n-
[simple copy](DefeatWB_Tools_simple_copy.md): simple copy\n-
[parametric Refine](DefeatWB_Tools_parametric_refine.md): parametric Refine\n\n-
[geometry check](DefeatWB_Tools_geometry_check.md): geometry check\n-
[get Tolerance value](DefeatWB_Tools_get_Tolerance_value.md): get Tolerance value\n-
[set Tolerance value](DefeatWB_Tools_set_Tolerance_value.md): set Tolerance value\n\n-
[make Edge from selected Vertexes](DefeatWB_Tools_make_edges_selected_vertexes.md): make Edge from selected Vertexes\n-
[reset Placement](DefeatWB_Tools_reset_placement.md): reset Placement\n-
[show/hide TypeId of the Shape](DefeatWB_Tools_show_hide_typeId_shape.md): show/hide Type Id of the Shape\n-
[help](DefeatWB_Tools_help.md): help\n\n-
[Fuzzy Cut](DefeatWB_Tools_Fuzzy_Cut.md): Fuzzy Cut\n-
[Fuzzy Union](DefeatWB_Tools_Fuzzy_Union.md): Fuzzy Union\n-
[Fuzzy Common](DefeatWB_Tools_Fuzzy_Common.md): Fuzzy Common\n\n## Video Tutorials \n\n### Defeaturing\n\nRemoving Features using OCC7.3 new tools\n\n[480px\\|left\\|thumb \\|link=
\n*The height of the red rectangle (solid line) is equal to the cap height.
\n\n## Installation\n\nThe [EM Workbench](EM_Workbench.md) is an [external workbench](External_workbenches.md), that can be installed from the FreeCAD
\n*A Example of Slab Reinforcement of Slab Spanning having Straight Rebars in Slab [Arch Structure](Arch_Structure.md)*\n\n## Usage\n\n1\\. Select any face of a previously created Slab **
\n*Selected face for Slab Arch Structure*\n\n2\\. Then select **
\n*A Example of Slab Reinforcement having U-Shape Rebars in Slab [Arch Structure](Arch_Structure.md)*\n\n## Usage\n\n1\\. Select any face of a previously created Slab **
\n\n\n: \n \n*Selected face for Slab Arch Structure*\n \n\n2\\. Then select **
\n\n#### Move the cylinder \n\n- Click and drag the big white cuboid to move the cylinder along its normal vector.\n- Click and drag the white grid.\n\n#### Rotate and tilt the cylinder \n\n- Click and drag a line that connects the small cubes with the big white cuboid to rotate and tilt the cylinder around its origin.\n\n#### Scale the cylinder \n\n- Click and drag one of the 6 small cubes to scale the cylinder.\n\n## Notes\n\n- Existing functions can be used for different filters and even for different
\n\n
\n\n
\n\nFinally, using [Fasteners workbench](https://www.freecadweb.org/wiki/Fasteners_Workbench) you can easily add the fasteners themselves:\n\n
\n\n## GitHub download \n\n[
\n*On the left a fastener and a circular edge are selected. On the right the fastener has been moved and attached to the selected edge.*\n\n1. Select a single fastener and a single circular edge.\n2. There are several ways to invoke the command:\n - Press the **
\n*ArchAxisSystemRepartition*\n\n## Description\n\nThis macro help you to create an Arch Axis System along a line with a set of parameters. You can even create a Structural System directly from the FreeCAD-Library.\n\n## Usage\n\n- Launch the macro with or without selected line.\n- A Gui TaskPanel set up in the task widget.\n- Set the lenght : if a line is selected, setting length actualize and forced to the line length ; if there is nothing selected the length can be changed.\n- Set the desired regular spacing ; the number of divide and left spacing are automatically calculating.\n- Or set the desired number of divide quantity ; this make an equal divide with no left spacing.\n- Choose if you want the left spacing to be at the beginning of the repartition or at the end or each side equal.\n- Check if you want a piece at the begging of the line, you can set an offset (end line direction).\n- Check if you want a piece at the begging of the line, you can set an offset (start line direction).\n- To validate clic on Ok button :\n- If a line is selected the Arch Axis System take the placement of the line else the placement is 0.0.0.\n- If you have the FreeCAD-Library gui open, the FCStd or Step file selected is imported and a Structural System is made.\n\n## Script\n\n\nToolBar Icon \n\n**Macro_Repartition.FCMacro**\n\n\n #!/usr/bin/env python\n # -*- coding: utf-8 -*-\n\n #***************************************************************************\n #* *\n #* Copyright (c) 2014 Jonathan Wiedemann
\n\n**CenterAlignObjectswFacesEdges.py**\n\nAfter downloading the file here\nGitHub page\n
\n*cutLine*\n\n## Usage\n\nCan be used from the Freecad macro editor.\n\n- **4 :** number cuts\n- **createPoint** : create points or not (0) (Defaut 1)\n- **createLine** : create line (\\>0) or not (0) (Defaut 0)\n- **biColor** : create line biColor (\\>0) or not (0) (Defaut 0)\n\nyou can change the default values in the macro.\n\nWith bisColor the lines on the original line is created by a white line red line white line \\.... the colors are modifiable in the code, line 20 and 23.\n\n## Script\n\n ToolBar Icon \n\n**Macro_cutLine.FCMacro**\n\n\n{{MacroCode|code=\n#################################################################\n# http://forum.freecadweb.org/viewtopic.php?f=3&t=4217&hilit=discretize\n# 08/03/2015 2019/06/17\n\n__title__ = \"cutLine\"\n__author__ = \"Mario52\"\n__version__ = \"00.02\"\n__date__ = \"2019/06/17\"\n\nimport Draft, Part\ndef cutLine(numberOfPoints = 2, createPoint = 1, createLine = 0, biColor = 0): # create a points of forme\n\n def createLines(numberOfPoints, points, biColor): # create line\n biscolor = 0\n for lin in range(numberOfPoints-1):\n creaLine = [FreeCAD.Vector(points[lin]),FreeCAD.Vector(points[lin+1])]\n wire = Draft.makeWire(creaLine,closed=False,face=False,support=None)\n if biColor != 0: # biColor \n if biscolor == 0:\n FreeCADGui.ActiveDocument.getObject(wire.Name).LineColor = (1.0,0.0,0.0) # 255 = 1 (10 = (1/255 * 10 ))\n biscolor = 1\n else:\n FreeCADGui.ActiveDocument.getObject(wire.Name).LineColor = (1.0,1.0,1.0) # 255 = 1 (10 = (1/255 * 10 ))\n biscolor = 0\n try:\n points = []\n points[:] = []\n selectionObjects = FreeCADGui.Selection.getSelectionEx() # getSelectionEx\n numberOfPoints += 1\n for selection in selectionObjects:\n compteur = pas = 0\n for selectedEdge in selection.SubObjects:\n FreeCAD.Console.PrintMessage(selectionObjects[0].SubElementNames[compteur] + \"\\n\") \n# print( selectionObjects[0].SubElementNames[compteur])# getSelectionEx\n compteur += 1 \n points = selectedEdge.discretize(numberOfPoints) \n if createLine != 0:\n createLines(numberOfPoints, points, biColor)\n for p in points:\n if createPoint != 0:\n Draft.makePoint( p.x, p.y, p.z)\n FreeCAD.Console.PrintMessage(str(compteur)+\" X\"+ str(p.x)+\" Y\"+ str(p.y)+ \" Z\"+ str(p.z) + \"\\n\")\n# print( compteur,\" X\", p.x, \" Y\", p.y, \" Z\", p.z)\n pas = 1 #\n\n if pas == 0: # the not SubObjects\n selectionObjects = FreeCADGui.Selection.getSelection() # select all elements\n FreeCAD.Console.PrintMessage(selectionObjects[0].Name + \"\\n\")\n# print( selectionObjects[0].Name) # getSelection()\n compteur = 0\n for ii in enumerate(selectionObjects[0].Shape.Edges): \n compteur += 1\n points = ii[1].discretize(numberOfPoints) # discretize the element\n for p in points:\n if createPoint != 0:\n Draft.makePoint( p.x, p.y, p.z) # create points\n FreeCAD.Console.PrintMessage(str(compteur)+\" X\"+ str(p.x)+\" Y\"+ str(p.y)+ \" Z\"+ str(p.z) + \"\\n\")\n# print( compteur, \" X\", p.x, \" Y\", p.y, \" Z\", p.z) # list and display the coordinates\n if createLine != 0:\n createLines(numberOfPoints, points, biColor)\n except:\n FreeCAD.Console.PrintError(\"Error\" + \"\\n\" + \"Give : cutLine(numberOfPoints = 2, createPoint = 1, createLine = 0, biColor = 0)\"+\"\\n\")\n FreeCAD.Console.PrintError(\"Select the complete shape or separate wire(s) line, circle ...\"+\"\\n\")\n\n# print( \"Error : Give cutLine(numberOfPoints = 2, createPoint = 1, createLine = 0, biColor = 0)\")\n\n# Example in command line (paste the macro in FC Python console) and write:\n#cutLine(2, createLine = 1, biColor = 1, createPoint = 0)\n\n}}\n\n\n## Example\n\nCan be used from the Freecad macro editor.\n\nIf the macro is copied in the Python console, you can you can use it by: \n\n\n```python\ncutLine(4, createLine = 1, biColor = 1, createPoint = 0)\n```\n\n\n## Links\n\nthis function use the function discretize [the original code](http://forum.freecadweb.org/viewtopic.php?f=3&t=4217&hilit=discretize)\n\n\n---\n⏵ [documentation index](../README.md) > Macro Cut Line\n"}
{"id": "freecad-docs:wiki/Macro_Easy_cutouts_for_Enclosure_Design.md", "source": "freecad-docs", "repository": "https://github.com/FreeCAD/FreeCAD-documentation", "revision": "0499378a238ce4c77c643b9cc4a03d0947381e45", "path": "wiki/Macro_Easy_cutouts_for_Enclosure_Design.md", "url": "https://github.com/FreeCAD/FreeCAD-documentation/blob/0499378a238ce4c77c643b9cc4a03d0947381e45/wiki/Macro_Easy_cutouts_for_Enclosure_Design.md", "license": "CC0-1.0", "encoding": "utf-8", "sha256": "956f88833bccb293d31e666e634f1ac05f8b06a143f0c17f03d8bb5b1aadb359", "bytes": 11227, "tokens": 3422, "text": "# Macro Easy cutouts for Enclosure Design\n{{Macro\n|Name=Easy cutouts for Enclosure Design\n|Icon=Macro_Easy_cutouts_for_Enclosure_Design_icon.png\n|Description=This macro makes Cutouts for Enclosures in a very handy way. Just select a face of the object that is the base for the cutout and the macro will create a clone of the external outline with a margin of 0.5mm (set in the macro)
\n*Here a demo with an Arduino Uno enclosure*\n\n## Usage\n\nJust select a face of the object that is the base for the cutout and the macro will create a clone of the external outline with a margin of 0.5mm (set in the macro)\n\n## Script\n\nThe Icon for you ToolBar \n\n\n**Macro_Easy_cutouts_for_Enclosure_Design.FCMacro**\n\n\n{{MacroCode|code=\n# -*- coding: utf-8 -*-\n# clone, enlarge & center clone-obj to selected obj\n#\n \n__title__ = \"Clone-Enlarge-Center Face for cutouts\"\n__author__ = \"maurice\"\n__url__ = \"kicad stepup\"\n__version__ = \"0.25\"\n__date__ = \"11.2016\"\n\nimport FreeCAD, FreeCADGui, Draft, Part, DraftTools\nfrom FreeCAD import Base\n\n\ndef say(msg):\n FreeCAD.Console.PrintMessage(msg)\n FreeCAD.Console.PrintMessage('\\n')\n\ndef sayw(msg):\n FreeCAD.Console.PrintWarning(msg)\n FreeCAD.Console.PrintWarning('\\n')\n \ndef getNormal(self):\n return self.Object.Shape.Faces[0].normalAt(0,0)\n\n#Init \nif Gui.ActiveDocument <> None:\n #say (Gui.ActiveDocument)\n\n cx = 1 # center x -> 1 \n cy = 1 # center y -> 1 \n cz = 1 # center z -> 1 # scaleX = 1.1 # scale factor for Clone\n # scaleY = 1.1 # scale factor for Clone\n # scaleZ = 1.1 # scale factor for Clonemargin = 0.5 #margin in mm\n extrudeLenght = 10 #10mm \n #selEx = FreeCADGui.Selection.getSelectionEx()\n sel = FreeCADGui.Selection.getSelection()#print sel[0].Label\n #objs = [selobj.Object for selobj in selEx]\n selF = FreeCADGui.Selection.getSelectionEx()#if len(Gui.Selection.getSelectionEx()[0].SubElementNames) <1:\n # stopif len(sel) > 0:\n FreeCADGui.Selection.removeSelection(sel[0])\n #for o in FreeCADGui.ActiveDocument.getObjects():\n # FreeCADGui.Selection.removeSelection(o.Name)\n coords = []\n j = 0\n #if len(sel) == 1: # only 1 object selected\n #if len(selF) == 1: # only 1 object selected\n if len(sel) > 0:\n if len(selF[0].SubElementNames) ==1:\n f_names=[]\n f = Draft.makeFacebinder(selF)\n f1=App.ActiveDocument.getObject(f.Name)\n face=0\n try:\n norm = f1.Shape.Faces[0].normalAt(0,0)\n say (norm)\n face=1\n except:\n App.Console.PrintMessage(\"Select ONLY one single Face of object!\"+\"\\n\")\n # stop\n if face==1:\n l = Draft.downgrade(f,delete=False)\n k = 0; bbM = 0\n for o in l:\n for w in o:\n #print w.Name\n f_names.append (w.Name)\n say(w.Name)\n if \"Facebinder\" not in w.Name:\n bb=w.Shape.BoundBox\n bbX=float(bb.XLength)\n bbY=float(bb.YLength)\n bbZ=float(bb.ZLength)\n say (str(bbX)+\";\"+str(bbY)+\";\"+str(bbZ))\n if bbX > bbM:\n bbM = bbX; m = k\n if bbY > bbM:\n bbM = bbY; m = k\n if bbZ > bbM:\n bbM = bbZ; m = k\n k=k+1\n print f_names\n k = 0\n #f_names=[]\n for o in l:\n for w in o:\n say(w.Name)\n #f_names.append (w.Name)\n if k!=m:\n say ( \"deleting \"+f_names[k] )\n FreeCAD.ActiveDocument.removeObject(f_names[k])\n else:\n FreeCADGui.ActiveDocument.getObject(f_names[k]).Visibility=False\n f = FreeCAD.ActiveDocument.addObject('Part::Extrusion', 'Extrude_for_cut')\n f = FreeCAD.ActiveDocument.getObject(f.Name)\n f.Base = FreeCAD.ActiveDocument.getObject(f_names[k])\n f.Dir = norm * extrudeLenght * -1\n f.Solid = (True)\n f.TaperAngle = (0)\n k=k+1 \n #FreeCAD.ActiveDocument.removeObject(f_names[len(l)])\n say( f_names )\n say( f_names[m] )\n say( bbM )\n \n FreeCADGui.Selection.addSelection(FreeCAD.ActiveDocument.getObject(f.Name))\n FreeCAD.ActiveDocument.recompute()\n \n sel = FreeCADGui.Selection.getSelection() \n #objs = [selobj.Object for selobj in selEx]\n \n coords = []\n j = 0\n s = sel[0].Shape\n \n bb=s.BoundBox\n \n bbX=float(bb.XLength)\n bbY=float(bb.YLength)\n bbZ=float(bb.ZLength)\n # boundBox\n boundBox_ = s.BoundBox\n \n a = str(boundBox_)\n a,b = a.split('(')\n c = b.split(',')\n oripl_X = float(c[0])\n oripl_Y = float(c[1])\n oripl_Z = float(c[2])\n coords.append ([oripl_X+bbX/2, oripl_Y+bbY/2, oripl_Z+bbZ/2])\n App.Console.PrintMessage(str(boundBox_)+\"\\r\\n\")\n App.Console.PrintMessage(\"BBox : \"+str(bbX)+\" x \"+str(bbY)+\" x \"+str(bbZ)+\"\\r\\n\")\n App.Console.PrintMessage(\"Base Pos : \"+str(oripl_X)+\" x \"+str(oripl_Y)+\" x \"+str(oripl_Z)+\"\\r\\n\")\n App.Console.PrintMessage(\"Center Pos : \"+str(oripl_X+bbX/2)+\" x \"+str(oripl_Y+bbY/2)+\" x \"+str(oripl_Z+bbZ/2)+\"\\r\\n\")\n App.Console.PrintMessage(\"Coords : \"+str(coords[j])+\"\\r\\n\")\n \n #objC = FreeCAD.ActiveDocument.addObject('Part::AttachableObjectPython', 'Clone_for_cut')\n #objC = FreeCAD.ActiveDocument.getObject(objC.Name)\n objC=Draft.clone(sel)\n if bbX!=0:\n scaleX = (bbX + 2*margin) / bbX\n else:\n scaleX = 1\n if bbY!=0:\n scaleY = (bbY + 2*margin) / bbY\n else:\n scaleY = 1\n if bbZ!=0:\n scaleZ = (bbZ + 2*margin) / bbZ\n else:\n scaleZ = 1\n objC.Scale = (scaleX,scaleY,scaleZ)\n #Draft.scale(objC,delta=App.Vector(scaleX,scaleY,scaleZ),center=App.Vector(0,0,0),copy=True,legacy=True)\n \n oL = sel[0].Label + \"_enlarged\"\n objC.Label = oL\n FreeCADGui.Selection.addSelection(objC)\n \n FreeCAD.ActiveDocument.recompute()\n \n selEx = FreeCADGui.Selection.getSelectionEx()\n objs = [selobj.Object for selobj in selEx]\n coords = []\n j = 0\n if len(objs) >= 1:\n for obj in objs:\n #s = objs[0].Shape\n s = obj.Shape\n \n # boundBox\n boundBox_ = s.BoundBox\n boundBoxLX = boundBox_.XLength\n boundBoxLY = boundBox_.YLength\n boundBoxLZ = boundBox_.ZLength\n \n a = str(boundBox_)\n a,b = a.split('(')\n c = b.split(',')\n oripl_X = float(c[0])\n oripl_Y = float(c[1])\n oripl_Z = float(c[2])\n coords.append ([oripl_X+boundBox_.XLength/2, oripl_Y+boundBox_.YLength/2, oripl_Z+boundBox_.ZLength/2])\n App.Console.PrintMessage(str(boundBox_)+\"\\r\\n\")\n App.Console.PrintMessage(\"BBox : \"+str(boundBox_.XLength)+\" x \"+str(boundBox_.YLength)+\" x \"+str(boundBox_.ZLength)+\"\\r\\n\")\n App.Console.PrintMessage(\"Base Pos : \"+str(oripl_X)+\" x \"+str(oripl_Y)+\" x \"+str(oripl_Z)+\"\\r\\n\")\n App.Console.PrintMessage(\"Center Pos : \"+str(oripl_X+boundBox_.XLength/2)+\" x \"+str(oripl_Y+boundBox_.YLength/2)+\" x \"+str(oripl_Z+boundBox_.ZLength/2)+\"\\r\\n\")\n App.Console.PrintMessage(\"Coords : \"+str(coords[j])+\"\\r\\n\")\n if j>0:\n if cx==1:\n coordNx=coords[0][0]-coords[j][0]\n else:\n coordNx=0\n if cy==1:\n coordNy=coords[0][1]-coords[j][1]\n else:\n coordNy=0\n if cz==1:\n coordNz=coords[0][2]-coords[j][2]\n else:\n coordNz=0\n obj.Placement.move(App.Vector(coordNx,coordNy,coordNz))\n App.Console.PrintMessage(\"Moved : \"+str(coordNx)+\" \"+str(coordNy)+\" \"+str(coordNz)+\"\\r\\n\")\n j=j+1\n \n App.Console.PrintMessage(\"_____________________\"+\"\\r\\n\")\n \n FreeCADGui.Selection.removeSelection(objs[0])\n FreeCADGui.ActiveDocument.getObject(objs[0].Name).Visibility=False\n FreeCADGui.ActiveDocument.getObject(objs[1].Name).Transparency=70\n App.ActiveDocument.recompute() \n \n else:\n App.Console.PrintMessage(\"Select ONLY one single Face of object!\"+\"\\n\")\n else:\n App.Console.PrintMessage(\"Select ONLY one single Face of object!\"+\"\\n\")\nelse:\n sayw(\"no document to work with\") \n #http://forum.freecadweb.org/viewtopic.php?t=4625\n\n}}\n\n\n## Link\n\nForum : [Easy cutouts for Enclosure Design Macro](http://forum.freecadweb.org/viewtopic.php?f=22&t=18488)\n\n\n---\n⏵ [documentation index](../README.md) > Macro Easy cutouts for Enclosure Design\n"}
{"id": "freecad-docs:wiki/Macro_Express_Placement.md", "source": "freecad-docs", "repository": "https://github.com/FreeCAD/FreeCAD-documentation", "revision": "0499378a238ce4c77c643b9cc4a03d0947381e45", "path": "wiki/Macro_Express_Placement.md", "url": "https://github.com/FreeCAD/FreeCAD-documentation/blob/0499378a238ce4c77c643b9cc4a03d0947381e45/wiki/Macro_Express_Placement.md", "license": "CC0-1.0", "encoding": "utf-8", "sha256": "f6b3284cdf03fe28d729a6d15777bf4af9ce25163110b0367106ec98c3132238", "bytes": 15135, "tokens": 4195, "text": "# Macro Express Placement\n{{Macro\n|Name=Macro Express Placement\n|Description=Display and quickly edit a selected object's placement coordinates directly or via expressions.\n|Author=screeneroner\n|Download=[https://raw.githubusercontent.com/screeneroner/fc-express-placement/master/fc-express-placement.FCMacro Express Placement]\n|Version=1.0\n|Date=2023-08-01\n|FCVersion=Created and tested in 0.21\n|Icon=Std_AxisCross_example.svg\n}}\n\n## Description\n\nThe macro **Express Placement** is a FreeCAD GUI addon. It allows quick editing of the X, Y, Z placement coordinates for the currently selected object.\n\n## Difference and benefits \n\n\n\nOne double click to edit object placement instead of four sequential clicks - **you may work 4 times faster!**\n\n### Standard FreeCAD Placement (in red) \n\nThe standard FreeCAD built-in editor requires many additional mouse clicks before you actually start parameter editing, especially when using parametric expressions to position your object:\n\n1. Click on the Base/Placement item in the Property view to unfold the Placement tree.\n2. Click on the Position branch to unfold the X, Y, Z coordinates fields.\n3. Click on the desired coordinate to make the expression editing icon visible.\n4. Click the expression editing icon, which is so small that it may be a challenge to hit it.\n Alternatively, press the **=** key on the keyboard. This may take even longer than clicking the icon.\n\nYou must repeat these clicks when you select another object. Again and again\\...\n\n### Express Placement (in green) \n\nThe Express Placement macro creates a special panel for you. You may dock this panel to any suitable place. It shows three rows with X, Y, Z coordinates. These coordinates contain values and expression fields. They are available for editing with just one double click.\n\n## Installation\n\n### Addon Manager \n\nFind [Express Placement](https://wiki.freecad.org/Macro_Express_Placement) in FreeCAD Addon Manager and install it.\n\n### Direct Launch of Express Placement \n\nYou may download and use Express Placement addon immediately in your FreeCAD:\n\n1. Download the express-placement.FCMacro file and place it in the User Macros folder inside your FreeCAD installation folder.\n2. Execute it directly from the FreeCAD main menu Macro / Macros / User Macros.\n\n### Installing Express Placement Toolbar Button \n\nTo have an ability to quickly switch on the Express Placement table, you may place a button to quickly execute this macro and bring up the Express Placement table:\n\n1. Download the Express Placement.FCMacro file and place it in the User Macros folder inside your FreeCAD installation folder.\n2. Select the Express Placement macro in the User Macros panel, invoked from the FreeCAD main menu Macro / Macros / User Macros.\n3. Press the Toolbar button and follow the Walkthrough dialog to place the Express Placement button in the desired location in the FreeCAD toolbars.\n\n## Usage\n\nJust run the Express Placement macro directly or via the toolbar button, and you will see a new docked property window in your FreeCAD UI. You may drag it to any allowed place in the UI and close any time you won\\'t need it. Next time when it will be required again - run the macro or press the toolbar button again to bring up the Express Placement window.\n\nWhen you decide to change the placement of the selected object, just double-click on the desired cell in the Express Placement window and type a new value or edit the existing one. The new value will be directly written to your model.\n\n*If you find this add-on useful and feel it\\'s worth treating me to a couple-triple coffee cups in recognition of my work, at any time you may do it via [☕ Buy me a coffee](https://www.buymeacoffee.com/screeneroner)*\n\n## Script\n\nClick here to show/hide the Addon source code. \n\n\n
\n\n**Camera of Axis**: The dialog box to enter the rotation value angle in degrees.\n\n**Angle rotation Axis in degrees**: Select the rotation axis **X**, **Y** or **Z**.\n\n**Axe of rotation**\n\n-
**Accept the rotation** : Accept the rotation give to angle selected\n\n**Virtual**\n\n-
**Detect camera orientation** : Detect the camera orientation and print in report view. The returned value is the value provided by the function **getCameraOrientation()**.\n\n**Align view to face selected**\n\n-
**To Face.** : Align the view to the selected face. Click and repeat the click for **NormalAt** : \\\"(0,0,1) (0,0,-1) (0,1,0) (0,-1,0) (1,0,0) (-1,0,0)\\\"\n\n-
**To Axis.** : Align the view to Axis face selected. Click and repeat the click for **Surface Axis** : \\\"(0,0,1) (0,0,-1) (0,1,0) (0,-1,0) (1,0,0) (-1,0,0)\\\"\n\n-
**Align object to view.** : Align the object selected to the actual view. The changed values are : Rotation Axis((X, Y, Z), Angle), same Euler angles : Yaw, Pitch, Roll, The Translation is not modify.\n\n-
**Create plane of view.** : A circular plane is created facing the screen to mouse click coordinates on an object. The radius of the plane is equal to the maximum dimension of BoundBox. If no object is selected, the plane is created to 0, 0, 0 coordinates with a radius of 20 mm. The radius is modifiable to line 515:\n\n \n```python\n rayon = 20 # Radius of plane\n```\n\n- **[
Reset.**: Reset all values\n\n- ** [
Photo.**: Section save the screen rotation an image in angle value\n\n- ** [
Quit.**: Quit FCCamera\n\n\n## Section Photo \n\n
\n\n- **ComboBox Actual **: Choose your screen definition for the image format\n\n - Available (pre-defined):\n - \\\"Actual\\\" (definition actual of screen)\n - \\\"Icon 16 x 16\\\"\n - \\\"Icon 32 x 32\\\"\n - \\\"Icon 64 x 64\\\"\n - \\\"Icon 128 x 128\\\"\n - \\\"CGA 320 x 200\\\"\n - \\\"QVGA 320 x 240\\\"\n - \\\"VGA 640 x 480\\\"\n - \\\"SVGA 800 x 600\\\"\n - \\\"XGA 1024 x 768\\\"\n - \\\"XGA+ 1152 x 864\\\"\n - \\\"SXGA 1280 x 1024\\\"\n - \\\"SXGA+ 1400 x 1050\\\"\n - \\\"UXGA 1600 x 1200\\\"\n - \\\"QXGA 2048 x 1536\\\"\n - \\\"Free\\\"\n\n- **SpinBox X and Y **\n \n\n- **ComboBox Format image**- Available :\n - \\\"BMP \\*.bmp\\\"\n - \\\"ICO \\*.ico\\\"\n - \\\"JPEG \\*.jpeg\\\"\n - \\\"JPG \\*.jpg\\\"\n - \\\"PNG \\*.png\\\" (by default)\n - \\\"PPM \\*.ppm\\\"\n - \\\"TIF \\*.tif\\\"\n - \\\"TIFF \\*.tiff\\\"\n - \\\"XBM \\*.xbm\\\"\n - \\\"XPM \\*.xpm\\\"\n\n- Line 1 : Number image calculated by the angle give (ex: angle 60 degrees = 360 (complete rotation) / 60 (angle) = 6 images\n\n- Line 2 : The definition of screen used\n\n- Background image :\n - Actual : save image with the screen colour actual\n - White : save image with the screen colour white\n - Black : save image with the screen colour black\n\n- **[
Launch**: Open the file window , give the name and the path\n\n- **[
Reset**: Reset the default value\n\n- **[
Return**: Quit the photo panel and return to FCCamera panel\n\n\n## Links\n\nRelated Links with FCCamera\n\n- [Macro Rotate View](Macro_Rotate_View.md)\n- [Macro Align Object to View](Macro_Align_Object_to_View.md)\n- [Macro Align Face Object to View](Macro_Align_Face_Object_to_View.md)\n- [Macro WorkFeatures](Macro_WorkFeatures.md)\n\nDiscussion Forum [MACRO:Work Feature 2014_12](http://forum.freecadweb.org/viewtopic.php?f=22&t=9056)\n\n## Script\n\nDownload the icon files [FCCamera_Icones.zip](https://forum.freecadweb.org/download/file.php?id=79288)\n\nDownload the macro to Gist [**Macro FCCamera.FCMacro**](https://gist.github.com/mario52a/4aa545c23b323cf68824)\n\n## Examples\n\n### How to place an angle hole \n\n\n
\n**Accept the rotation**\n\n\n
\n**Align Object to View**\n\n\n
\n\n **Macro_ToggleSelectedObjectVisibility.FCMacro**\n\n\n{{MacroCode|code=\n\nimport FreeCAD\n# Macro_ToggleSelectedObjectVisibility\n__title__=\"Macro_ToggleSelectedObjectVisibility\"\n__author__ = \"Mario52\"\n__url__ = \"http://www.freecadweb.org/index-fr.html\"\n__version__ = \"00.02\"\n__date__ = \"12/11/2015\"\n\ntry:\n compt = 0\n for ShapeNameObj in FreeCAD.ActiveDocument.Objects: # list alls objet for test if alls hidden\n if (FreeCADGui.ActiveDocument.getObject(ShapeNameObj.Name).Visibility == False) and (Gui.Selection.isSelected(ShapeNameObj) == False):\n compt += 1 # if hidden : compt += 1\n #print \"False : \",ShapeNameObj.Name\n if compt == len(FreeCAD.ActiveDocument.Objects): # if (compt = Alls objects hidden) then Visibility = True\n for ShapeNameObj in FreeCAD.ActiveDocument.Objects:\n FreeCADGui.ActiveDocument.getObject(ShapeNameObj.Name).Visibility = True # Visibility = True\n #print \"True : \",ShapeNameObj.Name\n compt = 0\n else :\n for ShapeNameObj in FreeCAD.ActiveDocument.Objects: # hidde objects not selecteds\n if Gui.Selection.isSelected(ShapeNameObj) == False:\n FreeCADGui.ActiveDocument.getObject(ShapeNameObj.Name).Visibility = False # if objects is not selected then Visibility = False (Hidden)\n #print \"False : \",ShapeNameObj.Name\n else:\n FreeCADGui.ActiveDocument.getObject(ShapeNameObj.Name).Visibility = True # if objects are hidden and selected then Visibility = True and hidden alls objects visibles\n #print \"True : \",ShapeNameObj.Name\nexcept Exception:\n None\n}}\n\n\n## Link\n\nThe discussion on the forum [Proposal: select one or more pieces, hide the others.](http://forum.freecadweb.org/viewtopic.php?f=8&t=13152)\n\n## Version\n\nver 00.02 12/11/2015 **macro Macro_SelectVisible** : hidden the objects not selected, if not object selected displayed all objects, hidden all objects. This version include the tree macro in one\n\n\n---\n⏵ [documentation index](../README.md) > Macro Toggle Visibility\n"}
{"id": "freecad-docs:wiki/Macro_Triangle_AH.md", "source": "freecad-docs", "repository": "https://github.com/FreeCAD/FreeCAD-documentation", "revision": "0499378a238ce4c77c643b9cc4a03d0947381e45", "path": "wiki/Macro_Triangle_AH.md", "url": "https://github.com/FreeCAD/FreeCAD-documentation/blob/0499378a238ce4c77c643b9cc4a03d0947381e45/wiki/Macro_Triangle_AH.md", "license": "CC0-1.0", "encoding": "utf-8", "sha256": "230c43591fc4a14b83a50cc503d7f2cc7e9219c8c6021b98d8a9b56573c378f2", "bytes": 3545, "tokens": 1257, "text": "# Macro Triangle AH\n{{Macro\n|Name=Macro Triangle AH\n|Description=This macro create one triangle creates a triangle by giving the head angle and the height of the triangle. The new triangle is created in the real coordinate.
Three icons are referred to symbolise the rotation directions. A zip file containing these icons can be found [here](http://forum.freecadweb.org/download/file.php?id=453), the images should be placed in the folder containing your macros. Please feel free to contribute better ones!\n\n## Script\n\nThe latest version of the macro is to be found at [ViewRotation.FCMacro](https://github.com/FreeCAD/FreeCAD-macros/blob/master/PureGui/ViewRotation.FCMacro) but the easiest way to install this macro is through the [Addon Manager](Std_AddonMgr.md).\n\nToolBar Icon \n\n **Macro View Rotation.FCMacro** {{MacroCode|code=\n# -*- coding: utf-8 -*-\n#\n# FreeCAD macro ViewRotation.\n# This GUI allows the view to be rotated with more precision than when using\n# the mouse. Rotation is according to axes fixed with respect to the user and\n# not the objects, though the aim is that the objects rotate about their\n# approximate shared centre rather than the view centre.\n# The GUI defaults to the top right of the screen, this behaviour can be\n# changed by editing.\n# [http://forum.freecadweb.org/viewtopic.php?f=3&t=1784&hilit=View+Rotation#p12012 View+Rotation]\n\nfrom __future__ import division\n\n__Name__ = 'View Rotation'\n__Comment__ = 'This GUI allows the view to be rotated precisely'\n__Author__ = 'Joe Dowsett'\n__Version__ = '1.0'\n__License__ = 'CC-BY-3.0'\n__Web__ = 'https://www.freecadweb.org/wiki/Macro_View_Rotation'\n__Wiki__ = 'https://www.freecadweb.org/wiki/Macro_View_Rotation'\n__Icon__ = ''\n__Help__ = 'Rotation is according to axes fixed with respect to the user.'\n__Status__ = ''\n__Requires__ = ''\n__Files__ = 'ViewRotationOut.png,ViewRotationRight.png,ViewRotationUp.png'\n\nfrom math import pi\nimport os\n\nfrom PySide import QtCore\nfrom PySide import QtGui\nfrom pivy import coin\n\nimport FreeCAD as app\nimport FreeCADGui as gui\n\n\ndef get_macro_dir():\n \"\"\"Return the directory where macros are located\"\"\"\n default_macro_dir = os.path.join(app.ConfigGet('UserAppData'), 'Macro')\n return app.ParamGet('User parameter:BaseApp/Preferences/Macro').GetString('MacroPath', default_macro_dir)\n\n\ndef find_centre():\n doc = app.activeDocument()\n if doc is None:\n return app.Vector(0, 0, 0)\n\n xmax = 0\n xmin = 0\n ymax = 0\n ymin = 0\n zmax = 0\n zmin = 0\n for obj in doc.Objects:\n try:\n if obj.TypeId[:4] == 'Mesh':\n box = obj.Mesh.BoundBox\n elif obj.TypeId[:6] == 'Points':\n box = obj.Points.BoundBox\n elif obj.TypeId[:4] == 'Part':\n box = obj.Shape.BoundBox\n else:\n continue\n except AttributeError:\n continue\n xmax = max(xmax, box.XMax)\n xmin = min(xmin, box.XMin)\n ymax = max(ymax, box.YMax)\n ymin = min(ymin, box.YMin)\n zmax = max(zmax, box.ZMax)\n zmin = min(zmin, box.ZMin)\n\n return app.Vector((xmax + xmin) / 2, (ymax + ymin) / 2, (zmax + zmin) / 2)\n\n\nclass RotateGui(QtGui.QWidget):\n def __init__(self):\n super(RotateGui, self).__init__()\n self.init_ui()\n self.init_rotate()\n\n def init_ui(self):\n macro_dir = get_macro_dir()\n self.sliders = []\n self.line_edits = []\n\n vbox = QtGui.QVBoxLayout()\n\n icons = ('ViewRotationRight.png', 'ViewRotationUp.png', 'ViewRotationOut.png')\n for icon in icons:\n slider = QtGui.QSlider(QtCore.Qt.Horizontal, self)\n slider.setFocusPolicy(QtCore.Qt.NoFocus)\n slider.setSingleStep(5)\n slider.setPageStep(15)\n slider.setValue(0)\n slider.setMaximum(180)\n slider.setMinimum(-180)\n slider.valueChanged[int].connect(self.valueChange)\n self.sliders.append(slider)\n\n line_edit = QtGui.QLineEdit(self)\n line_edit.setText('0')\n line_edit.setAlignment(QtCore.Qt.AlignRight)\n line_edit.returnPressed.connect(self.valueEntered)\n self.line_edits.append(line_edit)\n\n label = QtGui.QLabel(self)\n label.setPixmap(QtGui.QPixmap(os.path.join(macro_dir, icon)))\n\n hbox = QtGui.QHBoxLayout()\n hbox.addWidget(label, 1, QtCore.Qt.AlignCenter)\n hbox.addWidget(slider, 4)\n hbox.addWidget(line_edit, 1)\n vbox.addLayout(hbox)\n\n reset_button = QtGui.QPushButton('Reset')\n reset_button.clicked.connect(self.reset)\n\n ok_button = QtGui.QPushButton('OK')\n ok_button.clicked.connect(self.close)\n\n cancel_button = QtGui.QPushButton('Cancel')\n cancel_button.clicked.connect(self.cancel)\n\n hbox = QtGui.QHBoxLayout()\n hbox.addWidget(reset_button, 1)\n hbox.addWidget(ok_button, 1)\n hbox.addWidget(cancel_button, 1)\n vbox.addStretch(1)\n vbox.addLayout(hbox)\n\n self.setLayout(vbox)\n\n desktop_widget = QtGui.QDesktopWidget()\n right = desktop_widget.availableGeometry().width()\n\n self.setGeometry(right - 300, 0, 300, 150)\n self.setWindowTitle('Rotate view')\n self.show()\n\n def init_rotate(self):\n self.internal = False\n self.current = 0\n\n self.cam = gui.activeDocument().ActiveView.getCameraNode()\n self.centre = coin.SbVec3f(find_centre())\n self.view = self.cam.orientation.getValue()\n self.pos = self.cam.position.getValue()\n\n # Store a copy of the original view to be restored in the case of user\n # selecting Reset or Cancel.\n self.original_view = coin.SbRotation(self.view.getValue())\n self.original_pos = coin.SbVec3f(self.pos.getValue())\n\n self.config_direction(0)\n\n\n def reset(self):\n # Reset the view to the original one.\n self.cam.orientation = self.original_view\n self.cam.position = self.original_pos\n self.internal = True\n for sld in self.sliders:\n sld.setValue(0)\n self.internal = False\n for tbox in self.line_edits:\n tbox.setText(\"0\")\n self.config_direction(0)\n\n def cancel(self):\n self.reset()\n self.close()\n\n\n def config_direction(self, i):\n # Evaluate the vectors corresponding to the three directions for the\n # current view, and assign the i-th one to self.direction.\n self.view = self.cam.orientation.getValue()\n self.view = coin.SbRotation(self.view.getValue())\n self.pos = self.cam.position.getValue()\n self.pos = coin.SbVec3f(self.pos.getValue())\n\n up = coin.SbVec3f(0,1,0)\n self.up = self.view.multVec(up)\n out = coin.SbVec3f(0,0,1)\n self.out = self.view.multVec(out)\n u = self.up.getValue()\n o = self.out.getValue()\n r = (u[1]*o[2]-u[2]*o[1], u[2]*o[0]-u[0]*o[2], u[0]*o[1]-u[1]*o[0])\n self.right = coin.SbVec3f(r)\n\n self.direction = [self.right, self.up, self.out][i]\n\n def check(self, i):\n # Check if the direction of rotation has changed, if so then set\n # previous slider & textbox to zero, and setup the new direction.\n if i != self.current:\n self.internal = True\n self.sliders[self.current].setValue(0)\n self.line_edits[self.current].setText(\"0\")\n self.internal = False\n self.current = i\n self.config_direction(i)\n\n def rotate(self, value):\n # Carry out the desired rotation about self.direction.\n val = value*pi/180.0\n rot = coin.SbRotation(self.direction, -val)\n nrot = self.view*rot\n prot = rot.multVec(self.pos - self.centre) + self.centre\n self.cam.orientation = nrot\n self.cam.position = prot\n\n def valueChange(self, value):\n # Respond to the change in value of a slider, update the corresponding\n # text box, check for a direction change then rotate\n # if the value was changed internally, ignore event.\n if self.internal:\n return\n\n sender = self.sender()\n for i in range(3):\n if sender == self.sliders[i]:\n break\n self.line_edits[i].setText(str(value))\n self.check(i)\n self.rotate(value)\n\n def valueEntered(self):\n # Respond to a value being entered in a text box, updating the\n # corresponding slider, check for direction change then rotate.\n sender = self.sender()\n for i in range(3):\n if sender == self.line_edits[i]:\n break\n value = int(self.line_edits[i].text())\n self.internal = True\n self.sliders[i].setValue(value)\n self.internal = False\n self.check(i)\n self.rotate(value)\n\nif __name__ == '__main__':\n # We need to set a variable, otherwise, the dialog doesn't appear.\n rotate = RotateGui()\n\n}}\n\n\n## Option\n\nAt the end of the function \\'initUI\\' the first two arguments (right-300, 0) (line 91) provide the position for the top left corner of the window - my experience is that the behaviour was as intended on Ubuntu but Vista positioned the window too high and the 0 needed to be changed to \\~30.\n\n \n```python\n self.setGeometry(right-300, 0, 300, 150)\n```\n\n## Forum\n\n[View+Rotation](http://forum.freecadweb.org/viewtopic.php?f=3&t=1784&hilit=View+Rotation#p12012)\n\n\n---\n⏵ [documentation index](../README.md) > Macro View Rotation\n"}
{"id": "freecad-docs:wiki/Manipulator_workbench.md", "source": "freecad-docs", "repository": "https://github.com/FreeCAD/FreeCAD-documentation", "revision": "0499378a238ce4c77c643b9cc4a03d0947381e45", "path": "wiki/Manipulator_workbench.md", "url": "https://github.com/FreeCAD/FreeCAD-documentation/blob/0499378a238ce4c77c643b9cc4a03d0947381e45/wiki/Manipulator_workbench.md", "license": "CC0-1.0", "encoding": "utf-8", "sha256": "646ab5cad3eb9eb661366630a63d3ad8878427c932e055135e65fc383c7e75d9", "bytes": 158, "tokens": 60, "text": "# Manipulator workbench\n1. REDIRECT [Manipulator Workbench](Manipulator_Workbench.md)\n\n\n---\n⏵ [documentation index](../README.md) > Manipulator workbench\n"}
{"id": "freecad-docs:wiki/Manual_Introduction.md", "source": "freecad-docs", "repository": "https://github.com/FreeCAD/FreeCAD-documentation", "revision": "0499378a238ce4c77c643b9cc4a03d0947381e45", "path": "wiki/Manual_Introduction.md", "url": "https://github.com/FreeCAD/FreeCAD-documentation/blob/0499378a238ce4c77c643b9cc4a03d0947381e45/wiki/Manual_Introduction.md", "license": "CC0-1.0", "encoding": "utf-8", "sha256": "e713b06179de8065d67c874fd83bf74072229bc47888df8f94f4e886557ebf22", "bytes": 3330, "tokens": 766, "text": "# Manual:Introduction\n[FreeCAD](https://www.freecad.org) is an open-source, free parametric 3D computer-aided design (CAD) modelling tool used to create objects ranging from simple designs to complex projects consisting of extensive assemblies of numerous parts. Due to its open-source nature, FreeCAD can be freely downloaded, distributed, modified, and used for both personal and commercial purposes. The source code is openly published under the [LGPL](https://en.wikipedia.org/wiki/GNU_Lesser_General_Public_License) license. This makes FreeCAD an appealing option not only for relatively inexperienced users, such as hobbyists in the 3D printing world, but also for experienced users looking to experiment with a different parametric tool.\n\nThe software was initially released in its infancy in 2002. Since then, thanks to the continuous contributions from a devoted community of developers and users, FreeCAD has grown slowly but steadily. The passionate efforts of numerous contributors have not only improved FreeCAD\\'s capabilities as a CAD tool but have also led to the development of additional functionalities in separate domains closely tied to the base FreeCAD suite. Some notable examples include the FEM workbench, which enables the execution of simple Finite Element Analysis, as well as the BIM workbench which offers Building Information Modeling (BIM) capabilities.\n\nThis user manual is being written and updated for version [1.0](Release_notes_1.0.md) of FreeCAD. Its purpose is to serve as a guide for individuals who wish to start using FreeCAD for their projects. No extensive prior knowledge of any CAD software is required, and the contents of this manual are organized in a straightforward and comprehensive manner, divided into various application areas. The guide includes instructions regarding the installation of FreeCAD, the use of its most prominent workbenches, and extends to more complex topics such as Python scripting. Efforts have been made to present the information in an organized, step-by-step fashion, complete with images. This structure ensures that both novice CAD users and more experienced individuals can benefit from studying this manual. The contents of this manual are published under the [Creative Commons 4.0](http://creativecommons.org/licenses/by/4.0/) license, and can be freely used, downloaded, copied, and modified. The FreeCAD Manual is continuously improved through user experiences and contributions. A [Python script](https://wiki.freecad.org/FreeCAD_manual_converter) is available to convert the latest version of this manual into PDF or EPUB formats for offline reading.\n\nAnother valuable resource is the [FreeCAD wiki](Main_Page.md), where numerous contributors have added useful information covering every aspect of the software. Due to the wealth of information available, navigating and using the wiki can be somewhat challenging and overwhelming, especially for new users. For this reason, it is advised to first study the user manual, which offers a more streamlined and smooth introduction, before delving into the more extensive details available in the wiki. Finally, the [FreeCAD Forums](https://forum.freecad.org/) are also very helpful and provide additional support and insights.\n\n\n---\n⏵ [documentation index](../README.md) > Manual:Introduction\n"}
{"id": "freecad-docs:wiki/Mesh.md", "source": "freecad-docs", "repository": "https://github.com/FreeCAD/FreeCAD-documentation", "revision": "0499378a238ce4c77c643b9cc4a03d0947381e45", "path": "wiki/Mesh.md", "url": "https://github.com/FreeCAD/FreeCAD-documentation/blob/0499378a238ce4c77c643b9cc4a03d0947381e45/wiki/Mesh.md", "license": "CC0-1.0", "encoding": "utf-8", "sha256": "264de9735e468866ad55d454ef9d9c8571852c4c5a2171b92d68ebbab7f8e580", "bytes": 3252, "tokens": 1013, "text": "# Mesh\n## Introduction\n\nIn FreeCAD the word \\\"[Mesh](Mesh.md)\\\" is normally used to refer to a [Mesh MeshObject](Mesh_MeshObject.md) (`Mesh::MeshObject` class), a type of object that defines 3D data but is not a solid \\\"[Shape](Shape.md)\\\".\n\nMeshes are very simple objects, containing only vertices (points), edges and triangular faces. In general, they are easy to create, modify, subdivide, and stretch, and can be passed from one application to another without any loss of detail. In addition, since meshes contain very simple data, 3D applications like animation software and video games can manage very large quantities of them (millions of triangles) without using a lot of computing resources.\n\nHowever, in the field of engineering meshes present one big limitation: they are only made of surfaces, and have no \\\"mass\\\" information, so they don\\'t behave like \\\"solids\\\". This means that solid-based operations, like [boolean addition or subtraction](Part_Boolean.md), are difficult to perform on meshes. Also, since they are defined by individual points, they are hard to describe in a parametric fashion.\n\nSee [Mesh MeshObject](Mesh_MeshObject.md) for more information about this type of object, and see [Polygon mesh](https://en.wikipedia.org/wiki/Polygon_mesh) for generic information in computer systems.\n\n\n\n\n*Left: parametric [shape](Shape.md) defined by properties. Right: [mesh](Mesh.md), defined by vertices and triangular surfaces.*\n\n## Usage\n\nMeshes are normally created by internal functions of the [Mesh Workbench](Mesh_Workbench.md), or by importing mesh format files, like STL and OBJ.\n\nEssentially, every object derived from a [Mesh Feature](Mesh_Feature.md) (`Mesh::Feature` class) is expected to hold and manipulate a Mesh.\n\nSince FreeCAD is primarily designed to be a solid modeller, it is better suited to deal with solid [Shapes](Shape.md). It can import and display Meshes in the [3D view](3D_view.md), and the [Mesh Workbench](Mesh_Workbench.md) offers some commands to directly manipulate them. But in many cases the Mesh first needs to be converted to a [Shape](Shape.md) (see [Part ShapeFromMesh](Part_ShapeFromMesh.md)), or the geometry needs to be recreated using solid modelling techniques from the [Part Workbench](Part_Workbench.md) or the [PartDesign Workbench](PartDesign_Workbench.md).\n\n## Finite element meshes \n\nIn FreeCAD the word \\\"[Mesh](Mesh.md)\\\" may also refer to a specific object that will be used in finite element analysis (FEA).\n\nWhen an object with a solid [Shape](Shape.md) is used in the [FEM Workbench](FEM_Workbench.md) it will be discretized into a triangular mesh. In this case, the resulting object is a [FEM FemMeshObject](FEM_Mesh.md) (`Fem::FemMeshObject` class), and is not derived from a [Mesh Feature](Mesh_Feature.md) (`Mesh::Feature` class).\n\nFor more information see [FEM Workbench](FEM_Workbench.md) and [FEM Mesh](FEM_Mesh.md).\n\n## More information \n\n- [Polygonal (mesh) geometry](https://forum.freecadweb.org/viewtopic.php?f=8&t=47493)\n\n {{Mesh Tools navi}} {{FEM Tools navi}} {{Document objects navi}}\n\n\n---\n⏵ [documentation index](../README.md) > [Glossary](Category_Glossary.md) > [Mesh](Category_Mesh.md) > [FEM](Category_FEM.md) > Mesh\n"}
{"id": "freecad-docs:wiki/Mesh_AddTriangle.md", "source": "freecad-docs", "repository": "https://github.com/FreeCAD/FreeCAD-documentation", "revision": "0499378a238ce4c77c643b9cc4a03d0947381e45", "path": "wiki/Mesh_AddTriangle.md", "url": "https://github.com/FreeCAD/FreeCAD-documentation/blob/0499378a238ce4c77c643b9cc4a03d0947381e45/wiki/Mesh_AddTriangle.md", "license": "CC0-1.0", "encoding": "utf-8", "sha256": "0c1616dced2ff4e770223387deb9f35938a5b9ed3dc987fa16ffb16d9e5a1789", "bytes": 160, "tokens": 75, "text": "# Mesh AddTriangle\n1. REDIRECT [Mesh_AddFacet](Mesh_AddFacet.md)\n\n\n---\n⏵ [documentation index](../README.md) > [Mesh](Mesh_Workbench.md) > Mesh AddTriangle\n"}
{"id": "freecad-docs:wiki/Migrating_to_FreeCAD_from_Revit.md", "source": "freecad-docs", "repository": "https://github.com/FreeCAD/FreeCAD-documentation", "revision": "0499378a238ce4c77c643b9cc4a03d0947381e45", "path": "wiki/Migrating_to_FreeCAD_from_Revit.md", "url": "https://github.com/FreeCAD/FreeCAD-documentation/blob/0499378a238ce4c77c643b9cc4a03d0947381e45/wiki/Migrating_to_FreeCAD_from_Revit.md", "license": "CC0-1.0", "encoding": "utf-8", "sha256": "ad63c309a848d77ca8618db27001a43aefd8bdf1f6a79d07c9f039840579da73", "bytes": 4474, "tokens": 1221, "text": "# Migrating to FreeCAD from Revit\nThis page is intended to give you a quick start with FreeCAD if you are coming from Autodesk Revit.\n\n### Setting things up \n\nFreeCAD is a multi-purpose 3D modeling application. Although it is not solely a BIM application, it features a dedicated [BIM Workbench](BIM_Workbench.md), which is bundled with every FreeCAD installation, and contains a set of BIM tools.\n\n### Key concepts \n\nAlthough you will be able to perform the same tasks and obtain a similar result to what you are used to in Revit, both software are different and you should learn the differences.\n\n- The Revit file format (.RVT) is proprietary, non-documented, and is not supported by FreeCAD (supporting it would be a gigantic task which would swallow all of FreeCAD resources for a very incomplete result). Instead, you should rely on open formats such as [IFC](Arch_IFC.md), which is rather well supported by both applications. Families can also be exported to ACIS/SAT which is supported by the InventorLoader addon, installable via the [Addons manager](Std_AddonMgr.md).\n\n- BIM assets such as windows, equipment or furniture are usually easy to find on popular websites such as [bimobject.com](https://bimobject.com) in IFC format. But the format does not always guarantee the quality of the geometry. The [grabcad library](https://grabcad.com/library?softwares=step-slash-iges) has a good selection of downloadable assets in STEP format with good geometry quality.\n\n- There is no concept of family in FreeCAD. But there are many ways to obtain the same result, that is, several objects that share the same properties and are linked together (if you modify one, you modify them all). The most straightforward is [cloning](Draft_Clone.md). A clone is like a copy of an object, but if you modify the original object, its clones will get updated too. But there are other, more subtle ways to make objects share properties. For example, you can draw a 2D profile and build several objects from the same 2D profile.\n\n- Although they can be convenient, you don\\'t need to use the BIM tools to produce BIM objects. Any FreeCAD object, or even objects made with another software, can become BIM objects. You only need to select one and use the [Component](Arch_Component.md) tool. This also allows you to use other tools, for example from the [PartDesign Workbench](PartDesign_Workbench.md), to create complex objects that are usually hard to achieve with standard BIM tools.\n\n- Objects created with one BIM tool can have all supported BIM types. You only need to change their **IFC Type** property. So, for example, you can create a beam using the wall tool, just by changing its IFC type to \\\"Beam\\\" afterwards.\n\n- BIM tools follow the [Draft Workbench](Draft_Workbench.md) philosophy: They can be created anywhere and anyhow in the 3D space. You just need to set your [working plane](Draft_Snap_WorkingPlane.md) correctly, then next BIM objects will be created on that plane.\n\n- There is no mandatory building structure (floors in Revit) in FreeCAD. You can group your objects using [groups](Std_Group.md), or [Building parts](Arch_BuildingPart.md) (which are commonly used to make levels, but can actually be used for any kind of grouping) to work the same way as in Revit, but you are the one who chooses the most appropriate way for your project.\n\n### Suggested adoption workflow \n\n- Don\\'t try to migrate at once. Learning a new software is a complex task. FreeCAD is free, start with installing and exploring it, then when you can, use it to model a small part of a project, then as you gain knowledge and mastery, do more and more in FreeCAD and less in Revit.\n\n- Make sure you can always fall back to Revit if things go wrong: Export to IFC early and often, open the file in Revit, make sure everything is there.\n\n- Creating views and sheets works like in Revit, if you are using [Draft](Draft_Workbench.md) views (the recommended way). Create [shape views](Draft_Shape2DView.md) of your objects or levels, move them out of your model, annotate them, place everything in a group or [Building part](Arch_BuildingPart.md), then create [TechDraw](TechDraw_Workbench.md) pages and add your Draft views to it.\n\n### Further reading \n\n- the [BIM Workbench](BIM_Workbench.md)\n- [FreeCAD BIM migration guide](https://yorik.uncreated.net/blog/2020-010-freecad-bim-guide)\n\n\n---\n⏵ [documentation index](../README.md) > Migrating to FreeCAD from Revit\n"}
{"id": "freecad-docs:wiki/NativeIFC.md", "source": "freecad-docs", "repository": "https://github.com/FreeCAD/FreeCAD-documentation", "revision": "0499378a238ce4c77c643b9cc4a03d0947381e45", "path": "wiki/NativeIFC.md", "url": "https://github.com/FreeCAD/FreeCAD-documentation/blob/0499378a238ce4c77c643b9cc4a03d0947381e45/wiki/NativeIFC.md", "license": "CC0-1.0", "encoding": "utf-8", "sha256": "6167a9a414db05895eb0b84cec1dd0865cb1249349533d1476d74259838fab63", "bytes": 16674, "tokens": 4301, "text": "# NativeIFC\n**Warning**: The NativeIFC functionality is still a work-in-progress and is not finished. Please bear that in mind when using and not rely on it until you are confident it can do what you intend. See the [development roadmap](https://github.com/yorikvanhavre/FreeCAD-NativeIFC/blob/main/doc/roadmap2024.md) to read more about the development, what\\'s working and what\\'s planned.\n\n## Introduction\n\nStarting from version 1.0, FreeCAD uses the [Native IFC concept](https://github.com/brunopostle/ifcmerge/blob/main/docs/whitepaper.rst). It allows FreeCAD users to open, manipulate and create IFC files natively in FreeCAD.\n\nAlthough FreeCAD already supported opening and saving IFC files through the Arch workbench for a long time, it did so, like most other BIM applications, by translating back and forth between the IFC file format and FreeCAD\\'s internal data model. This means two translations, one when opening and another one when saving, which cause data loss, and a complete rewrite of the file each time. This turns it unsuitable for [version control systems](https://en.wikipedia.org/wiki/Version_control) like [Git](https://en.wikipedia.org/wiki/Git), and very hard to locate changes.\n\nNative IFC means that the IFC file is itself the data structure in FreeCAD. When opening an IFC file in FreeCAD, what you see on the screen is a direct rendering of the contents of the IFC file. Anything you modify will directly modify the IFC file. If you open a file, modify one element and save the file, the only thing that will have changed in the file is the line concerning that element. The rest of the file will be 100% identical to how it was before you saved. No data loss, and very identifiable changes.\n\nThe Native IFC idea itself comes from [this paper by Bruno Postle](https://github.com/brunopostle/ifcmerge/blob/main/docs/whitepaper.rst). It is heavily inspired by [BlenderBIM](https://blenderbim.org/) and tries as much as possible to use the same concepts and reuse the code. The final goal is to offer in FreeCAD the same level of functionality and performance found in BlenderBIM, and to upstream as much as possible to [IfcOpenShell](https://ifcopenshell.org/), the common IFC engine used by both applications. It started as a [separate project by Yorik](https://github.com/yorikvanhavre/FreeCAD-NativeIFC)\n\nWorking with native IFC files in FreeCAD is simple: Open an existing IFC file or create a new project using the [Project tool](BIM_Project.md) from the [BIM Workbench](BIM_Workbench.md). Create new objects with any of the FreeCAD workbenches or tools. Add these objects to your IFC project by dragging them into the project structure. Save the file, and you are done.\n\nRead below for more details.\n\n## Locked and unlocked modes \n\nThe [BIM Workbench](BIM_Workbench.md) offers two modes to work with IFC files. Switching between the two modes is done by clicking the **lock button** on the FreeCAD status bar:\n\n\n\n- **Unlocked mode** (default): You can have both Native IFC projects and non-IFC elements in a same FreeCAD document. You can also work on BIM models without creating any Native IFC project, and still export your model as IFC.\n- **Locked mode**: Your FreeCAD document is an IFC file. Anything you do will cause changes in the IFC file. Any new object you add is instantly converted to IFC.\n\nIn locked mode, all the objects you create are immediately converted to IFC, and might therefore loose some of their original properties and some of their parametric behavior when these are not supported by the IFC format. This mode is more restrictive, which is a disadvantage at some points in project development, but becomes an advantage when data integrity and reliability become essential.\n\nIt is also possible to create native IFC projects inside an unlocked document. In that case, strict IFC elements coexist with non-IFC elements in your FreeCAD document. Objects within an IFC project are linked to its attached IFC file. Working with IFC projects is often not needed at early stages of a project, but if you work with others and use IFC files as your main communication medium, using native IFC projects can become an advantage, as the changes in each version of the file are much smaller.\n\nYou can always export your model to IFC whenever needed, using IFC projects or not. The difference is that when you are using an IFC project, very minimal changes are written to the IFC file. When not, the whole file is rewritten at each export. This might or might not be an issue for you\n\nThe general idea is to work in unlocked mode when working on your own projects, so you can have both IFC and non-IFC elements in your documents, and use the locked mode when working on other people\\'s IFC files, so you can keep strict control over what you are changing in those files.\n\n## File concepts \n\nWhen working with native IFC files in FreeCAD, an IFC project (being locked or unlocked) always has an IFC file attached to it. That IFC file contains all the data of your IFC project inside FreeCAD and is also responsible for providing the geometry of its objects to FreeCAD.\n\nWhen creating a new IFC project, there is no IFC file yet, the first time you save the file FreeCAD will ask you where to save the IFC file.\n\nIn locked mode, you work directly in an IFC file. There is no more FreeCAD file.\n\nIn unlocked mode, you have IFC project objects attached to IFC files, and the FreeCAD document is dependent on these IFC files. If you wish to transmit your FreeCAD file to someone else, you need to given them the IFC files too. Alternatively, you can also set the Shape mode of all the objects to \\\"Shape\\\" (see below). This will make the FreeCAD file retain the shape of all the IFC objects, and render them correctly even without the attached IFC file. However, the IFC objects inside will no longer be editable.\n\n## IFC objects vs BIM objects \n\nWhen a BIM object or any other FreeCAD object is bound to a Native IFC [project](BIM_Project.md), it becomes an IFC object. Binding an object to a Native IFC project is done simply by dragging, in the tree view, the object onto the project or onto any object that is already part of that project, for example a building or a storey.\n\nOnce an object has become an IFC object, it is entirely controlled by the IFC data. It looses its former FreeCAD parametric object, and might loose any parametric properties and features that are not supported by the IFC format. The aim here is in the future to render all this seamless and keep the same editing possibilities for both IFC and non-IFC objects.\n\n## Opening and importing IFC files \n\nYou have two options: open or import.\n\n- If you open, a new document will be created and you will automatically be in **locked mode**\n- If you import, a native IFC [project](BIM_Project.md) object will be added to the current document, but you can still create non-IFC objects outside that project. You will still be in **unlocked mode**\n\nTo open an IFC file, use menu File -\\> Open and select an IFC file. To import an IFC file, use menu File -\\> Import and select an IFC file.\n\nTo maximize initial import speed, opening or importing IFC files will by default render only the top-level object (usually a Site) in FreeCAD. To expand the contents of this object, you need to double-click it in the tree view (see below).\n\nImporting or opening an IFC file does not require the setting of any option. However, some defaults can be tweaked under menu Edit -\\> Preferences -\\> BIM -\\> NativeIFC.\n\n## Creating a new IFC document \n\nYou can choose to work in locked or unlocked mode, depending mostly if you need to have non-IFC objects in your FreeCAD document (unlocked) or wish that everything you do in the document happens in the IFC file (locked).\n\nWhen creating a new IFC project, there is no attached IFC file yet. On first save, FreeCAD will ask you for a location to save an IFC file.\n\n**In locked mode:**\n\n1. Create a new FreeCAD document with menu File -\\> New\n2. Press the
\n\n : *Select feature* dialog. These settings create a sketch on the XY plane and allow cross-references from other items of the same body\n\nDialog settings\n\n- Coordinate system box: defines the orientation of the sketch plane\n- Allow Used Features: *TBD*\n\n: Allow external features options\n\n- From other bodies of the same part: any elements used in the same body can be referenced\n- From different parts or free features: *TBD*\n- Make independent copy: all other elements will be separate copies, i.e. they will not change when the original changes.\n- Make dependent copy: the elements will be copies, but a dependency to the original elements is kept. This is basically using a [Shapebinder](PartDesign_ShapeBinder.md)\n- Create cross-reference: the linked elements will not be copies, but point to the original elements, e.g. a master sketch. Any changes are reflected to this sketch\n\nTo reference any items in the [Workbench Sketcher](Sketcher_Workbench.md) use the **
\n\nThe top of the window is taken up by the table. It is organized into numbered columns which correspond to segments of the shaft. A shaft segment is characterized by having certain length and diameter. The main window shows two tabs. One is the shaft part itself (a revolution feature), shown in the image above. The second tab shows graphs of the shear forces and moments created by the loads defined in the table.\n\n
\n\n## Prerequisites\n\nThe shaft design wizard depends on the [matplotlib](http://matplotlib.org/) library to create and display the graphs of shear force and bending moment. On Debian/Ubuntu-based systems, it is available through the python-matplotlib package.\n\n## Parameters\n\nFor each shaft segment, the following parameters can be defined\n\n- Length of the segment\n- Diameter of the segment\n- Load type. Note that you have to click on the desired entry in the menu after scrolling to it, otherwise it will not be selected!\n - None: No load\n - Fixed: The end of the shaft is fixed (e.g. welded to another part). This load type can only be defined for the first or last segment.\n - Static: There is a static load on this shaft segment\n- Load on the shaft segment\n- Location where the load is applied to the segment. The location is counted from the left-hand edge of the segment\n\n(Other rows and load types exist but no functionality has been implemented yet)\n\n## Menus\n\nTo add a new shaft segment, right-click into the empty space to the right of the table, and choose \\\"Add column\\\".\n\n## Limitations\n\n- It is not possible to have adjacent shaft segments with the same diameter.\n\n## Planned functionality \n\n- Table-driven chamfers and rounds on the shaft edges\n- Recognize a previously created shaft wizard part and initialize the table values from it\n- Shaft stress calculation\n- Visualization of loads on the shaft (can use the same functionality as for FEM module)\n- Definition of loads as a Document Object (can use the same functionality as for FEM module)\n- Material database\n- Allow loads in the Z-direction as well as in Y-direction (requires definition of loads as a Document Object, otherwise the table will become very long)\n\n\n {{PartDesign Tools navi}}\n\n\n---\n⏵ [documentation index](../README.md) > [PartDesign](PartDesign_Workbench.md) > PartDesign WizardShaft\n"}
{"id": "freecad-docs:wiki/Part_SliceApart.md", "source": "freecad-docs", "repository": "https://github.com/FreeCAD/FreeCAD-documentation", "revision": "0499378a238ce4c77c643b9cc4a03d0947381e45", "path": "wiki/Part_SliceApart.md", "url": "https://github.com/FreeCAD/FreeCAD-documentation/blob/0499378a238ce4c77c643b9cc4a03d0947381e45/wiki/Part_SliceApart.md", "license": "CC0-1.0", "encoding": "utf-8", "sha256": "45d634e5726b5b8b14a57092b612a1ca49c676f13b8ca521246e1f96ed5aa5c4", "bytes": 3307, "tokens": 1081, "text": "---\n GuiCommand:\n Name: Part SliceApart\n MenuLocation: Part , Split , Slice apart\n Workbenches: Part_Workbench\n Version: 0.18\n SeeAlso: Part_Slice, Part_ExplodeCompound\n---\n\n# Part SliceApart\n\n## Description\n\nTool to split shapes by intersection with other shapes. For example, for a box and a plane, two solids are created.  \n\n\n* Above: the pieces were moved apart manually afterwards, to reveal the slicing.*\n\n[Slice apart](Part_SliceApart.md) is the same as
Before Rotation (top view) \n\n
After Rotation about Z (top view) \n\n
After Rotation about y=x (right view) \n\nRotation with offset centre point:\n\n
Before Rotation (top view) \n\n
After Rotation about Z (top view) \n\nRotation using Euler angles:\n\n
Before Rotation \n\n
After Rotation \n\n## Placement.Base vs Shape Definition \n\nPlacement is not the only way to position a shape in space. Note the Python console in this image:\n\n \n\nBoth cubes have the same value for Placement, but are in different locations! This is because the 2 shapes are defined by different vertices (curves in more complex shapes). For the 2 shapes in the above illustration:\n\n\\>\\>\\> ev = App.ActiveDocument.Extrude.Shape.Vertexes\n\n >>> for v in ev: print(v.X,\",\",v.Y,\",\",v.Z)\n ...\n 30.0,30.0,0.0\n 30.0,30.0,10.0\n 40.0,30.0,0.0\n 40.0,30.0,10.0\n 40.0,40.0,0.0\n 40.0,40.0,10.0\n 30.0,40.0,0.0\n 30.0,40.0,10.0\n >>> e1v = App.ActiveDocument.Extrude001.Shape.Vertexes\n >>> for v in e1v: print(v.X,\",\",v.Y,\",\",v.Z)\n ...\n 0.0,10.0,0.0\n 0.0,10.0,10.0\n 10.0,10.0,0.0\n 10.0,10.0,10.0\n 10.0,0.0,0.0\n 10.0,0.0,10.0\n 0.0,0.0,0.0\n 0.0,0.0,10.0\n >>>\n\nThe Vertices (or Vectors) that define the shape use the Placement.Base attribute as their origin. So if you want to move a shape 10 units along the **X** axis, you could add 10 to the **X** coordinates of all the Vertices or you could set Placement.Base to (10,0,0).\n\n## Using \\\"Center\\\" to Control Axis of Rotation \n\nBy default, the axis of rotation isn\\'t really the x/y/z axis. It is a line parallel to the selected axis, but passing through the reference point (Placement.Base) of the object to be rotated. This can be changed by using the Center fields in the Placement dialog or, in scripts, by using the Center parameter of the FreeCAD.Placement constructor.\n\nFor example, suppose we have a box (below) positioned at (20,20,10).\n\n \n\nWe wish to spin the box around it\\'s own vertical centre line (ie local Z), while keeping it the same position. We can easily achieve this by specifying a Center value equal to the coordinates of the box\\'s central point (25,25,15).\n\n \n\nIn a script, we would do:\n\n \n```python\nimport FreeCAD\nobj = App.ActiveDocument.Box # our box\nrot = FreeCAD.Rotation(FreeCAD.Vector(0,0,1),45) # 45° about Z\n#rot = FreeCAD.Rotation(FreeCAD.Vector(1,0,1),45) # 45° about X and 45° about Z\n#rot = FreeCAD.Rotation(10,20,30) # here example with Euler angle Yaw = 10 degrees (Z), Pitch = 20 degrees (Y), Roll = 30 degrees (X)\ncentre = FreeCAD.Vector(25,25,15) # central point of box\npos = obj.Placement.Base # position point of box\nnewplace = FreeCAD.Placement(pos,rot,centre) # make a new Placement object\nobj.Placement = newplace # spin the box\n```\n\nSame script with the file example [RotateCoG2.fcstd](http://forum.freecadweb.org/download/file.php?id=1651) (discussion on the [forum](http://forum.freecadweb.org/viewtopic.php?f=3&t=3950#p31052))\n\n \n```python\nimport FreeCAD\nobj = App.ActiveDocument.Extrude # our box\nrot = FreeCAD.Rotation(FreeCAD.Vector(0,0,1),45) # 45 about Z\n#rot = FreeCAD.Rotation(FreeCAD.Vector(1,0,1),45) # 45° about X and 45° about Z\n#rot = FreeCAD.Rotation(10,20,30) # here example with Euler angle Yaw = 10 degrees (Z), Pitch = 20 degrees (Y), Roll = 30 degrees (X)\ncentre = FreeCAD.Vector(25,25,0) # \"centre\" of rotation (where local Z cuts XY)\npos = obj.Placement.Base # original placement of obj\nnewplace = FreeCAD.Placement(pos,rot,centre) # make a new Placement object\nobj.Placement = newplace # spin the box\n```\n\n## Using Placement in expressions \n\nIn expressions it is possible to use the components of the placement for example to access the x-component of the object labeled \\\"Cube\\\":\n\n \n```python\n<
\n\nDefining the project origin at intersection of Axis 01 & D. By our convention this equals SouthWest corner of model. Observe that the axis pass through the center of walls.\n\nWhen modeling any Architectural model, You will most certainly want to split into separate files. By the way, partial IFC files seem to be the trend at the moment. Mainly split by discipline. The split can be by discipline or other. It is good practice to have a common origin and orientation across these models (files). This makes it easy to copy paste groups between files as needed. It also provides a good basis for several people to work on the project as needed.\n\nTip\n\nFor reference we have made the assumption that global Y-axis equals North.\n\n### Defining the Arch Axis System \n\nWe now want to make an [ArchAxisSystem](Arch_Axis/en.md) for reference when modeling our building. The result will look something like this:\n\n
\n\nTo find the data for making the [ArchAxisSystem](Arch_Axis/en.md) study the Plan View of the imported dwg. This will show You Axis and Dimensions.\n\n
\n\nAlternatively measure between the various axis in Freecad. This can be done in several ways, using the part workbench Measure linear, [Tape Measure works fine for this](Part_Measure_Linear.md).\n\n\n\nBy Studying original dxf files.\n\n\n\nWhen measuring distance between axis 10 and 11, we find Delta X = 3.6246 Index 11 above, has been adjusted since if possible, we like to work with 'round' figures.\n\n\n\nWe also observe that the Eastern Columns are tangent to East wall of Studio. This is not good practice.\n\nFIXME Comment\n\nWill reduce the distance between axis 10 and 11. Will try with 3550mm.\n\n#### Arch axis X \n\nNow, let's make the Axis along global X: The Freecad Command is [Arch Axis ](Arch_Axis.md)\n\n
\n\nImage shows Data and labels Used.\n\n#### Arch Y-Axis \n\n
\n\nImage shows Data and labels Used.\n\nTip\n\nObserve the 270deg rotation and offset of placement to get labels to get desired layout.\n\n#### Combining to Axis System \n\nArch [AxisSystem](Arch_AxisSystem.md) is used to combine the x and y Arch Axis into an Arch Axis system.\n\nTip\n\nIf You save Your AxisSystem to a file, without any other geometry, it does not seem to open as the first file. FreeCad simply Crashes. However, not such a big deal, because if You open another file containing geometry first, then You are able to open the file containing only the AxisSystem without any problem. Strange??\n\n#### Axis System Forum posts \n\n- [Arch Axis question](https://forum.freecadweb.org/viewtopic.php?f=23&t=30938)\n\n## Placing and rotating 2d Views \n\nIn order to place 2d views in 3d, we need to prepare some helper objects. In FreeCad we have several ways we can set-up, store and name [Working Planes](Draft_SelectPlane.md) . We can name these and store them by using a [WorkingPlaneProxy object](Draft_WorkingPlaneProxy.md).\n\n
\n\nYou should end up with something looking like this\n\nTip\n\nBy placing and rotating the imported 2d view, You will have a good way of checking their consistency.\n\n## Adding reference planes \n\nFIXME needs documenting\n\nAfter starting to look at [#WokFeature_Approach](#WokFeature_Approach.md). Think this is a great way of implementing working planes.\n\n## Modeling\n\n### Walls\n\nWalls can be:\n\n- Inner / Outer, Structural / Non Structural\n- Walls should contain openings for doors, windows, or other\n\nLike most [Arch](Arch_Workbench.md) objects, [walls](Arch_Wall.md) can be built upon a big variety of other objects: [lines](Draft_Line.md), [wires](Draft_Wire.md) (polylines), [sketches](Sketcher_Workbench.md), faces or solid (or even on nothing at all, in which case they are defined by height, width and length). The resulting geometry of the wall depends on that base geometry, and the properties you fill in, such as width and height. As you might guess, a wall based on a line will use that line as its alignment line, while a wall based on a face will use that face as its base footprint, and a wall based on a solid will simply adopt the shape of that solid. This allows about any shape imaginable to become a wall.\n\nThere are different possible strategies to build walls in FreeCAD. One might want to build a complete \\\"floor plan\\\" with the [sketcher](Sketcher_Workbench.md), and build one, big, wall object from it. This technique works, but you can only give one thickness for all the walls of the project. Or, you can build each piece of wall from separate line segments.\n\nDelete ? *Or, this is what we will do here, a mix of both: We will build a couple of [wires](Draft_Wire.md) on top of the imported plan, one for each type of wall:* Have found that editing a wire is currently more cumbersome than editing a line\n\n\n\nThe RED lines that will become concrete walls (a [pictures search](http://www.google.com/search?tbm=isch&q=casa+artigas+brooklin) of the house can help you to see the different wall types), the GREEN ones are the exterior brick walls, and the BLUE ones will become the inner walls. Lines are passed through the doors, because doors will be inserted in the walls later, and will create their openings automatically. Walls can also be aligned left, right or centrally on their baseline, so it doesn\\'t matter which side you draw the baseline. Take care on **avoiding intersections** as much as You can. Our model will be cleaner that way. This will save us some headache later, for example if we export our work to other applications, that might not like it.\n\nWhen this is done, place all those lines in a new [group](Std_Group.md) if you want, select each line one by one, and press the [Arch Wall](Arch_Wall.md) tool to build a wall from each of them. You can also select several lines at once. After doing that, and correcting widths (exterior walls are 25cm wide, inner walls are 15cm wide) and some alignments, we have our walls ready:\n\n
\n\nYou should now have a model resembling something like this.\n\n**Grouping**\n\nGrouping of Your various objects can come in handy at a later stage. How to Group Your model is Your choice.\n\nHere is an example:\n\nNote, Baselines for creating walls have also been grouped\n\nWalls have been grouped like:\n\n- Walls\n - WallsExternal\n - WallsInternal\n\nTip\n\nHave found the KISS principle (Keep It Simple & Stupid) is a good approach.\n\n- Using lines as a base for walls works fine.\n- They are easy to move and change.\n - When editing the line defining a wall, the wall will update\n- At a later stage You can always join them as needed.\n\nTip\n\nSaving Your walls to a new file at this stage can be a good idea.\n\nOne way of doing this is creating a new file.\n\n- Activate Your file containing Walls You have just modelles\n- Mark the groups You want in Your \\'wallModelFile\\'\n- Choose Edit-\\>Copy\n- Activate Your new file\n- Choose Edit-\\>Paste, or Ctrl+v\n- Save Your new file to something meaningful for Your workflow.\n - Suggestion At2_Walls_Initial\n\nWith this work flow:\n\n- Pros\n - You will be able to go back to Your starting point if anything goes wrong\n - You will be building a model consisting of several partial models\n - This is a good way of keeping file size down. You can work on one particual \\'sub model\\' without caring about the overhead of the total model.\n- Cons\n - You will generate a lot of files\n - Be particular how You name Your various files, or get lost.\n\nFIXME\n\nSo, how to organize? Believe the main differing factor is Structural / Non Structural Next Level Inner / Outer\n\n[Curtain Walls](https://en.wikipedia.org/wiki/Curtain_wall_(architecture)) are always Non Structural\n\n#### Joining Wall segments \n\nAll Arch objects have a great feature: you can add one to another. Doing that will unite their geometries, but they are still editable independently after. To add one of our crossing walls to the other, just select one, CTRL + select the other, and press the Arch Add tool:\n\n\n\nOn the left are the two intersecting walls, on the right the result after adding one to the other.\n\n\n{{Note|An important note about parametric objects|Something is important to consider already. As you can see, in FreeCAD, everything is parametric: Our new \"united\" wall is made from two walls, each based on a baseline. When you expand them in the [tree view](Document_structure.md), you can see all that chain of dependencies. As you can imagine, this little game can quickly become very complex. Furthermore, if you already know how to work with the [sketcher](Sketcher_Workbench.md), you might have wanted to draw the baselines with constrained sketches. This whole complexity has a cost: it raises exponentially the number of calculations that FreeCAD has to perform to keep your model geometry up to date. So, think about it, don't add unnecessary complexity when you don't need it. Keep a good balance between simple and complex objects, and keep these for the cases where you really need them.}}\n\nFor example, I could have drawn all my baselines above without caring about what crosses what, and fix things with the [Arch Add](Arch_Add.md) tool later. But I would have raised much the complexity of my model, for no gain at all. Better make them correct right from the start, and keeping them as very simple pieces of geometry.\n\nNow that our walls are okay, we need to raise their height, until they intersect the roof. Then, since the wall object still cannot be cut automatically by roofs (this will happen some day, though), we will build a \\\"dummy\\\" object, that follows the shape of the roof, to be subtracted from our walls.\n\nFirst, by looking at our 2D drawings, we can see that the highest point of the roof is 5.6m above the ground. So let\\'s give all our walls a height of 6m, so we make sure they will be cut by our dummy roof volume. Why 6m and not 5.6m? You may ask. Well, if you already worked with boolean operations (additions, subtractions, intersections), you must already know that these operations usually don\\'t like much \\\"face-on-face\\\" situations. They prefer clearly, frankly intersecting objects. So by doing this, we keep on the safe side.\n\nTo raise the height of our walls, simply select all of them (don\\'t forget the one we added to the other) in the tree view, and change the value of their \\\"height\\\" property.\n\n#### Studio Elevation \n\nBefore making our roof and cutting the walls, let\\'s make the remaining objects that will need to be cut: The walls of the above studio, and the columns.\n\nWe will now make a [Workplane](Draft_SelectPlane/en.md) and a [workplaneProxy](Draft_WorkingPlaneProxy.md) object at the studio elevation.\n\n
\n\nBefore establishing the elevation, take a look at the base 2d drawings. Something is wrong in paradise.\n\nWe will set top of Studio floor (Slab) to 2425,0 mm\n\nThis can be done in many ways. Probably the easiest is to draw the baseline for studio wall on top of the Plan View, and moving it up 2425mm.\n\nDelete ?\n\nThe walls of the studio are made the same way as we did, on the superior floor plan, but they will be raised up to level 2.6m. So we will give them the needed height so their top is at 6m too, that is, 3.4m. Once this is done, let\\'s move our walls up by 2.6m: Select them both, put yourself in frontal view (View → Standard Views → Front), press the [Draft Move](Draft_Move.md) button, select a first point, then enter 0, 2.6, 0 as coordinates, and press enter. Your objects now have jumped 2.6m high:\n\n\n{{Note|About coordinates|The [Draft](Draft_Workbench.md) objects, and most [Arch](Arch_Workbench.md) objects too, obey to a Draft system called [working planes](Draft_SelectPlane.md). This system defines a 2D plane where next operations will take place. If you don't specify any, that working plane adapts itself to the current view. This is why we switched to frontal view, and you see that we indicated a movement in X of 0 and in Y of 2.6. We could also have forced the working plane to stay on the ground, by using the [[Draft SelectPlane]] tool. Then, we would have entered a movement of X of 0, Y of 0 and Z of 2.6. }}\n\n**Alternative Approach**\n\nNow let\\'s move our walls horizontally, to their correct location. Since we have points to snap to, this is easier: Select both walls, press the [Draft Move](Draft_Move.md) tool, and move them from one point to the other:\n\n\n\nFinally, I changed the color of some walls to a brick-like color (so it\\'s easier to differentiate), and made a small correction: Some walls don\\'t go up to the roof, but stop at a height of 2.60m. I corrected the height of those walls.\n\n### Subtractions\n\nWe will show two different approaches to creating the Subtraction Volume, one drawing on 3d SouthEleveation, second drawing on plan View, rotating and moving.\n\n#### Approach one \n\nIn this Approach we will draw and extrude with correct 3d location\n\n- Set Your WorkingPlane to Front\n- Draw lines following the lower edge of roof\n- Use DraftTrimex to extend and join lines so they form a closed loop\n - Make sure the cutting volume we want to produce extends the bounds of what we want to cut\n- Convert lines to closed dwire\n- Extrude to a dimension larger than total width of elements we want to cut\n- If needed, set workplane to top view, move to top view and move extrusion so it covers the with of the building\n\n
\n\n#### Approach Two \n\nNow it is time to build our subtraction volume. The easiest way will be to draw its profile on top of the section view. Then, we will rotate it and place it at its correct position. See why I placed the sections and elevations like that before beginning? It will be very handy for drawing stuff there, then moving it to its correct position on the model.\n\nLet\\'s draw a volume, bigger than the roof, that will be subtracted from our walls. To do that, I drew two lines on top of the base of the roof, then extended them a bit further with the [Draft Trimex](Draft_Trimex.md) tool. Then, I drew a [wire](Draft_Wire.md), snapping on these lines, and going well above our 6 meters. I also drew a blue line on the ground level (0.00), that will be our rotation axis.\n\n
\n\nNow is the tricky part: We will use the [Draft Rotate](Draft_Rotate.md) tool to rotate our profile 90 degrees up, in the right position to be extruded. To do that, we must first change the [working plane](Draft_SelectPlane.md) to the YZ plane. Once this is done, the rotation will happen in that plane. But if we do like we did a bit earlier, and set our view to side view, it will be hard to see and select our profile, and to know where is the basepoint around which it must rotate, right? Then we must set the working plane manually: Press the [Draft SelectPlane](Draft_SelectPlane.md) button (it is in the \\\"tasks\\\" tab of the tree view), and set it to YZ (which is the \\\"side\\\" plane). Once you set the working plane manually, like that, it won\\'t change depending on your view. You can now rotate your view until you have a good view of all the things you must select. To switch the working plane back to \\\"automatic\\\" mode later, press the [Draft SelectPlane](Draft_SelectPlane.md) button again and set it to \\\"None\\\".\n\nNow the rotation will be easy to do: Select the profile, press the [Draft Rotate](Draft_Rotate.md) button, click on a point of the blue line, enter 0 as start angle, and 90 as rotation:\n\n
\n\nNow all we need to do it to move the profile a bit closer to the model (set the working plane to XY if needed), and extrude it. This can be done either with the [Part Extrude](Part_Extrude.md) tool, or [Draft Trimex](Draft_Trimex.md), which also has the special hidden power to extrude faces. Make sure your extrusion is larger than all the walls it will be subtracted from, to avoid face-on-face situations:\n\n
\n\n#### Common to both approaches \n\nNow, here comes into action the contrary of the [Arch Add](Arch_Add.md) tool: [Arch Remove](Arch_Remove.md). As you might have guessed, it also makes an object a child of another, but its shape is subtracted from the host object, instead of being united. So now things are simple: Select the volume to subtract (I renamed it as \\\"Roof volume to subtract\\\" in the tree view so it is easy to spot), CTRL + select a wall, and press the [Arch Remove](Arch_Remove.md) button. You\\'ll see that, after the subtraction happened, the volume to subtract disappeared from both the 3D view and the tree view. That is because it has been marked as child of the wall, and \\\"swallowed\\\" by that wall. Select the wall, expand it in the tree view, there is our volume.\n\nNow, select the volume in the tree vieew, CTRL + select the next wall, press [Arch Remove](Arch_Remove.md). Repeat for the next walls until you have everything properly cut:\n\n
\n\nRemember that for both [Arch Add](Arch_Add.md) and [Arch Remove](Arch_Remove.md), the order you select the objects is important. The host is always the last one, like in \\\"Remove X from Y\\\" or \\\"Add X to Y\\\"\n\n\n{{Note|A note about additions and subtractions|Arch objects that support such additions and subtractions (all of them except the \"visual\" helper objects such as the axes) keep track of such objects by having two properties, respectively \"Additions\" and \"Subtractions\", that contain a list of links to other objects to be subtracted or added. A same object can be in the lists of several other objects, as it is the case of our subtraction volume here. Each of the fathers will want to swallow it in the tree view, though, so it will usually \"live\" in the last one. But you can always edit those lists for any object, by double-clicking it in the tree view, which in FreeCAD enters edit mode. Pressing the escape key exits edit mode.}}\n\nTip\n\nWork flow note:\n\nIt is probably a good Idea to store Your RoofCutVolume in a separate file for later\n\n### Bathroom Geometry \n\nFIXME\n\n\n\nLooking at bathroom geometry, something is not clear.\n\n### Floors\n\nGenerally defined as Slabs\n\n\n\nTo start with, Create a [group](Std_Group.md) for Floors\n\nTip\n\n- Groups are created by **Right + Click** -\\> **Create Group**\n- Groups are created at the position of Your Cursor, meaning You may also create a [group](Std_Group.md) as a subgroup.\n- You may also move a goup to another group by Drag & Drop\n- Groups are Renamed by hitting **F2**, or right click a group and select **Rename**, or **Double Click**\n\n\n\nBy setting our Group to FloorSlabs, we insure that what we create from now on will be located in this group. (if You forget this step, You can always Drag&Drop entities to this group later)\n\n### Modeling FloorSlabs \n\nIn practice the inner walls (non structural) will probably be placed above the FloorSlabs. For tutorial purposes, we will assume that all walls and columns penetrate the FloorSlabs\n\n\n\nNext set the desired [snap settings](Draft_Snap.md). Especially for new users, conflicting snap settings are a cause of frustration.\n\nIn image above, we have the following snap settings active:\n\n- Lock\n- EndPoint\n- Perpendicular\n- Intersection\n- WorkingPlane\n\nAlso make sure WorkingPlane is set to Top.\n\nNow, draw a closed loop to make FloorSlab. This can be done either with lines, or with Draft Dwire. This is Your choice.\n\nRemember that single lines are easier to edit than a dWire, so in many cases it is more efficient to draw single lines, edit, join and add to them, before Joining them to create a dwire.\n\n\n\nYou Should now have something Like image above. **Observe** we have changed the Label to FloorSlab, and ifcRole to Slab (We don\\'t want our floor to be exported as a Column)\n\n#### Cutting FloorSlabs \n\nFIXME Yorik, can You please confirm best practice. Cloning walls to be used for cutting objects does not work. Need to copy cutting objects before **
\n\nProbably the easiest is to use a circle with R=150 as base for columns. then extrude to 6000mm.\n\nAdjust the height of Columns under Studio Slab.\n\nWe have Labeled the Columns according to the grid-lines the are placed on.\n\nNext Cut the columns going up to the roof, using the same procedure and cutting object as You used whe cutting the walls previously.\n\n### Making the roofs \n\nStarting With outer Beams\n\n
\n\nLooking at the section of the Outer Beams, we can see it is aligned with outer wall. At least in some countries with rougher weather conditions this would be bad practice. Will increase width to 200mm, and have the beam extend 50mm outside the wall.\n\n
Would also like to have what we sometimes call a drip nose. Feel it is a bit complicated to add at the moment.\n\nShowing Section of Beam with DripNose\n\n
\n\nCreated as separate extrudes, added to BuildingPart\n\nFIXME\n\nStruggling with determining best way to model..\n\nTried using Part Boolean Cut For the roof canopy\\...\n\nThe cut results in error when exporting\n\n#### Roof Center Slab \n\nOpen at2_ReferenceComplete ([can be downloaded from here](https://github.com/FreeCAD/Examples/blob/master/at2_Examples/ref/2dReferenceComplete.fcstd))\n\n\n\nChoose Edit-\\>Copy (Ctrl+C)\n\nMake a new file\n\nChoose Edit-\\>Paste (Ctrl+V)\n\nMake Your workplane perpendicular to the shapes. This can be done in many ways.\n\nFIXME Comment Add list and ill. of various ways.\n\nTip If You made the slab by extrude from Front Plane, it will need to be moved by the global Y-axis. If You move the extrusion, by means of Draft-\\>Move, this will lead to wrongly placed geometry when exporting to IFC. For IFC export to work correct, You need to also move the underlying or defining geometry.\n\nFIXME Comment Add Illustration + Arch Move\n\nLook at [Arch Component](Arch_Component.md)\n\nSome posts relating to issue and resolution\n\n- [Tracker 2014-11-08 14:51 Issue identified](https://freecadweb.org/tracker/view.php?id=1820)\n- [Remove component from draft or sketch](https://forum.freecadweb.org/viewtopic.php?f=23&t=8349)\n\n#### Mods to roof \n\n**Correct supporting wall**\n\n
\n\nIf You cut the wall (RED in image above), we now discover that this is supporting The Roof Center Slab.\n\nThis gives us a great opportunity test editing this wall with \\[
\n\nAlso try [Macro_Align_View_to_Face](Macro_Align_View_to_Face.md)\n\n[For Myself\\....](https://forum.freecadweb.org/memberlist.php?mode=viewprofile&u=10838)\n\nStarted Playing with this.. First interesting feature.. If You select An Arch Axis -\\> place point at extreme, it will place points at all ends of all the selected axis\n\n
\n\nView image, by selecting the X-Axis System and hitting WorkFeature-\\>Create Points at Line Extreme. Thew workFreature macro will create workpoints at end of all defined lines in ArchAxis. In this case AxesX\n\nAlso:\n\n- Planes created with WorkFeature are able to set workplane in draft. (Only tested 0.18)\n- Planes created this way can be named as all other FC features\n- Macro also contains Align View to Workplane feature\n\n#### IFC note \n\nWhen Building part is exported to IFC, it creates 4xIFCproxyElements, and a parent Beam object\n\nFIXME needs updating Check if Fixed\n\n### Stairs\n\nModeling the Stairs may be done in several ways.\n\nHere we will model them the traditional way, but feel free to experiment with the Automated functionality presented in [Arch Stairs](https://forum.freecadweb.org/viewtopic.php?t=29358)\n\n### Doors\n\nInner or outer\n\n### Windows\n\nInner or Outer\n\n## IFC and BIM \n\n[Building Information Modelling (BIM)](https://en.wikipedia.org/wiki/Building_information_modeling) is a very broad term that describes the process of creating a digital model of a building.\n\n### Planning \n\nBEP ( BIM Execution Plan)\n\nAll BIM projects should have a BEP ( BIM Execution Plan)\n\nAs a minimum\n\n#### Common Origin \n\n**Origin point, northing, and elevation**\n\nOne of the simplest yet most critical aspects of good project coordination is the establishment of a common or shared base point for all BIM data to follow. It is also essential to have a common site base point as the data is used through the life-cycle of the building.\n\n### IFC Links \n\n- [IFC - Where it all started - The End of Babel - Part 1/2](https://www.youtube.com/watch?v=g_jmGQvr6dQ)\n- [Planning and Standards by U.S. General Services Administration](https://www.gsa.gov/real-estate/design-construction/3d4d-building-information-modeling/bim-guidelines-for-revit/guidelines/technical-standards/bim-technical-standards-file-structure-and-organization)\n- [IFC4 - is it ready yet?](https://blog.areo.io/ifc4-is-it-ready-yet/)\n- [BimServer Center](https://bimserver.center/)\n- [BIMsie](https://www.nibs.org/page/bsa_bimsie#software)\n- [Sustainability of Digital Formats: Planning for Library of Congress Collections](https://www.loc.gov/preservation/digital/formats/fdd/fdd000447.shtml)\n- [The Top 8 Free and Open Source BIM Software Tools](https://blog.capterra.com/the-top-6-free-bim-software-tools/)\n- [Designing Buildings Wiki](https://www.designingbuildings.co.uk/wiki/Industry_Foundation_Classes_IFC)\n- [BuildingSmart schema after 2x3 TC1](https://technical.buildingsmart.org/standards/ifc/ifc-schema-specifications/)\n\n### IFC Collaboration \n\n- [Bimsync by Catenda (Norwegian company, dedicated to open standards)](https://home.bimsync.com/)\n- [Open BIMserver](http://bimserver.org/)\n- [Allplan BimPlus (a Nemetschek company)](https://www.allplan.com/products/allplan-bimplus/)\n\n#### Freecad BIM \n\n- [BIM hash on GitHub](https://github.com/OpeningDesign/FreeMVD_WorkFlow/blob/3b0cd9cbd2b7ea33b8ac580d8730478d42b692d6/BIM_Specifications.md)\n\n### IFC round tripping \n\nAim is to also test round tripping, exporting IFC from FreeCAD and importing same file for comparison.\n\n### BIM requirements by stakeholders \n\nIn the [UK](https://www.designingbuildings.co.uk/wiki/UK), the [Government Construction Strategy published in May 2011](https://www.designingbuildings.co.uk/wiki/Government_construction_strategy), stated that the [\\'\\...government](https://www.designingbuildings.co.uk/wiki/Government) will [require fully collaborative 3D BIM](https://www.designingbuildings.co.uk/wiki/Bim) (with all project and [asset](https://www.designingbuildings.co.uk/wiki/Asset) information, documentation and data being electronic) as a minimum by 2016\\'. This represents a minimum requirement for [Level 2 BIM](https://www.designingbuildings.co.uk/wiki/Level_2_bim) on centrally-procured public projects.\n\n## Relevant Forum Posts \n\nHave started gathering some forum post that might be relevant for the TutorialArchBim\n\n- [FreeCAD posts from Yorik\\'s blog](https://forum.freecadweb.org/viewtopic.php?t=17498)\n- [reorder objects](https://forum.freecadweb.org/viewtopic.php?f=3&t=5385&start=20)\n- [Why Switch from FreeCAD to Blender](https://forum.freecadweb.org/viewtopic.php?f=8&t=30371)\n- [Noob. Architecture best practices, workflow and other questions](https://forum.freecadweb.org/viewtopic.php?f=3&t=30132)\n- [BIM Workbench](https://forum.freecadweb.org/viewtopic.php?f=9&t=27237&start=100)\n- [xrefs](https://forum.freecadweb.org/viewtopic.php?f=23&t=20933&start=30)\n- [IFC++](https://forum.freecadweb.org/viewtopic.php?f=23&t=30444&start=10)\n- [controls the color of objects in a IFC?](https://forum.freecadweb.org/viewtopic.php?f=23&t=30670&p=254044#p254044%7CWhat)\n- [An arch project Postby sergiobini Thu Jul 26, 2018 12:18 pm](https://forum.freecadweb.org/viewtopic.php?f=24&t=29959&start=10)\n- [Flameshot: Fantastic Screenshot software for Linux users](https://forum.freecadweb.org/viewtopic.php?f=8&t=30780)\n- [Design for a staircase](https://forum.freecadweb.org/viewtopic.php?t=24168)\n- [BIM / Arch tutorials](https://forum.freecadweb.org/viewtopic.php?f=36&t=30806)\n- [Presenting FreeCad](https://forum.freecadweb.org/viewtopic.php?f=36&t=27169)\n- [Document tree display](https://forum.freecadweb.org/viewtopic.php?f=9&t=30856)\n- [Windows macro, various](https://forum.freecadweb.org/viewtopic.php?style=4&t=25407#p199982)\n- [Reinforcement WB](https://forum.freecadweb.org/viewtopic.php?f=24&t=30617)\n- [Yorik lecture hackable FC](https://archive.fosdem.org/2015/schedule/event/freecad/attachments/slides/667/export/events/attachments/freecad/slides/667/freecad_fosdem15.pdf)\n- [Very interesting presentation of FC and general views on OpenSource in Engineering by Joel Graff](https://forum.freecadweb.org/viewtopic.php?f=36&t=27169&p=263517#p263517)\n\n## General building terminology \n\n- [Roof terminology](https://eurolayasphaltandroofing.co.uk/roofing-terminology/)\n\n## ToDo\n\nThis paragraph or chapter will contain Ideas for improvements, expansion and view, based on communication from participants\n\n## Stubs\n\nThis is where we have temporarily stored snippets of text, that maybe should be placed somewhere in the document\n\nThese texts are all in a FIXME Comment State\n\n### Snapping Tools \n\nFIXME needs updating\n\n[Noob. Architecture best practices, workflow and other questions](https://forum.freecadweb.org/viewtopic.php?f=3&t=30132) Quoting forum post: {{Code|\nAt first, I didn't understand correctly the snapping tools. The snaps seemed random, but thanks to Regis tutorials on Youtube (cheers mate!!) I started over, using the snaps correctly (almost). This second time, by distraction, I added walls to each other and now I got stuck. I need to subtract a volume because some walls intersect a small slab, and when I do it, nothing happens. At first, they were all disappearing; now, not even that. Now, I know the tutorial recommends that we shouldn't add to much stuff to each other in order to avoid unnecessary complexity, but since it is also a BIM app, shouldn't complexity be part of it? I mean, shouldn't walls, if not adding to one another, at least merge directly to each other, like in Revit for example?\n}}\n\nRemember this was an issue for me to, and probably is for most people trying to learn FreeCAD.\n\nNeeds to be put somewhere in tutorial. Among others, have a look at Regis Snapping\n\nThe [Snap Tools](Draft_Snap.md) are one of Your best friends. However, remember that having all set will in most cases result in an illogical condition. Only leave on the snaps You want.\n\nIf You have struggled with this when learning FreeCAD, take some comfort in that You are not the only one\n\n### Customizing Arch WorkBench \n\nThis is an example \\\"customized\\\" Arch workbench:\n\n\n\nIn this tutorial, we will model the house in 3D, based on the 2D drawings we will download from the net, and extract from it 2D documents, such as plans, elevations and sections.\n\n### Abbreviations\n\nFIXME Comment\n\nmake list of common abbreviations\n\n[One compilation of Acronyms can be found here](https://www.dummies.com/programming/big-data/your-bim-acronym-guide-what-all-those-letters-mean/)\n\nBEP \\| BIM Execution Plan\n\n### References & Links \n\nReference any input from users or outside sources\n\n### FCStd file \n\n\\[File_Format_FCStd\\| File FormatFCStd\\]\n\n### Command line \n\ncommand line interface\n\nYou can create a log file with the additional commandline parameter\n\nCode: Select all\n\n\\--log-file arg\n\n### Document Draft Snippets \n\n### Customizing Arch WorkBench \n\n[wiki styling](WikiPages.md)\n\n### VDC\n\nFIXME Want to fit VDC in somewhere\n\nVirtual Design and Construction seems to be the next Buzz word after BIM.\n\n[virtual Design and Construction in Skanska Norway](https://www.bi.no/globalassets/forskning/senter-for-byggenaringen/lc-arrangement/lcno-seminar-samlet-170614-pdf.pdf)\n\n## Annex B \n\n### FreeCAD ifcOpenShell \n\n- [Voids](https://forum.freecadweb.org/viewtopic.php?t=25491)\n- [IFC installation](https://forum.freecadweb.org/viewtopic.php?f=4&t=12368)\n- [Add extra python lib path to FreeCAD system path](https://forum.freecadweb.org/viewtopic.php?t=16332)\n\n- [Download IfcOpenShell](http://ifcopenshell.org/python.html)\n\n\n{{Code|\nimport sys\n for p in sys.path:\n print(p)\n}}\n\n#### ifcOpenShell from ppa \n\n\n{{Code|\nsudo add-apt-repository ppa:freecad-community/ppa\nsudo apt-get update\n}}\n\n#### ifcOpenShell python unicode \n\n\n{{Code|\nls -l /usr/lib/python2.7/sitecustomize.py\nlrwxrwxrwx 1 root root 31 sep. 4 07:46 /usr/lib/python2.7/sitecustomize.py -> /etc/python2.7/sitecustomize.py\n}}\n\n#### Build OCE \n\nNo success so far\n\n[GitHub ifcopenshell](https://github.com/IfcOpenShell/IfcOpenShell)\n\n\n{{Code|\nsudo apt-get install git cmake gcc g++ libboost-all-dev libicu-dev\n}}\n\ncompile OCE yourself (note that the build takes a long time):\n\n\n{{Code|\n$ sudo apt-get install libftgl-dev libtbb2 libtbb-dev libgl1-mesa-dev libfreetype6-dev\n$ git clone https://github.com/tpaviot/oce.git\n$ cd oce\n$ mkdir build && cd build\n$ cmake ..\n$ make -j\n$ sudo make install\n}}\n\n### IFC openshell Linux \n\n#### Freecad syspath \n\n\n{{Code|\nimport sys\n>>> for p in sys.path:\n... print(p)\n... \n/usr/lib/freecad-daily/Mod/Drawing\n/usr/lib/freecad-daily/Mod/Inspection\n/usr/lib/freecad-daily/Mod/Idf\n/usr/lib/freecad-daily/Mod/AddonManager\n/usr/lib/freecad-daily/Mod/Robot\n/usr/lib/freecad-daily/Mod/Arch\n/usr/lib/freecad-daily/Mod/Part\n/usr/lib/freecad-daily/Mod/Path\n/usr/lib/freecad-daily/Mod/Mesh\n/usr/lib/freecad-daily/Mod/Raytracing\n/usr/lib/freecad-daily/Mod/Material\n/usr/lib/freecad-daily/Mod/Plot\n/usr/lib/freecad-daily/Mod/Complete\n/usr/lib/freecad-daily/Mod/Tux\n/usr/lib/freecad-daily/Mod/TechDraw\n/usr/lib/freecad-daily/Mod/Import\n/usr/lib/freecad-daily/Mod/Test\n/usr/lib/freecad-daily/Mod/Draft\n/usr/lib/freecad-daily/Mod/Points\n/usr/lib/freecad-daily/Mod/Start\n/usr/lib/freecad-daily/Mod/Spreadsheet\n/usr/lib/freecad-daily/Mod/Fem\n/usr/lib/freecad-daily/Mod/OpenSCAD\n/usr/lib/freecad-daily/Mod/MeshPart\n/usr/lib/freecad-daily/Mod/Web\n/usr/lib/freecad-daily/Mod/Ship\n/usr/lib/freecad-daily/Mod/Measure\n/usr/lib/freecad-daily/Mod/PartDesign\n/usr/lib/freecad-daily/Mod/Surface\n/usr/lib/freecad-daily/Mod/Image\n/usr/lib/freecad-daily/Mod/Show\n/usr/lib/freecad-daily/Mod/ReverseEngineering\n/usr/lib/freecad-daily/Mod/Sketcher\n/usr/lib/freecad-daily/Mod\n/usr/lib/freecad-daily/lib64\n/usr/lib/freecad-daily/lib\n/usr/lib/freecad-daily/Ext\n\n/home/peter\n/usr/lib/python2.7\n/usr/lib/python2.7/plat-x86_64-linux-gnu\n/usr/lib/python2.7/lib-tk\n/usr/lib/python2.7/lib-old\n/usr/lib/python2.7/lib-dynload\n/usr/local/lib/python2.7/dist-packages\n/usr/lib/python2.7/dist-packages\n\n/usr/lib/freecad-daily/Macro\n/usr/lib/freecad/lib\n/home/peter/.FreeCAD/Macro\n/home/peter/.FreeCAD/Macro/WorkFeature/WF_2015.py\n/home/peter/.FreeCAD/Macro/WorkFeature/ParCurve/WF_ObjParCurve_2016.py\n/home/peter/.FreeCAD/Macro/WorkFeature/ParCurve/WF_ObjParCurveEdit_2016.py\n>>> \n}}\n\nadd /usr/lib/python2.7/site-packages\n\n\n{{Code|\nimport sys\nsys.path.append(\"/usr/lib/python2.7/site-packages\")\n}}\n\nFIXME This does not seem to work?\n\n\n{{Code|\npeter@peter-HP-Z400-Workstation:~/.FreeCAD/Macro$ sudo rsync -azv /home/peter/Downloads/ifcopenshell /usr/local/lib/python2.7/site-packages/\n[sudo] password for peter: \nsending incremental file list\nifcopenshell/\nifcopenshell/__init__.py\nifcopenshell/_ifcopenshell_wrapper.so\nifcopenshell/entity_instance.py\nifcopenshell/file.py\nifcopenshell/guid.py\nifcopenshell/ifcopenshell_wrapper.py\nifcopenshell/geom/\nifcopenshell/geom/__init__.py\nifcopenshell/geom/app.py\nifcopenshell/geom/main.py\nifcopenshell/geom/occ_utils.py\n\nsent 19,305,512 bytes received 218 bytes 7,722,292.00 bytes/sec\ntotal size is 49,071,231 speedup is 2.54\n\n}}\n\nEnded up placing ifcopenshell in \\... dist-packages\n\n## Annex B IFC and FreeCAD \n\nThis chapter looks at how FreeCAD entities come across as IFC entities based on using [IfcOpenShell](http://ifcopenshell.org/) as exporter, and following instructions in [Arch](Arch_Workbench.md) and [BIM](BIM_Workbench.md) workbenches\n\nWe start looking at basic objects like Wall and Structure.\n\n### Wall\n\n## Annex D IFC PlusPlus \n\n### Installation\n\nNew try with Ubuntu 18.04 LTS\n\n- [Bernd Hahnebach\\'s](https://forum.freecadweb.org/memberlist.php?mode=viewprofile&u=2069) [Script](https://gist.github.com/berndhahnebach/e4d57634fe7eebbae537bf3da1b1b95a)\n\nDownload **Stretch\\--ifcplusplus.sh** save to Your Home dir.\n\n- Make executeble\n- Open Terminal\n- chmod u+x Stretch\\--ifcplusplus.sh\n- Run the file\n\nError:\n\nSimpleViewerExampled: error while loading shared libraries: libcarved.so: cannot open shared object file: No such file or directory {{Code|\nyorik wrote:\n Thu Aug 30, 2018 6:27 pm\n do you have a libcarved.so together with the SimpleViewerExample executable in Release subfolder? \n}}\n\nTried this script with Ubuntu 16.04 LTS, got all kinds of errors. Mostly Cmake wrong version. See [ifcPlusPlus](https://forum.freecadweb.org/viewtopic.php?f=23&t=30444)\n\n## Annex X \n\nFreecad install directories on [Ubuntu](https://en.wikipedia.org/wiki/Ubuntu_(operating_system)) [Linux](https://en.wikipedia.org/wiki/Linux)\n\nBinary executables\n\n\n{{Code|\n/usr/bin$ ls -l freec*\nlrwxrwxrwx 1 root root 26 aug. 19 21:25 freecad -> ../lib/freecad/bin/FreeCAD\nlrwxrwxrwx 1 root root 29 aug. 19 21:25 freecadcmd -> ../lib/freecad/bin/FreeCADCmd\nlrwxrwxrwx 1 root root 35 aug. 23 04:16 freecadcmd-daily -> ../lib/freecad-daily/bin/FreeCADCmd\nlrwxrwxrwx 1 root root 32 aug. 23 04:16 freecad-daily -> ../lib/freecad-daily/bin/FreeCAD\n-rwxr-xr-x 1 root root 717 aug. 23 01:03 freecad-daily-thumbnailer\n-rwxr-xr-x 1 root root 699 aug. 19 20:29 freecad-thumbnailer\n}}\n\n### Data directories FreeCad \n\n\n{{Code|\n/usr/share$ tree -d ./freecad\n./freecad\n├── examples\n├── Gui\n│ └── Stylesheets\n│ └── images\n└── Mod -> ../../lib/freecad/Mod\n}}\n\nUser Data in {{Code|/Home/User/.FreeCAD}}\n\nseems to be shared with FreeCad-Daily {{Code|\n.FreeCAD\n├── Macro\n├── Macros\n└── Mod\n ├── assembly2\n │ ├── docs\n │ ├── Gui\n │ │ └── Resources\n │ │ ├── icons\n │ │ └── ui\n │ └── tests\n ├── BIM\n │ ├── icons\n │ └── utils\n ├── flamingo\n │ ├── dialogs\n │ ├── examples\n │ ├── icons\n │ ├── shapes\n │ │ ├── ballValves\n │ │ └── butterflyValves\n │ ├── tables\n │ └── tutorials\n ├── FreeCAD_assembly2\n │ ├── docs\n │ ├── Gui\n │ │ └── Resources\n │ │ ├── icons\n │ │ └── ui\n │ └── tests\n └── timber\n └── icons\n\n}}\n\nlink to Mod {{Code|\n/usr/lib$ tree -d ./freecad\n./freecad\n├── bin\n├── Ext\n│ └── freecad\n├── lib\n└── Mod\n ├── AddonManager\n ├── Arch\n │ ├── Dice3DS\n │ ├── Presets\n │ └── Resources\n │ └── icons\n ├── Complete\n │ └── Resources\n │ └── icons\n ├── Draft\n │ └── Resources\n │ └── icons\n ├── Drawing\n │ ├── Resources\n │ │ └── icons\n │ └── Templates\n ├── Fem\n │ ├── femcommands\n │ ├── femguiobjects\n │ ├── feminout\n │ ├── femmesh\n │ ├── femobjects\n │ ├── femresult\n │ ├── femsolver\n │ │ ├── calculix\n │ │ ├── elmer\n │ │ │ └── equations\n │ │ ├── fenics\n │ │ └── z88\n │ ├── femtest\n │ │ └── testfiles\n │ │ ├── ccx\n │ │ ├── elmer\n │ │ └── mesh\n │ ├── femtools\n │ └── Resources\n │ ├── icons\n │ └── ui\n ├── Idf\n │ └── Idflibs\n ├── Image\n │ └── Resources\n │ └── icons\n ├── Import\n ├── Inspection\n │ └── Resources\n │ └── icons\n ├── Material\n │ ├── FluidMaterial\n │ └── StandardMaterial\n │ └── Tools\n ├── Measure\n ├── Mesh\n │ └── Resources\n │ └── icons\n ├── MeshPart\n ├── OpenSCAD\n │ ├── ply\n │ └── Resources\n │ └── icons\n ├── Part\n │ ├── AttachmentEditor\n │ ├── BOPTools\n │ ├── CompoundTools\n │ └── Resources\n │ └── icons\n ├── PartDesign\n │ ├── fcgear\n │ ├── PartDesignTests\n │ ├── Resources\n │ │ └── icons\n │ ├── Scripts\n │ └── WizardShaft\n ├── Path\n │ ├── PathScripts\n │ │ └── post\n │ ├── PathTests\n │ └── Resources\n │ └── icons\n ├── Plot\n │ ├── plotAxes\n │ ├── plotLabels\n │ ├── plotPositions\n │ ├── plotSave\n │ ├── plotSeries\n │ ├── plotUtils\n │ └── resources\n │ └── icons\n ├── Points\n │ └── Resources\n │ └── icons\n ├── Raytracing\n │ ├── Resources\n │ │ └── icons\n │ └── Templates\n ├── ReverseEngineering\n │ └── Resources\n │ └── icons\n ├── Robot\n │ ├── Lib\n │ │ └── Kuka\n │ └── Resources\n │ └── icons\n ├── Ship\n │ ├── resources\n │ │ ├── examples\n │ │ └── icons\n │ ├── shipAreasCurve\n │ ├── shipCapacityCurve\n │ ├── shipCreateLoadCondition\n │ ├── shipCreateShip\n │ ├── shipCreateTank\n │ ├── shipCreateWeight\n │ ├── shipGZ\n │ ├── shipHydrostatics\n │ ├── shipLoadExample\n │ ├── shipOutlineDraw\n │ └── shipUtils\n ├── Show\n ├── Sketcher\n │ ├── ProfileLib\n │ └── Resources\n │ └── icons\n ├── Spreadsheet\n │ └── Resources\n │ └── icons\n ├── Start\n │ ├── Resources\n │ │ └── icons\n │ └── StartPage\n │ └── images\n ├── Surface\n ├── TechDraw\n │ ├── LineGroup\n │ ├── PAT\n │ ├── Patterns\n │ ├── Resources\n │ │ ├── fonts\n │ │ └── icons\n │ ├── TDTest\n │ └── Templates\n ├── Test\n │ └── Resources\n │ └── icons\n ├── Tux\n └── Web\n └── Resources\n └── icons\n\n}}\n\n### Data directories FreeCad-Daily \n\n\n{{Code|\n/usr/share$ tree -d ./freecad-daily\n./freecad-daily\n├── examples\n├── Gui\n│ └── Stylesheets\n│ └── images_dark-light\n└── Mod\n ├── Arch\n │ ├── Presets\n │ └── Resources\n │ └── icons\n ├── Complete\n │ └── Resources\n │ └── icons\n ├── Draft\n │ └── Resources\n │ └── icons\n ├── Drawing\n │ ├── Resources\n │ │ └── icons\n │ └── Templates\n ├── Fem\n │ └── Resources\n │ └── icons\n ├── Image\n │ └── Resources\n │ └── icons\n ├── Import\n │ └── DxfPlate\n ├── Inspection\n │ └── Resources\n │ └── icons\n ├── Material\n │ ├── FluidMaterial\n │ └── StandardMaterial\n │ └── Tools\n ├── Mesh\n │ └── Resources\n │ └── icons\n ├── OpenSCAD\n │ └── Resources\n │ └── icons\n ├── Part\n │ └── Resources\n │ └── icons\n ├── PartDesign\n │ └── Resources\n │ └── icons\n ├── Path\n │ └── Resources\n │ └── icons\n ├── Plot\n │ └── resources\n │ └── icons\n ├── Points\n │ └── Resources\n │ └── icons\n ├── Raytracing\n │ └── Resources\n │ └── icons\n ├── ReverseEngineering\n │ └── Resources\n │ └── icons\n ├── Robot\n │ ├── Lib\n │ │ └── Kuka\n │ └── Resources\n │ └── icons\n ├── Ship\n │ └── resources\n │ └── icons\n ├── Sketcher\n │ └── Resources\n │ └── icons\n ├── Spreadsheet\n │ └── Resources\n │ └── icons\n ├── Start\n │ ├── Resources\n │ │ └── icons\n │ └── StartPage\n ├── TechDraw\n │ ├── LineGroup\n │ ├── PAT\n │ ├── Patterns\n │ ├── Resources\n │ │ ├── fonts\n │ │ └── icons\n │ └── Templates\n ├── Test\n │ └── Resources\n │ └── icons\n └── Web\n └── Resources\n └── icons\n\n}}\n\nAlso in {{Code|\n/usr/lib$ tree -d ./freecad-daily\n./freecad-daily\n├── bin\n├── Ext\n│ └── freecad\n├── lib\n└── Mod\n ├── AddonManager\n ├── Arch\n │ └── Dice3DS\n ├── Complete\n ├── Draft\n ├── Drawing\n ├── Fem\n │ ├── femcommands\n │ ├── femguiobjects\n │ ├── feminout\n │ ├── femmesh\n │ ├── femobjects\n │ ├── femresult\n │ ├── femsolver\n │ │ ├── calculix\n │ │ ├── elmer\n │ │ │ └── equations\n │ │ ├── fenics\n │ │ └── z88\n │ ├── femtest\n │ │ └── testfiles\n │ │ ├── ccx\n │ │ ├── elmer\n │ │ └── mesh\n │ ├── femtools\n │ └── Resources\n │ └── ui\n ├── Idf\n │ └── Idflibs\n ├── Image\n │ └── ImageTools\n ├── Import\n ├── Inspection\n ├── Material\n ├── Measure\n ├── Mesh\n ├── MeshPart\n ├── OpenSCAD\n │ └── ply\n ├── Part\n │ ├── AttachmentEditor\n │ ├── BOPTools\n │ └── CompoundTools\n ├── PartDesign\n │ ├── fcgear\n │ ├── PartDesignTests\n │ ├── Scripts\n │ └── WizardShaft\n ├── Path\n │ ├── Images\n │ │ ├── Ops\n │ │ └── Tools\n │ ├── PathScripts\n │ │ └── post\n │ └── PathTests\n ├── Plot\n │ ├── plotAxes\n │ ├── plotLabels\n │ ├── plotPositions\n │ ├── plotSave\n │ ├── plotSeries\n │ └── plotUtils\n ├── Points\n ├── Raytracing\n ├── ReverseEngineering\n ├── Robot\n ├── Ship\n │ ├── resources\n │ │ └── examples\n │ ├── shipAreasCurve\n │ ├── shipCapacityCurve\n │ ├── shipCreateLoadCondition\n │ ├── shipCreateShip\n │ ├── shipCreateTank\n │ ├── shipCreateWeight\n │ ├── shipGZ\n │ ├── shipHydrostatics\n │ ├── shipLoadExample\n │ ├── shipOutlineDraw\n │ └── shipUtils\n ├── Show\n ├── Sketcher\n │ └── ProfileLib\n ├── Spreadsheet\n ├── Start\n │ └── StartPage\n ├── Surface\n ├── TechDraw\n │ └── TDTest\n ├── Test\n ├── Tux\n └── Web\n\n\n}}\n\n\n---\n⏵ [documentation index](../README.md) > Sandbox:TutorialArchBIM\n"}
{"id": "freecad-docs:wiki/Scarica.md", "source": "freecad-docs", "repository": "https://github.com/FreeCAD/FreeCAD-documentation", "revision": "0499378a238ce4c77c643b9cc4a03d0947381e45", "path": "wiki/Scarica.md", "url": "https://github.com/FreeCAD/FreeCAD-documentation/blob/0499378a238ce4c77c643b9cc4a03d0947381e45/wiki/Scarica.md", "license": "CC0-1.0", "encoding": "utf-8", "sha256": "1fff90477d2e2225107d76ad5684b83a14f9bd2cba74d83469a0b3d067f3d215", "bytes": 110, "tokens": 49, "text": "# Scarica\n1. REDIRECT [Download/it](Download/it.md)\n\n\n---\n⏵ [documentation index](../README.md) > Scarica\n"}
{"id": "freecad-docs:wiki/SheetMetal_Examples.md", "source": "freecad-docs", "repository": "https://github.com/FreeCAD/FreeCAD-documentation", "revision": "0499378a238ce4c77c643b9cc4a03d0947381e45", "path": "wiki/SheetMetal_Examples.md", "url": "https://github.com/FreeCAD/FreeCAD-documentation/blob/0499378a238ce4c77c643b9cc4a03d0947381e45/wiki/SheetMetal_Examples.md", "license": "CC0-1.0", "encoding": "utf-8", "sha256": "955147489f2d46a902c7a74836d8706744692ab0655a37cac5eb5821cfe75650", "bytes": 29548, "tokens": 10500, "text": "# SheetMetal Examples\n## Introduction\n\nThe
\n
\n*Workflow Hinge:\n**
\n
\n*Workflow Paper Clip:\n**
\n2. Activate the
\n - Set **Mid Plane** to `True`to let the profile extend symmetrically to both sides of the sketch plane.\n - Set **length** to 32 mm.\n - Set **radius** to 2 mm.\n - Set **thickness** to 0.3 mm.\n4. Select the face between the round sections and activate the
\n5. To hide the curled part use the
\n7. Finish the sketch using the
\n9. Use the
\n10. One side is finished. We now need to find a way to mirror the body.\n\n**Potential mirror options:**\n\n- The
\n3. With the body still active, use the
\n4. Activate the
\n5. Done!\n\n**Mirror using a link object:**\n\n1. Select the body from the tree view.\n2. Use the
\n7. Activate the
\n8. Done!\n\n\n
\n
\n*Workflow Omega Clip:\n**
\n
\n*Workflow Hex Bowl:\n**
\n\nWhen a Corner Relief is added (right side) it can be necessary to adjust the value of the **Size** property.\n\n## Pen clip \n\n
\n
\n*Workflow Pen Clip:\n**
\n
\n*Workflow Extend Face Example:\n**
\n
\n*Workflow USB shield contact:\n**
\n\n\n*Selected sketch + \n**
\n\n\n*Edit **length*: Default length → Reduced length**\n\n
\n\n\n*Switch **Mid Plane* from {{False** to `True`: Extrusion in one direction → Symmetric extrusion}}\n\n
\n\n\n*Switch **Reverse* from {{False** to `True`: Default direction → Inverted direction}}\n\n
\n\n\n*Select **Bend Side*: {{value|Outside** (default) → {{value|Inside}} → {{value| Middle}}}}\n\n
\n\n\n*Edit **radius*: Default radius → Enlarged radius.
\n\n\n*Edit **thickness*: Default Thickness → Enlarged thickness**\n\n\n
\n\n\n*Selected edges + \n**
\n\n\n*Switch **invert* from {{FALSE** to `True`:Default flanges (Bend objects) → Inverted flanges}}\n\n
\n\n\n*Edit **angle*:Default angle (90°) → Enlarged angle → Decreased angle**\n\nWe don\\'t have to care about trimming the edges, because **Auto Miter** is activated by default.\nIf deactivated, the result would look like this:\n\n
\n\n\n*Switch **Auto Miter* from {{TRUE** to `False`: Default angle (90°) → Enlarged angle → Decreased angle
\n\n\n*Edit **miterangle1* and {{PropertyData|miterangle2**: No miter (default) → Differently mitered edges, positive angle → Symmetrically mitered edges, negative angles}}\n\nMitering only effects the planar strips, not the bends.\n\n: (It takes the whole edge into account and so cannot be used to chamfer flange edges)\n\nTo display the different choices of **Bend Type** we introduce an auxiliary cuboid that extrudes from the same outline as the blank and has the same height as the Bend object (its flange length).\n\n
\n\n\n*Select **Bend Type*: {{value|Material Outside** (default) → {{value|Material Inside}} → {{value|Thickness Outside}} → {{value|Offset}}}}\n\n- Outside: The bend starts at the selected edge (The whole Bend object lies outside the cuboid).\n- Inside: The outer side of the bend ends on the cuboid surface (The whole Bend object lies inside the cuboid).\n- Thickness Outside: The inner side of the bend ends on the cuboid surface (only the planar strip is protruding from the cuboid surface).\n- Offset: According to the value of **offset** the bend is moved in outward direction from its default position.\n\n: An extension is inserted for positive values (high-lighted strip).\n: Negative values are allowed to move the bend inwards.\n\nIf we don\\'t want to use the whole length of an edge we can use **gap1** and **gap2**.\n\n
\n\n\n*Edit **gap1* and {{PropertyData|gap2**: Default flanges → Flanges with different values for gap1 and gap2}}\n\nIf the length of a gap reaches or extends the value of **min Relief Gap**, a relief will be added to the gap.\nReliefs are controlled by **relief Type**, **reliefd** (relief depth), and **reliefw** (relief width) which are enabled only when a gap value is set.\n\n
\n\n\n*Edit **reliefd* and {{PropertyData|reliefw**: Default values → Relief depth enlarged → Relief depth and width enlarged}}\n\n
\n\n\n*Switch **relief Type* from {{value|Rectangle** to {{value|Round}}: Default rectangular relief → Round relief}}\n\nThe round option will only be applied, if the relief depth is larger than the relief width.\n\nSwitch **Use Relief Factor** from `False` (default) to `True` to set the values of **reliefd** and **reliefw** automatically. Both are set to the object\\'s (inherited) thickness multiplied by the value of **Relief Factor**.\n\n: In this case the round option is useless, since the relief depth is as large as the relief width. (See above)\n\nA new property **Length Spec** (v0.21) enables us to choose how to measure the length of the Bend object:\n\n
\n*Side view of four 120° flanges with default length (10 mm) and different **Length Spec* values:
\n\n\n*Selected edge face and edges + \n**
\n\n\n*3x Selected edge face or edge + \n**
\n\n\n*Edit **gap1* and {{PropertyData|gap2** to reduce the width of the extension.
\n\n\n*A selected sketch lying on the flange to be extended → Resulting extension*\n\nIt is plain to see that it doesn\\'t matter which edge was selected for the Extend object, the shape of the flange is changed wherever sketch geometry protrudes, the new shape can even contain parts that are disconnected from the original flange. Multiple outlines are no problem, but the flange is not cut into.\n\nThis example shows that designers are responsible for their construction and shouldn\\'t rely on the results of their tools, which do not make sense in this case. The Sketch attached to a flange face is problematic as well due to the toponaming problem, but for this a solution is in sight.\n\nBut there are better use cases for this tool involving almost closed shapes such as one of the examples on the [SheetMetal Extrude](SheetMetal_Extrude.md) page:\n\n
\n\n\n*An almost closed profile → The added default extension is fused with the opposite side creating a closed profile (a tube) that is not unfoldable*\n\n
\n\n\n*Link a rectangular sketch to the property **Sketch*: Closed profile → Profile with rectangular extension, still fused**\n\n
\n\n\n*Switch **Use Subtraction* to {{true** to provide a (hardly visible) default gap between the Extension object and the opposite side, then increase **Offset** to widen the gap:
\n\n\n*Cross-section of the bend: The bend line lies on the upper face of the blank (black) with a 10 mm offset from the edge, its position is maked with a pentagon. It also defines the virtual intersection of the blank and the bent wall*\n\n\n
\n\nIf an outline sketch is added it creates **interlocking geometry** to close a profile:\n\n
\n\n\n*Three profiles with outline sketches to add → three results*\n\n## Usage\n\n### Simple Extension \n\n1. Select one or more edge face(s) to be extended.\n2. There are several ways to invoke the command:\n - Press the **
\n\n\n*Three profiles → position of the sketches → results without cut-outs → final results*\n\n### Notes\n\n- A sketch can contain more than one outline.\n\n: After inserting a sketch, at least one of its outlines must at least touch one opposite face or the tool will fail to create any extension or cut-out.\n\n\n: Just one outline touching an opposite face is enough to create extension geometry from all outlines of the sketch.\n\n- Each cut-out will have a cuboid shape, no matter what shape the corresponding outline sketch is.\n\n- Shapes other than rectangles may behave little bit strange and even though the object can be unfolded, the result will not turn out as expected.\n\n
\n\n\n*Three outline sketches and their resulting extensions: separate triangle plate with a rectangular cut-out, circle without clearance → unfold solid is split at an unexpected position *\n\n- In an extension operation it is recommended to leave the property **Refine** set to `True` (default).\n\n- The extension operation with a linked sketch may fail due to coplanar issues if the face on the sketch side and the face on the opposite side are coplanar, but with opposite orientations. A small offset may help in such a case.\n\n## Properties\n\nSee also: [Property editor](Property_editor.md).\n\nA SheetMetal Extend object is derived from a [Part Feature](Part_Feature.md) object or, if it is inside a [PartDesign Body](PartDesign_Body.md), from a [PartDesign Feature](PartDesign_Feature.md) object, and inherits all its properties. It also has the following additional properties:\n\n### Data\n\n\n{{Properties_Title|Parameters}}\n\n- **base Object|LinkSub**: \\\"Base object\\\". Link to the planar face to be extended.\n\n- **gap1|Distance**: \\\"Gap from the left side\\\". Default: {{value|0,00 mm}}.\n\n- **gap2|Distance**: \\\"Gap from the right side\\\". Default: {{value|0,00 mm}}.\n\n- **length|Length**: \\\"Length of Wall\\\". Default: {{value|10,00 mm}}.\n\n\n{{Properties_Title|Parameters Ext.}}\n\n- **Offset|Distance**: \\\"Offset for subtraction\\\". Default: {{value|20,00 µm}}.\n\n- **Refine|Bool**: \\\"Use Refine\\\". Default: `True`.\n\n- **Sketch|Link**: \\\"Wall Sketch\\\".\n\n- **Use Subtraction|Bool**: \\\"Use Subtraction\\\". Default: `False`\n\n\n---\n⏵ [documentation index](../README.md) > [SheetMetal](Category_SheetMetal.md) > [Addons](Category_Addons.md) > [External Command Reference](Category_External%20Command%20Reference.md) > SheetMetal Extrude\n"}
{"id": "freecad-docs:wiki/Ship_TankNew.md", "source": "freecad-docs", "repository": "https://github.com/FreeCAD/FreeCAD-documentation", "revision": "0499378a238ce4c77c643b9cc4a03d0947381e45", "path": "wiki/Ship_TankNew.md", "url": "https://github.com/FreeCAD/FreeCAD-documentation/blob/0499378a238ce4c77c643b9cc4a03d0947381e45/wiki/Ship_TankNew.md", "license": "CC0-1.0", "encoding": "utf-8", "sha256": "4e60d2f6de45e86f560034ce179507f4b2e77d32f006e08bda42c87b9f37cf54", "bytes": 116, "tokens": 55, "text": "# Ship TankNew\n1. REDIRECT [Ship_Tank](Ship_Tank.md)\n\n\n---\n⏵ [documentation index](../README.md) > Ship TankNew\n"}
{"id": "freecad-docs:wiki/Sketcher_CompCreateBSpline.md", "source": "freecad-docs", "repository": "https://github.com/FreeCAD/FreeCAD-documentation", "revision": "0499378a238ce4c77c643b9cc4a03d0947381e45", "path": "wiki/Sketcher_CompCreateBSpline.md", "url": "https://github.com/FreeCAD/FreeCAD-documentation/blob/0499378a238ce4c77c643b9cc4a03d0947381e45/wiki/Sketcher_CompCreateBSpline.md", "license": "CC0-1.0", "encoding": "utf-8", "sha256": "572d190f319866f00697d2cb1c72b6b7c074b2bce34e02dc62e127aec0ca71ca", "bytes": 252, "tokens": 101, "text": "# Sketcher CompCreateBSpline\n1. REDIRECT [Sketcher_Workbench#Sketcher_CompCreateBSpline](Sketcher_Workbench#Sketcher_CompCreateBSpline.md)\n\n\n---\n⏵ [documentation index](../README.md) > [Sketcher](Sketcher_Workbench.md) > Sketcher CompCreateBSpline\n"}
{"id": "freecad-docs:wiki/Sketcher_CompCreateCircle.md", "source": "freecad-docs", "repository": "https://github.com/FreeCAD/FreeCAD-documentation", "revision": "0499378a238ce4c77c643b9cc4a03d0947381e45", "path": "wiki/Sketcher_CompCreateCircle.md", "url": "https://github.com/FreeCAD/FreeCAD-documentation/blob/0499378a238ce4c77c643b9cc4a03d0947381e45/wiki/Sketcher_CompCreateCircle.md", "license": "CC0-1.0", "encoding": "utf-8", "sha256": "a08b0a7fff92e2db00b2deefb55244dc92574af0caa5a5b86e3ef127c62a1d6f", "bytes": 246, "tokens": 99, "text": "# Sketcher CompCreateCircle\n1. REDIRECT [Sketcher_Workbench#Sketcher_CompCreateConic](Sketcher_Workbench#Sketcher_CompCreateConic.md)\n\n\n---\n⏵ [documentation index](../README.md) > [Sketcher](Sketcher_Workbench.md) > Sketcher CompCreateCircle\n"}
{"id": "freecad-docs:wiki/Sketcher_ConstrainHorVer.md", "source": "freecad-docs", "repository": "https://github.com/FreeCAD/FreeCAD-documentation", "revision": "0499378a238ce4c77c643b9cc4a03d0947381e45", "path": "wiki/Sketcher_ConstrainHorVer.md", "url": "https://github.com/FreeCAD/FreeCAD-documentation/blob/0499378a238ce4c77c643b9cc4a03d0947381e45/wiki/Sketcher_ConstrainHorVer.md", "license": "CC0-1.0", "encoding": "utf-8", "sha256": "d2ca2bac23266e7e4114a0ed24d5c4e337cd89db9c373e33c9f4e9c10bad68e1", "bytes": 2970, "tokens": 947, "text": "---\n GuiCommand:\n Name: Sketcher ConstrainHorVer\n MenuLocation: Sketch , Sketcher constraints , Constrain horizontal/vertical\n Workbenches: Sketcher_Workbench\n Shortcut: **A**\n Version: 1.0\n SeeAlso: Sketcher_ConstrainHorizontal, Sketcher_ConstrainVertical\n---\n\n# Sketcher ConstrainHorVer\n\n## Description\n\nThe
\n\nThe two edges are made perpendicular at their (virtual) intersection. If one of the edges is a [conic](Sketcher_Workbench#Sketcher_CompCreateConic.md), a [Point object](Sketcher_CreatePoint.md) that has a [Point on object constraint](Sketcher_ConstrainPointOnObject.md) with both (extended) edges is added.\n\n### Between two endpoints \n\n
\n\nThe endpoints are made coincident, and the edges are made perpendicular at that point.\n\n### Between edge and endpoint \n\n
\n\nThe endpoint of one edge is constrained to lie on the other edge, and the edges are made perpendicular at that point.\n\n### Between two edges at point \n\n
\n\nThe two edges are made perpendicular at a given point. The point can be any point, e.g. the center of a circle, the endpoint of an edge, or the origin, it can belong to one of the edges, and it can also be a [Point object](Sketcher_CreatePoint.md). If required [Point on object constraint(s)](Sketcher_ConstrainPointOnObject.md) are added to ensure the point lies on both (extended) edges. These additional constraints are called [helper constraints](Sketcher_helper_constraint.md).\n\n## Scripting\n\nPerpendicular Constraint can be created from [macros](Macros.md) and from the python console by using the following: \n```python\n# direct perpendicularity\nSketch.addConstraint(Sketcher.Constraint('Perpendicular',icurve1,icurve2))\n\n# point-to-point perpendicularity\nSketch.addConstraint(Sketcher.Constraint('Perpendicular',icurve1,pointpos1,icurve2,pointpos2))\n\n# point-to-curve perpendicularity\nSketch.addConstraint(Sketcher.Constraint('Perpendicular',icurve1,pointpos1,icurve2))\n\n# perpendicular-via-point (plain constraint, helpers are not added automatically)\nSketch.addConstraint(Sketcher.Constraint('PerpendicularViaPoint',icurve1,icurve2,geoidpoint,pointpos)) \n``` where:\n\n - `Sketch` is a sketch object\n\n - `icurve1`, `icurve2` are two integers identifying the curves to be made perpendicular. The integers are indexes in the sketch (the value, returned by `Sketch.addGeometry`).\n\n - `pointpos1`, `pointpos2` should be `1` for start point and `2` for end point.\n\n - `geoidpoint` and `pointpos` in PerpendicularViaPoint are the indexes specifying the point of perpendicularity.\n\nThe [Sketcher scripting](Sketcher_scripting.md) page explains the values which can be used for `icurve1`, `icurve2`, `pointpos1`, `pointpos2` and `geoidpoint`, and contains further examples on how to create constraints from Python scripts.\n\n\n---\n⏵ [documentation index](../README.md) > [Sketcher](Sketcher_Workbench.md) > Sketcher ConstrainPerpendicular\n"}
{"id": "freecad-docs:wiki/Sketcher_ConstrainRadius.md", "source": "freecad-docs", "repository": "https://github.com/FreeCAD/FreeCAD-documentation", "revision": "0499378a238ce4c77c643b9cc4a03d0947381e45", "path": "wiki/Sketcher_ConstrainRadius.md", "url": "https://github.com/FreeCAD/FreeCAD-documentation/blob/0499378a238ce4c77c643b9cc4a03d0947381e45/wiki/Sketcher_ConstrainRadius.md", "license": "CC0-1.0", "encoding": "utf-8", "sha256": "9b485aa452d82c2752dfc9525ac4b88a016e13a99690ad7aa5507ad2d08a1a2f", "bytes": 2440, "tokens": 839, "text": "---\n GuiCommand:\n Name: Sketcher ConstrainRadius\n MenuLocation: Sketch , Sketcher constraints , Constrain radius\n Workbenches: Sketcher_Workbench\n Shortcut: **K** **R**\n SeeAlso: Sketcher_ConstrainRadiam, Sketcher_ConstrainDiameter\n---\n\n# Sketcher ConstrainRadius\n\n## Description\n\nThe
\n*Unconstrained rectangular sketch.*\n\n: 3.2. Select one horizontal line, and press **[
\n*Left: datum constraints for the sides. Right: additional datum constraints for the interior distances.*\n\nLooking at the **Constraints** section in the [task panel](task_panel.md), we see that the constraints are too many; they also clutter the view of the sketch. These constraints are also computationally intensive for the solver; while this is not an issue with a simple shape, it can become one with more complex shapes.\n\n## A better way: datum and geometric constraints \n\n4\\. We will draw the same square fully constrained, and centered at the origin. When you create the new sketch, make sure the **Auto constraints** option is disabled.\n\n: 4.1. Click on **
\n*Geometrical horizontal and vertical constraints.*\n\n: 4.6. Select one horizontal line, and press **[
\n*Left: datum constraints for only two sides. Right: additional datum constraints for only two interior distances.*\n\nThis is a better constrained sketch than the first one. The horizontal and vertical geometric constraints allow us to use fewer datum constraints, so our sketch looks less cluttered.\n\n## Optimum scheme: mostly geometric constraints \n\n5\\. We will draw the same square fully constrained, and centered at the origin. When you create the new sketch, make sure the **Auto constraints** option is disabled.\n\n: 5.1. Click on **
\n*Geometrical horizontal and vertical constraints.*\n\n: 5.6. Select one bottom corner point (a), then the top corner point that is diagonally opposite, and then the origin of the sketch; then press **[
\n*Left: symmetric constraint for only two corner points. Right: additional equal length distances for only two adjacent sides.*\n\n: 5.8. Select one horizontal line, and press **[
\n*All geometric constraints applied, and a single datum constraint for a side.*\n\nThis is the best way to constrain this sketch, as we only used one datum (dimensional) constraint.\n\n## Additional resources \n\n- [Basic Sketcher Tutorial](Basic_Sketcher_Tutorial.md)\n- [Sketcher Lecture](Sketcher_Lecture.md)\n- [Sketcher Tutorial](Sketcher_Tutorial.md)\n\n {{Sketcher Tools navi}}\n\n\n---\n⏵ [documentation index](../README.md) > [Sketcher](Sketcher_Workbench.md) > Sketcher Micro Tutorial - Constraint Practices\n"}
{"id": "freecad-docs:wiki/Sketcher_NewSketch.md", "source": "freecad-docs", "repository": "https://github.com/FreeCAD/FreeCAD-documentation", "revision": "0499378a238ce4c77c643b9cc4a03d0947381e45", "path": "wiki/Sketcher_NewSketch.md", "url": "https://github.com/FreeCAD/FreeCAD-documentation/blob/0499378a238ce4c77c643b9cc4a03d0947381e45/wiki/Sketcher_NewSketch.md", "license": "CC0-1.0", "encoding": "utf-8", "sha256": "396a3f9db076ce61c1cddbee144d663a72d8eec14a755529aa1dd021b7aabb4d", "bytes": 2836, "tokens": 933, "text": "---\n GuiCommand:\n Name: Sketcher NewSketch\n MenuLocation: Sketch , Create sketch\n Workbenches: Sketcher_Workbench\n SeeAlso: PartDesign_NewSketch, Sketcher_MapSketch, Sketcher_ReorientSketch\n---\n\n# Sketcher NewSketch\n\n## Description\n\nThe
\n\n1. The Addon manager provides two view layouts: \\\"Condensed\\\" and \\\"Expanded\\\". In \\\"Condensed\\\" view, each addon takes a single line, and its description is truncated to fit the available space. \\\"Expanded\\\" shows additional details, including more of the description text as well as maintainer information, more installation details, etc.\n2. Three different types of addons are supported: [workbenches](external_workbenches.md), [macros](macros.md), and [preference packs](Preference_Packs.md). You can choose to show just one type, or all of them in a single list.\n3. The list can be limited to show just installed packages, just packages with available updates, or just packages that are not yet installed.\n4. The list can be filtered, searching for a keyword in the title, description, and tags (description and tags must be specified by the addon developer in their addon\\'s metadata). The filter can even be a regular expression, for fine-grained control of the exact search term.\n5. The expanded view shows available version information, description, maintainer information, and installation version information, for packages that provide a [package metadata](Package_Metadata.md) file (or for macros with embedded metadata).\n6. Addon data is cached locally, with a variable cache update frequency set in the user preferences.\n7. At any time you can choose to manually update your local cache to see the latest updates available for each addon.\n8. Update checks may be set up to be automatic, or done manually via a button click (configured in user preferences). If GitPython and git are installed on your system then update information is fetched using git. If not, then update information is obtained from any present metadata file.\n\nClicking on an addon in this view brings up the addon\\'s Details page:\n\n
\n\nThe details page shows buttons allowing installing, uninstalling, updating, and temporarily disabling an addon. For installed addons it lists the currently installed version and the installation date, and whether that is the most recent version available. Below is an embedded web browser window showing the addon\\'s README page (for workbenches and preference packs), or Wiki page (for macros).\n\n## Preferences\n\nThe preferences for the Addon manager can be found in the [Preferences Editor](Preferences_Editor#Addon_Manager.md). (v0.20) \n\n## Sorting by score \n\n\n(v1.0) \n\nThe Addon Manager supports sorting by a number of different criteria. Most of these are downloaded directly from FreeCAD\\'s servers (which caches them from GitHub and the FreeCAD Wiki) but one, \\\"Score,\\\" is not provided by FreeCAD at all, and only appears as an option if the Score Source URL setting is provided in the Preferences.\n\nThe Score Source URL is a path to a remote JSON-formatted document listing addons and a \\\"score\\\" of some kind. Score can be calculated in any way the data provider likes, but should be an integer value, with higher scores being \\\"better\\\" in some sense. Any addon not listed is assigned a score of zero internally. The format of the file is a single JSON dictionary where the key is the addon URL (for workbenches and preference packs) or the name of the macro (for macros). See [this data source](https://gist.githubusercontent.com/chennes/e8f60e80f16e6ffbd057dd47ca36ad2a/raw/7b118cca8e84444c3379919bbd744b99e6ef6711/addon_score_for_testing.json) for an example (note the score there is simply the length of the addon\\'s description, and is intended only for testing and demonstration purposes).\n\n## Notes\n\n- The use of addons is not restricted to the FreeCAD version they were installed from. You will also be able to use them in any other FreeCAD version, supported by the addon, that you may have on your system.\n- The addons available in the Addon manager are not part of the official FreeCAD program and are not supported by the core FreeCAD development team. You should read the provided information carefully to make sure you know what you are installing.\n- Bug reports and feature requests should be made directly to the creator of the addon by visiting the indicated website. Many addon developers are regular users of the [FreeCAD forum](https://forum.freecadweb.org), and can also be contacted there.\n- If the [GitPython](https://github.com/gitpython-developers/GitPython) package is installed on your computer the Addon manager will use it, making downloads faster.\n- You can also install addons manually. See [How to install additional workbenches](How_to_install_additional_workbenches.md) and [How to install macros](How_to_install_macros.md).\n\n## Information for addon developers \n\nSee [Addon](Addon#Information_for_developers.md).\n\n## Scripting\n\n\n(v0.21) \n\nSome features of the Addon manager are designed for access via FreeCAD\\'s Python API. In particular an addon can be installed, updated, and removed via the Python interface. Most uses of this API require you to create an object with at least three attributes: {{Incode|name}}, {{Incode|branch}} and {{Incode|url}}. For example:\n\n \n```python\nclass MyAddonClass:\n def __init__(self):\n self.name = \"TestAddon\"\n self.url = \"https://github.com/Me/MyTestAddon\"\n self.branch = \"main\"\nmy_addon = MyAddonClass()\n```\n\nYour object {{Incode|my_addon}} is now ready for use with the Addon manager API.\n\n### Commandline (non-GUI) use \n\nIf your code needs to install or update an addon synchronously (e.g. without a GUI) the code can be very simple:\n\n \n```python\nfrom addonmanager_installer import AddonInstaller\ninstaller = AddonInstaller(my_addon)\ninstaller.run()\n```\n\nNote that this code blocks until complete, so you shouldn\\'t run it on the main GUI thread. To the Addon manager, \\\"install\\\" and \\\"update\\\" are the same call: if this addon is already installed, and git is available, it will be updated via \\\"git pull\\\". If it is not installed, or was installed via a non-git installation method, it is downloaded from scratch (using git if available).\n\nTo uninstall, use:\n\n \n```python\nfrom addonmanager_uninstaller import AddonUninstaller\nuninstaller = AddonUninstaller(my_addon)\nuninstaller.run()\n```\n\n### GUI use \n\nIf you plan on your code running in a GUI, or supporting running in the full version of FreeCAD, it\\'s best to run your installation in a separate non-GUI thread, so the GUI remains responsive. To do this, first check to see if the GUI is running, and if it is, spawn a {{Incode|QThread}} (don\\'t try to spawn a {{Incode|QThread}} if the GUI is not up: they require an active event loop to function).\n\n \n```python\nfrom PySide import QtCore\nfrom addonmanager_installer import AddonInstaller\n\nworker_thread = QtCore.QThread()\ninstaller = AddonInstaller(my_addon)\ninstaller.moveToThread(worker_thread)\ninstaller.success.connect(installation_succeeded)\ninstaller.failure.connect(installation_failed)\ninstaller.finished.connect(worker_thread.quit)\nworker_thread.started.connect(installer.run)\nworker_thread.start() # Returns immediately\n```\n\nThen define the functions {{Incode|installation_succeeded}} and {{Incode|installation_failed}} to be run in each case. For uninstallation you can use the same technique, though it is usually much faster and will not block the GUI for very long, so in general it\\'s safe to use the uninstaller directly, as shown above.\n\n\n---\n⏵ [documentation index](../README.md) > Std AddonMgr\n"}
{"id": "freecad-docs:wiki/Std_BoxSelection.md", "source": "freecad-docs", "repository": "https://github.com/FreeCAD/FreeCAD-documentation", "revision": "0499378a238ce4c77c643b9cc4a03d0947381e45", "path": "wiki/Std_BoxSelection.md", "url": "https://github.com/FreeCAD/FreeCAD-documentation/blob/0499378a238ce4c77c643b9cc4a03d0947381e45/wiki/Std_BoxSelection.md", "license": "CC0-1.0", "encoding": "utf-8", "sha256": "9c4731964fbd054ebb342e3ae06271e2b54368d39f08175990a5145ac53e1fde", "bytes": 1174, "tokens": 359, "text": "---\n GuiCommand:\n Name: Std BoxSelection\n MenuLocation: Edit , Box selection\n Workbenches: All\n Shortcut: **Shift**+**B**\n SeeAlso: Std_BoxElementSelection, Std_SelectAll\n---\n\n# Std BoxSelection\n\n## Description\n\nThe **Std BoxSelection** command selects objects from a user defined rectangular area, a box, in the [3D view](3D_view.md).\n\n## Usage\n\n1. There are several ways to invoke the command:\n - Select the **Edit →
\n\n\n*Left: control edges (transversal sections). Right: surface produced from these edges.*\n\n## Usage\n\n1. Make sure you have at least two edges or curves in space. For example, these can be created with tools of the
\n\n## Scripting\n\n\n**See also:**\n\n[FreeCAD Scripting Basics](FreeCAD_Scripting_Basics.md).\n\nThe Surface Sections tool can be used in [macros](Macros.md) and from the [Python](Python.md) console by adding the `Surface::Sections` object.\n\n- The edges to be used to define the surface must be assigned as a [LinkSubList](FeaturePython_Custom_Properties#App:_PropertyLinkSubList.md) to the `NSections` property of the object.\n- All objects with edges need to be computed before they can be used as input for the properties of the Sections object.\n\n \n```python\nimport FreeCAD as App\nimport Draft\n\ndoc = App.newDocument()\n\npl1 = App.Placement()\nobj1 = Draft.make_circle(50, placement=pl1, face=False, startangle=0, endangle=180)\n\npl2 = App.Placement(App.Vector(0, 0, 25), App.Rotation())\nobj2 = Draft.make_circle(30, placement=pl2, face=False, startangle=0, endangle=180)\n\npoints3 = [App.Vector(18, -10, 50),\n App.Vector(12, 10, 50),\n App.Vector(-12, 10, 50),\n App.Vector(-18, -10, 50)]\nobj3 = Draft.make_bspline(points3)\n\npoints4 = [App.Vector(15, -20, 100),\n App.Vector(0, 6, 100),\n App.Vector(-15, -20, 100)]\nobj4 = Draft.make_bspline(points4)\ndoc.recompute()\n\nsurf = doc.addObject(\"Surface::Sections\", \"Surface\")\nsurf.NSections = [(obj1, \"Edge1\"),\n (obj2, \"Edge1\"),\n (obj3, \"Edge1\"),\n (obj4, \"Edge1\")]\ndoc.recompute()\n```\n\n\n {{Surface Tools navi}}\n\n\n---\n⏵ [documentation index](../README.md) > [Surface](Surface_Workbench.md) > Surface Sections\n"}
{"id": "freecad-docs:wiki/Talk;Reqrefusion.wikitext.md", "source": "freecad-docs", "repository": "https://github.com/FreeCAD/FreeCAD-documentation", "revision": "0499378a238ce4c77c643b9cc4a03d0947381e45", "path": "wiki/Talk;Reqrefusion.wikitext.md", "url": "https://github.com/FreeCAD/FreeCAD-documentation/blob/0499378a238ce4c77c643b9cc4a03d0947381e45/wiki/Talk;Reqrefusion.wikitext.md", "license": "CC0-1.0", "encoding": "utf-8", "sha256": "0f861318a467f0b31d45decdba8bc5dad214cc168b5d5ba35de8530789b21979", "bytes": 104, "tokens": 41, "text": "# Talk;Reqrefusion.wikitext\n\n\n---\n⏵ [documentation index](../README.md) > Talk;Reqrefusion.wikitext\n"}
{"id": "freecad-docs:wiki/TechDraw_ArchView.md", "source": "freecad-docs", "repository": "https://github.com/FreeCAD/FreeCAD-documentation", "revision": "0499378a238ce4c77c643b9cc4a03d0947381e45", "path": "wiki/TechDraw_ArchView.md", "url": "https://github.com/FreeCAD/FreeCAD-documentation/blob/0499378a238ce4c77c643b9cc4a03d0947381e45/wiki/TechDraw_ArchView.md", "license": "CC0-1.0", "encoding": "utf-8", "sha256": "bd8ac6c68b042bc9e46bef69ae6bbb02438e9c625756f0f69b02ab6d689cedbc", "bytes": 5208, "tokens": 1621, "text": "---\n GuiCommand:\n Name: TechDraw ArchView\n MenuLocation: TechDraw , Views From Other Workbenches , Insert BIM Workbench Object\n Workbenches: TechDraw_Workbench, BIM_Workbench\n SeeAlso: Arch_SectionPlane\n---\n\n# TechDraw ArchView\n\n## Description\n\nThe **TechDraw ArchView** tool inserts an Arch View, a view of an
\n\n## Usage\n\n1. Select an Arch section plane in the [3D view](3D_view.md) or [Tree view](Tree_view.md).\n2. If there are multiple drawing pages in the document: optionally add the desired page to the selection by selecting it in the [Tree view](Tree_view.md).\n3. Select the **TechDraw → Views From Other Workbenches →
\n*On the right the evenly spaced vertical dimensions*\n\n## Usage\n\n1. Optionally specify the cascade spacing with the
\n
\n*Sectioning an already placed view, which shows the internal holes and a hatched cut surface.
\n\n\n {{TechDraw_Tools_navi}}\n\n\n---\n⏵ [documentation index](../README.md) > [TechDraw](TechDraw_Workbench.md) > TechDraw SectionView\n"}
{"id": "freecad-docs:wiki/Video_tutorials_for_architectural_design.md", "source": "freecad-docs", "repository": "https://github.com/FreeCAD/FreeCAD-documentation", "revision": "0499378a238ce4c77c643b9cc4a03d0947381e45", "path": "wiki/Video_tutorials_for_architectural_design.md", "url": "https://github.com/FreeCAD/FreeCAD-documentation/blob/0499378a238ce4c77c643b9cc4a03d0947381e45/wiki/Video_tutorials_for_architectural_design.md", "license": "CC0-1.0", "encoding": "utf-8", "sha256": "289fe2c7cc107c733bdaec39f2188b413d3d65877bf711eccdde0fa21dda1409", "bytes": 8564, "tokens": 2935, "text": "# Video tutorials for architectural design\n**Please pay attention to the version of FreeCAD used in the tutorial. If a tutorial uses an older version of the program, the general modelling process may still work but some tools may have changed in newer releases. Do not add videos made with version 0.16 or older, as these releases are considered obsolete.**\n\n## Introduction\n\nThe tutorials listed here are those that deal with designing rooms, houses, and other buildings which interesting for architects and civil engineers. For other topics, see the general page [video tutorials](video_tutorials.md).\n\nVisit [tutorials](tutorials.md) for high quality written tutorials. A complete, unsorted list of tutorials can be found in [:Category:Tutorials](:Category_Tutorials.md).\n\n## Architectural design \n\nVideos that go through modeling of rooms, houses, office buildings, and similar structures, and drawing floor plans, using workbenches such as
\n\nFreeCAD is commonly known for its steep learning curve which stems from an overwhelming amount of possibilities available to the beginner. This book simplifies the use of FreeCAD for you by equipping you with an easy workflow, while giving context to the functions you need. You will learn to create fun projects, design helpful gadgets for your house or even get on an adventure and design your own products. This book strives to condense the knowledge from beginner courses into a tangible guide that anyone can pick up and learn how to create 3D designs with FreeCAD. You will overcome your frustration with breaking models or not knowing how to recover them and make you confident enough to be able to create your own designs from beginning to end - from the first idea to the 3D printable model.\n\nYou will learn the basic concepts of solid 3D modeling and how to apply those using FreeCAD. You will then build an entire project from scratch and turn an idea to individual 3D CAD parts with Part Design and Sketcher, assemble all parts digitally with A2Plus, prepare and export the 3D CAD models for 3D printing. You will also learn how to share your models using fcprint.\n\nBy the end of this book, you will be able to design your own little 3D printable gadgets that you have dreamt of and share those with your friends and the entire world.\n\n**
\n\nFreeCAD is the number one free software 3D design program, and this PDF guide is the best way to get started with it. We'll take you from absolute beginnner to advanced user, going from the basics of drawing a line and making it 3D all the way to parametric design, importing objects from photographs, designing for sheet metal, and loads more.\n\nBecause FreeCAD is free software, its users can add to it, writing extensions to the software to suit their needs. These add-ons, known as workbenches, cover a range of uses, including PCB design, pipes, timber-framing, architectural design... the list of practical use cases goes on and on. So, whatever you're interested in building, you'll find a FreeCAD workbench for it.\n\n**
\n\nDo you want to start using a free and open-source software to work in your CAD related projects? Meet FreeCAD and their incredible array of options to create both technical drawings and 3D models for architecture, engineering, and more.\n\nIn this book, you will learn how to use FreeCAD to create traditional technical drawings for architecture. As an example of project development, you will learn how to draw a full featured floor plan using FreeCAD. We will add to that floor plan all traditional elements from an architectural drawing like furniture, dimension lines, text annotations, and much more.\n\nIn the final chapters, we can take this floor plan design and export it using either the DXF format or as a PDF. You will be able to add the floor plan to page layout for print featuring a title block from a template in FreeCAD.\n\nYou don\\'t need any previous experiences with FreeCAD, since we will start from the beginning. From the user interface basics to drawing a floor plan!\n\n**
\n\nThis book introduces novice and intermediate users to the most frequently used tools and techniques in FreeCAD. Part one introduces new users to FreeCAD concepts and User Interface. Part two teaches various modeling techniques with a handful of examples. Part three uses the examples to explore FreeCAD\\'s ability to generate: Technical Drawings, Gcode for CNC machines, Ray-traced images and more.\n\n**
\n\nFreeCAD is a general purpose platform for CAD development. It can be extended to use different workbenches to solve different problems. Targeted squarely at the engineering community, FreeCAD is an open source design application built to be extended. Python, the powerful scripting language, is woven deeply into FreeCAD's DNA and gives users unprecedented power to automate and invent.\n\n\\\"FreeCAD \\[How-to\\]\\\" is a lean, fast tour of FreeCAD\\'s major workbenches and design philosophy. The reader will get a hands-on introduction to several modeling techniques and learn how Python makes macro automation and design possible.\n\nFreeCAD allows users to design in a variety of ways; from drawing 2D designs as lines and circles to combining primitive solids into complex 3D shapes. Objects can even be created or modified by code you write in Python. FreeCAD even allows power users to extend the application itself with new dialogs, panels, and scripts. This book will not only show you how to get started using FreeCAD in a traditional GUI mode, but will teach you how to harness its powerful scripting language for more power.\n\n**
\n\n## References\n\n- Author: qingfengxia Qingfeng Xia\n- Home page:
\n\n- or right click on any toolbar.\n\n
\n\n- The Customize window appears.\n\n
\n\n**2.** Make a Macro to a Macro-Tool\n\n- Select the \\\"Macro\\\" tab.\n\n- To add an icon for the provided macro click the Pixmap button (labelled **... **).\n\n
\n\n- Search for an appropriate icon from amongst FreeCAD\\'s existing icons,\n\n\n
\n\n \\[You will get a file selection window, select your custom image file (PNG format, 64x64 pixels)\\]\n\n
\n\n\n
\n\n- The icon you selected is now displayed next to the Pixmap button labelled **...**.\n\n
\n\n- Select the provided macro in line **Macro:** and specify a **Menu text**: (which will appear as the text label in the menu); also fill in the *\\'Tool Tip\\':* (which is the text that will appear when a mouse is over the button on the toolbar); further lines are optional.\n\n- Click the button **Add**.\n\n
\n\n- The button of the macro-tool is now created.\n\n
\n\n**3.** Create a toolbar outside the workbench **Macro** which contains the created **Macro-tool**\n\n- Select the **Toolbars** tab and choose the workbench (for which the toolbar is provided) in the drop down on the right (**Part** in this example).\n\n \\[Since version 0.15 there is a **[
\n\n- In the dropdown on the left select **Macros**.\n\n
\n\n- The macro-tool with its icon appears in the list.\n\n
\n\n- Click the button **New...**\n\n
\n\n- In the window \\\"New Toolbar\\\" enter the name of the provided extra toolbar for the **Part** Workbench and click **OK**\n\n
\n\n- The toolbar is now created.\n\n- To add the created macro-tool to this toolbar, select it in the left window and then click the **Button** with the arrow pointing right.\n\n
\n\n- You have created now a toolbar called \\\"Camera\\\" (with the Macro-tool **Camera** in it)\n\n- Click the **Close** button.\n\n
\n\n- Your new toolbar is now contained in the toolbars\\' right-click menu. Its Icons (in our example only the camera) are visible, if the toolbar is activated (blue checkmark).\n\n
\n\n\n---\n⏵ [documentation index](../README.md) > [Preferences](Category_Preferences.md) > Customize Toolbars/en\n"}
{"id": "freecad-docs:wiki/translations/en/Dodo_Workbench.md", "source": "freecad-docs", "repository": "https://github.com/FreeCAD/FreeCAD-documentation", "revision": "0499378a238ce4c77c643b9cc4a03d0947381e45", "path": "wiki/translations/en/Dodo_Workbench.md", "url": "https://github.com/FreeCAD/FreeCAD-documentation/blob/0499378a238ce4c77c643b9cc4a03d0947381e45/wiki/translations/en/Dodo_Workbench.md", "license": "CC0-1.0", "encoding": "utf-8", "sha256": "67d3d742225a5d517090c1a8ed6adff27cce486aab4c45e8e89fc910a34216a6", "bytes": 150, "tokens": 69, "text": "# Dodo Workbench/en\n1. REDIRECT [Flamingo_Workbench/en](Flamingo_Workbench/en.md)\n\n\n---\n⏵ [documentation index](../README.md) > Dodo Workbench/en\n"}
{"id": "freecad-docs:wiki/translations/en/Draft_Constrain.md", "source": "freecad-docs", "repository": "https://github.com/FreeCAD/FreeCAD-documentation", "revision": "0499378a238ce4c77c643b9cc4a03d0947381e45", "path": "wiki/translations/en/Draft_Constrain.md", "url": "https://github.com/FreeCAD/FreeCAD-documentation/blob/0499378a238ce4c77c643b9cc4a03d0947381e45/wiki/translations/en/Draft_Constrain.md", "license": "CC0-1.0", "encoding": "utf-8", "sha256": "5143a544198269305c97c0a854ec5557b646fb4989f34ccc76a23a974b93741f", "bytes": 2882, "tokens": 895, "text": "# Draft Constrain/en\n## Description\n\nApart from entering coordinates or using [snapping](Draft_Snap.md), there is a feature called constraining to help you draw accurately in the
\n*Mirroring an object*\n\n## Usage\n\nSee also: [Draft Snap](Draft_Snap.md) and [Draft Constrain](Draft_Constrain.md).\n\n1. Optionally select one or more objects.\n2. There are several ways to invoke the command:\n - Press the **
\n*Offsetting a Draft Wire*\n\n## Usage\n\nSee also: [Draft Snap](Draft_Snap.md) and [Draft Constrain](Draft_Constrain.md).\n\n1. Optionally select one object. The object must lie on the current [Draft working plane](Draft_SelectPlane.md).\n2. There are several ways to invoke the command:\n - Press the **