Jump to content

BIM ExtrudeFace

From FreeCAD Documentation

BIM ExtrudeFace

Menu location
Modify → Extrude Face
Workbenches
BIM
Default shortcut
None
Introduced in version
26.3
See also
Part Extrude, Draft Trimex

Description[edit | edit source]

The BIM ExtrudeFace tool extrudes a face, creating a Part Extrude object. It was split out from Draft Trimex into its own tool, since face extrusion is a distinct operation from trimming or extending geometry. introduced in 26.3

Usage[edit | edit source]

See also: Draft Snap and Draft Constrain.

  1. It can be helpful to first change the Draft working plane so that it is not coplanar with the face you want to extrude.
  2. Optionally select a single face or an object with a single face.
  3. There are several ways to invoke the tool:
    • Press the Extrude Face button.
    • Select the Modifiy → Extrude Face option from the menu.
  4. If you have not yet selected an object or a face: select an object with a single face in the 3D View.
  5. The Extrude Face task panel opens. See Options for more information.
  6. To define the extrusion direction and distance do one of the following:
    • Pick a point in the 3D View that does not lie on the same plane as the face.
    • Make sure the pointer is on the correct side of the face in the 3D View and enter a Distance.

Options[edit | edit source]

  • Distance: the extrusion length. Can be entered numerically or set by moving the pointer in the 3D View.
  • Hold Shift to extrude in a direction that is not parallel to the normal of the face. This modifier key can be changed. See Draft Preferences.

Scripting[edit | edit source]

See also: Autogenerated API documentation and FreeCAD Scripting Basics.

To extrude objects use the extrude method of the Draft module.

extrusion = extrude(obj, vector, solid=False)
  • obj is the object to be extruded.
  • vector is the extrusion direction and distance.
  • If solid is True a solid is created instead of a shell.
  • extrusion is returned with the created object.

Example:

import FreeCAD as App
import Draft

doc = App.newDocument()

rectangle = Draft.make_rectangle(1500, 500)
doc.recompute()

vector = App.Vector(0, 0, 300)
solid = Draft.extrude(rectangle, vector, solid=True)
doc.recompute()