FreeCAD Logo FreeCAD 1.0
  • English Afrikaans Arabic Belarusian Catalan Czech German Greek Spanish Spanish Basque Finnish Filipino French Galician Croatian Hungarian Indonesian Italian Japanese Kabyle Korean Lithuanian Dutch Norwegian Bokmal Polish Portuguese Portuguese Romanian Russian Slovak Slovenian Serbian Swedish Turkish Ukrainian Valencian Vietnamese Chinese Chinese
  • Features
  • Download
  • Blog
  • Documentation
    Documentation index Getting started Users documentation The FreeCAD manual Workbenches documentation Python coding documentation C++ coding documentation Tutorials Frequently asked questions Privacy policy About FreeCAD
  • Contribute
    How to help Sponsor Report a bug Make a pull request Jobs and funding Contribution guidelines Developers handbook Translations
  • Community
    Code of conduct Forum The FPA GitHub GitLab Codeberg Mastodon Matrix IRC IRC via Webchat Gitter Discord Reddit Twitter Facebook LinkedIn Calendar
  • ♥ Donate

Donate

$
SEPA Information
Please set up your SEPA bank transfer to:
Beneficiary: The FreeCAD project association
IBAN: BE04 0019 2896 4531
BIC/SWIFT: GEBABEBBXXX
Bank agency: BNP Paribas Fortis
Address: Rue de la Station 64, 1360 Perwez, Belgium

While Stripe doesn't support monthly donations, you can still become a sponsor! Simply make a one-time donation equivalent to 12 months of support, and you'll gain access to the corresponding sponsoring tier. It's an easy and flexible way to contribute.

If you are not sure or not able to commit to a regular donation, but still want to help the project, you can do a one-time donation, of any amount.

Choose freely the amount you wish to donate one time only.

You can support FreeCAD by sponsoring it as an individual or organization through various platforms. Sponsorship provides a steady income for developers, allowing the FPA to plan ahead and enabling greater investment in FreeCAD. To encourage sponsorship, we offer different tiers, and unless you choose to remain anonymous, your name or company logo will be featured on our website accordingly.

from 1 USD / 1 EUR per month. You will not have your name displayed here, but you will have helped the project a lot anyway. Together, normal sponsors maintain the project on its feet as much as the bigger sponsors.

from 25 USD / 25 EUR per month. Your name or company name is displayed on this page.

from 100 USD / 100 EUR per month. Your name or company name is displayed on this page, with a link to your website, and a one-line description text.

from 200 USD / 200 EUR per month. Your name or company name and logo displayed on this page, with a link to your website and a custom description text. Companies that have helped FreeCAD early on also appear under Gold sponsors.

Instead of donating each month, you might find it more comfortable to make a one-time donation that, when divided by twelve, would give you right to enter a sponsoring tier. Don't hesitate to do so!

Choose freely the amount you wish to donate each month.

Please inform your forum name or twitter handle as a notein your transfer, or reach to us, so we can give you proper credits!

This is an experimental feature. See Enable Experimental Features.

This documentation is not finished. Please help and contribute documentation.

GuiCommand model explains how commands should be documented. Browse Category:UnfinishedDocu to see more incomplete pages like this one. See Category:Command Reference for all commands.

See WikiPages to learn about editing the wiki pages, and go to Help FreeCAD to learn about other ways in which you can contribute.

Probe
Copy
CAM

CAM Shape

Menu location
CAM → Supplemental Commands → Path From Shape TC
Workbenches
CAM
Default shortcut
None
Introduced in version
-
See also
None

Description

The CAM Shape command doesn't match the current CAM workflow. For that reason it's moved to the experimental features.

This tool generates tool-paths from CAM Object edges.

Tool-paths are uncompensated for tool radius. There is no Tool controller associated with the generated tool-paths.

Usage

All edges associated with the 3D Model selection will be included.

  1. Select edges by selecting the entire object from the 3D View or Tree View, or by selecting individual edges, or by Faces from the 3D View.
  2. Press the Path From Shape TC button.

The output tool-path is added outside the CAM Job.

Options

All Options provided are available only from the FromShape.Property.Data view, and include:

  • Retraction Axis
  • Retraction Height
  • Resume Height
  • Feed Rate
  • Feed Rate Vertical

Properties

Data

Empty

View

Empty

Scripting

See also: FreeCAD Scripting Basics.

DocString Info

Returns a Path object from a list of shapes.

  • shapes: input list of shapes.
  • start (Vector()): feed start position, and also serves as a hint of path entry.
  • return_end (False): if True, returns tuple (path, endPosition).
  • arc_plane(1): 0=None,1=Auto,2=XY,3=ZX,4=YZ,5=Variable. Arc drawing plane, corresponding to G17, G18, and G19.
    • If not 'None', the output wires will be transformed to align with the selected plane, and the corresponding G-code will be inserted.
    • 'Auto' means the plane is determined by the first encountered arc plane. If the found plane does not align to any G-code plane, XY-plane is used.
    • 'Variable' means the arc plane can be changed during operation to align to the arc encountered.
  • sort_mode(1): 0=None,1=2D5,2=3D,3=Greedy. Wire sorting mode to optimize travel distance.
    • '2D5' explode shapes into wires, and groups the shapes by its plane. The 'start' position chooses the first plane to start. The algorithm will then sort within the plane and then move on to the next nearest plane.
    • '3D' makes no assumption of planarity. The sorting is done across 3D space.
    • 'Greedy' like '2D5' but will try to minimize travel by searching for nearest path below the current milling layer. The path in lower layer is only selected if the moving distance is within the value given in 'threshold'.
  • min_dist(0.0): minimum distance for the generated new wires. Wires maybe broken if the algorithm see fits. Set to zero to disable wire breaking.
  • abscissa(3.0): Controls vertex sampling on wire for nearest point searching. The sampling is done using OCC GCPnts_UniformAbscissa.
  • nearest_k(3): Nearest k sampling vertices are considered during sorting.
  • orientation(0): 0=Normal,1=Reversed. Enforce loop orientation:
    • 'Normal' means CCW for outer wires when looking against the positive axis direction, and CW for inner wires.
    • 'Reversed' means the other way round.
  • direction(0): 0=None,1=XPositive,2=XNegative,3=YPositive,4=YNegative,5=ZPositive,6=ZNegative. Enforce open path direction.
  • threshold(0.0): If two wire's end points are separated within this threshold, they are consider as connected. You may want to set this to the tool diameter to keep the tool down.
  • retract_axis(2): 0=X,1=Y,2=Z. Tool retraction axis.
  • retraction(0.0): Tool retraction absolute coordinate along retraction axis.
  • resume_height(0.0): When return from last retraction, this gives the pause height relative to the Z value of the next move.
  • segmentation(0.0): Break long curves into segments of this length. One use case is for PCB autolevel, so that more correction points can be inserted.
  • feedrate(0.0): Normal move feed rate.
  • feedrate_v(0.0): Vertical only (step down) move feed rate.
  • verbose(true): If true, each motion G-code will contain full coordinate and feedrate.
  • abs_center(false): Use absolute arc center mode (G90.1).
  • preamble(true): Emit preambles.
  • deflection(0.01): Deflection for non circular curve discretization. It also also used for discretizing circular wires when you 'Explode' the shape for wire operations

Example:

shapes = [Box.Shape]
Path.fromShapes(shapes, start=Vector(), return_end=False, arc_plane=1, sort_mode=1, min_dist=0.0, abscissa=3.0, nearest_k=3, orientation=0, direction=0, threshold=0.0, retract_axis=2, retraction=0.0, resume_height=0.0, segmentation=0.0, feedrate=0.0, feedrate_v=0.0, verbose=True, abs_center=False, preamble=True, deflection=0.01)


Probe
Copy
CAM

This page is retrieved from https://wiki.freecad.org/CAM_Shape

Get in touch!
Forum GitHub Mastodon Matrix IRC Gitter.im Discord Reddit Twitter Facebook LinkedIn

© The FreeCAD Team. Homepage image credits (top to bottom): ppemawm, r-frank, epileftric, regis, rider_mortagnais, bejant.

This project is supported by: , KiCad Services Corp. and other sponsors

GitHubImprove this page on GitHub