|
|
| Menu location |
|---|
| Modification → ExtrudeFace |
| Workbenches |
| BIM |
| Default shortcut |
| T R |
| Introduced in version |
| 26.3 |
| See also |
| Part Extrude, Draft Trimex |
The BIM ExtrudeFace command extrudes a face, creating a Part Extrude object. It was split out from Draft Trimex into its own command, since face extrusion is a distinct operation from trimming or extending geometry. introduced in 26.3
See also: Draft Snap and Draft Constrain.
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.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()