Draft Trimex
Draft Trimex |
Menu location |
---|
Modification → Trimex |
Workbenches |
Draft, Arch |
Default shortcut |
T R |
Introduced in version |
- |
See also |
Part Extrude |
Description
The Trimex tool trims or extends Draft Lines and Draft Wires so that they end at an intersection with another line or edge.
The Trimex tool also extrudes faces created from closed wires. In this respect, it's similar to Part Extrude and to PartDesign Pad.
Wire segment extended, then wire segment trimmed; face extruded into a solid body
Trim/extend
Usage
- Select a line that you wish to trim or extend, or select a face that you wish to extrude.
- Press the Draft Trimex button, or press T then R keys.
- Click a point in the 3D view, or enter a distance and press Enter.
Trimming or extending is decided from the position of the pointer.
- If the line is short it can be extended to approach and cross another line.
- If the line is long and crosses another line, the excess length can be trimmed.
- If the pointer is moved over another object or edge, the trim-extend operation will snap to that object, so that the trimmed or extended line ends exactly at the intersection with the object. This snapping works even without Draft Snap modes active.
A Draft Wire allows you to trim or extend any of its individual segments, which may affect the entire shape of the wire. In this case, the Trimex tool will work on the line segment that is closer to the pointer. Hold the Shift key to keep trimming or extending the current segment independently of the position of the pointer.
When the selected object is a face, the Trimex tool switches to extrude mode. In extrude mode the extrusion is done in the direction of the normal of the face. For example, if a rectangle lies on the XY plane, it should be extruded in the Z direction. To do this correctly, pressing the Z key may be necessary to constrain the distance to the Z direction. Alternatively, hold the Shift key to extrude in any direction that is not the normal.
Options
- Hold Alt to invert the direction of the operation.
- Hold Shift to restrict the operation to the current segment.
Example to explain the options: the left edge or the bottom edge of the U-shaped wire was extended
The following solutions assume that all Draft Snaps are turned off.
- The arc was clicked near the bottom left corner of the wire. The longest part of the wire was preserved. This is the default behavior.
- Alt was held down while the arc was clicked near the bottom left corner of the wire.
- Y was pressed, and while hovering over the left edge Shift was held down and then the arc was clicked. Pressing Y is only required for edges that are more or less vertical.
Extrude
Options
- Hold Shift to extrude in a direction that is not parallel to the normal of the face.
Scripting
See also: Autogenerated API documentation and FreeCAD Scripting Basics.
There is no Python method to trim objects. 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
isTrue
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()
- Drafting: Line, Polyline, Fillet, Arc, Arc by 3 points, Circle, Ellipse, Rectangle, Polygon, B-spline, Cubic Bézier curve, Bézier curve, Point, Facebinder, ShapeString, Hatch
- Annotation: Text, Dimension, Label, Annotation styles, Annotation scale
- Modification: Move, Rotate, Scale, Mirror, Offset, Trimex, Stretch, Clone, Array, Polar array, Circular array, Path array, Path link array, Point array, Point link array, Edit, Subelement highlight, Join, Split, Upgrade, Downgrade, Wire to B-spline, Draft to sketch, Set slope, Flip dimension, Shape 2D view
- Draft Tray: Select plane, Set style, Toggle construction mode, AutoGroup
- Snapping: Snap lock, Snap endpoint, Snap midpoint, Snap center, Snap angle, Snap intersection, Snap perpendicular, Snap extension, Snap parallel, Snap special, Snap near, Snap ortho, Snap grid, Snap working plane, Snap dimensions, Toggle grid
- Miscellaneous: Apply current style, Layer, Manage layers, Add a new named group, Move to group, Select group, Add to construction group, Toggle normal/wireframe display, Create working plane proxy, Heal, Show snap toolbar
- Additional: Constraining, Pattern, Preferences, Import Export Preferences, DXF/DWG, SVG, OCA, DAT
- Context menu:
- Layer container: Merge layer duplicates, Add new layer
- Layer: Activate this layer, Select layer contents
- Text: Open hyperlinks
- Wire: Flatten
- Working plane proxy: Write camera position, Write objects state
- Getting started
- Installation: Download, Windows, Linux, Mac, Additional components, Docker, AppImage, Ubuntu Snap
- Basics: About FreeCAD, Interface, Mouse navigation, Selection methods, Object name, Preferences, Workbenches, Document structure, Properties, Help FreeCAD, Donate
- Help: Tutorials, Video tutorials
- Workbenches: Std Base, Assembly, BIM, CAM, Draft, FEM, Inspection, Mesh, OpenSCAD, Part, PartDesign, Points, Reverse Engineering, Robot, Sketcher, Spreadsheet, Surface, TechDraw, Test Framework
- Hubs: User hub, Power users hub, Developer hub