FreeCAD Logo FreeCAD 1.0
  • Engleză Afrikaans Arabă Belarusă Catalană Cehă Germană Greacă Spaniolă Spaniolă Bască Finlandeză Filipineză Franceză Galiciană Croată Maghiară Indoneziană Italiană Japoneză Kabyle Coreeană Lituaniană Olandeză Norvegiană Bokmål Poloneză Portugheză Portugheză Română Rusă Slovacă Slovenă Sârbă Suedeză Turcă Ucrainiană Valenciană Vietnameză Chineză Chineză
  • Funcții
  • Descarca
  • Blog
  • Documentaţie
    Indicele documentului Primii pasi Documentație utilizatori Manualul utilizatorului FreeCAD Documentaţia Atelierelor Documente despre codarea în limbajul python C++ coding documentation Tutoriale Întrebări frecvente Privacy policy About FreeCAD
  • Contribuiți
    Cum să ajuți Sponsor Raportează o problemă Efectuează o cerere de tragere Locuri de muncă și finanțare Orientări privind contribuția Developers handbook Translations
  • Comunitate
    Code of conduct Forum The FPA GitHub GitLab Codeberg Mastodon Matrix IRC IRC via Webchat Gitter Discord Reddit Twitter Facebook LinkedIn Calendar
  • ♥ Donate

Donate

$
Informaţii SEPA
Te rugăm să-ți configurezi transferul bancar SEPA în:
Beneficiary: The FreeCAD project association
IBAN: BE04 0019 2896 4531
BIC/SWIFT: GEBABEBBXXX
Agenție bancară: BNP Paribas Fortis
Adresă: 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!

Tutorial
Topic
ShapeString (Draft workbench)
Level
Beginner
Time to complete
30 minutes
Authors
r-frank
FreeCAD version
0.16.6704
Example files
Draft_Shapestring_Text
See also
None

Introducere

În această lecţie vom discuta:

  • insert a text with the ShapeString tool
  • extrude it to be a solid
  • position it in 3D space using placement and Draft Move with sketches as helper elements
  • doing an engraving by applying a boolean cut

This tutorial has been re-worked for FreeCAD v1.1, but it should be possible to follow the steps for v1.0 as well.

This tutorial describes a method to create 3D text and use it with solid objects in the Part Workbench. We will discuss how to:

  • insert outlined text with the Draft ShapeString tool,
  • position it on geometry using Part EditAttachment,
  • extrude it to be a 3D solid with Part Extrude, then finally
  • engrave the text by applying a boolean Part Cut.

To use ShapeStrings inside the PartDesign Workbench, the process is essentially the same as with the Part Workbench, but the ShapeString must be placed inside the PartDesign Body. Go to the end of this tutorial for more information.

Final model of the engraved text.

Setup

1. Open FreeCAD and create a new empty document with File → New Document.

1.1. Switch to the Part Workbench either with View → Workbench → Part Workbench, or with the Workbench Selector .
1.2. Press the Isometric button, or press 0 in the numerical pad of your keyboard, to change the view to isometric to visualize the 3D solids better.
1.3. Whenever you add objects, press the Fit All button, or its hotkey V, F. This will pan and zoom the 3D View so that all elements are visible in the view.
1.4. Hold Ctrl while you click to select multiple items. If you make a wrong selected or want to de-select everything, just click in an empty area in the 3D View.

Crearea de forme de bază

  • Start FreeCAD și creați un nou document
  • Comutați la Atelierul Part/Piese
  • Inserați un cub făcând click pe
  • Make sure the cube is selected in the tree view
  • Change width to be 31 mm by using the data-tab in the property view
  • Click on to change to axometric view
  • Click on to zoom to fit all
  • Select upper edge on the front face of the cube in 3D view
  • Apply a chamfer (to Edge6) of 5 mm by clicking on
  • Make sure object "chamfer" is selected in the tree view and press <Space> to toggle visibility

2. Create a rectangular box:

2.1. Insert a primitive cube by clicking on Cube.
2.2. Select the created Cube in the Tree View.
2.3. On the Data tab of the Property View:
2.3.1. Change Width to 31 mm.
2.4. Re-center the view per step 1.3.

3. Create a chamfer:

3.1. Select the upper edge (Edge6) of the elongated face of the Cube in the 3D View.
3.2. Press Chamfer.
3.3. In the Chamfer Edges task panel:
3.3.1. Verify that Select edges is selected and that the Chamfer type is Equal distance.
3.3.2. Change Length to 5 mm.
3.3.3. Press OK. This will create a Chamfer object.

Base object created from an edited cube and a chamfer operation.

Inserarea de text cu instrumentul Draft ShapeString

  • Switch to Draft workbench
  • make sure nothing is selected in the tree view
  • Toggle working plane to XY (Top) by clicking on Auto and choosing XY
  • Insert text "FreeCAD" by
    • Click on
    • Highlight the text in the "Global X"-field and type "0" on the keyboard and press Return
    • Highlight the text in the "Global Y" field
    • Type "0" on the keyboard and press Return
    • Highlight the text in the "Global Z" field
    • Type "0" on the keyboard and press Return
    • Enter "FreeCAD" in the string field (without brackets) and press Return
    • Choose a height of 5mm
    • Choose a tracking of 0 mm
    • now point FreeCAD to a "TTF"-Text-Font to use (for example the ARIAL-TTF)
    • After pressing Return one last time, the Draft-Shapestring object is created in the tree view

4. Create the ShapeString:

4.1. Switch to the Draft Workbench.
4.2. Click on Shape From Text.
4.3. In the ShapeString task panel:
4.3.1. Change Text to FreeCAD.
4.3.2. Change Height to 5 mm.
4.3.3. Make sure Font file points to a valid font, (e.g, /usr/share/fonts/truetype/dejavu/DejaVuSans.ttf or C:/Windows/Fonts/arial.ttf).
Note: for more details about working with fonts please refer to the Draft ShapeString page.
4.3.4. Reset its location to the origin by pressing Reset Point.
4.3.5. Press OK. This will create a ShapeString object.
4.4. In the Tree View, select Chamfer. On the View tab, change the value of Visibility to false, or press Space on the keyboard. This will hide the Chamfer object, so you can see the ShapeString better.
4.5. To see the ShapeString from above change the view by pressing Top, or 2 on the keyboard.
4.6. To restore the view to isometric, press Isometric, or 0 on the keyboard.
4.7. Reverse step 4.4 to make the Chamfer object visible again.

Text created as a ShapeString, that is, a filled compound shape on a plane

5. Move the ShapeString to the Chamfer:

5.1. Make sure both the Chamfer object and the ShapeString object are visible in the 3D View. If one is not, select it in the Tree View and press Space on the keyboard.
5.2. Switch to the Part Workbench.
5.3. In the Tree View, select ShapeString.
5.4. Select Part → Attachment.
5.5. In the 3D View, select the chamfered face of the Chamfer.
5.6. In the Attachment task panel:
5.6.1 Change the Attachment mode to Inertia 2-3.
5.6.2 Press OK.
5.8. Make sure Shapestring is selected in the Tree View.
5.9. On the Data tab of the Property View:
5.9.1. Change Justification to Middle-Center.
5.9.2. Expand the Attachment Offset property node and change Angle to 90.0 °.

The ShapeString centered on the chamfered face

Crearea de texte 3D

  • Comutați pe Atelierul de Piese(Part workbench)
  • Make sure the object "Shapestring" is selected in the tree view
  • Use Part Extrude-Tool with the parameters:
    • extrude Z=1 mm
    • make sure to tick "create solid"
    • use "OK" to finish part extrude operation
  • Make sure object "Extrude" is selected in the tree view and press <Space> to toggle its visibility to be visible

6. Create a solid object from the ShapeString:

6.1. Make sure the Part Workbench is still active.
6.2. In the Tree View, select ShapeString, then press Extrude.
6.3. In the Extrude task panel:
6.3.1. In the Direction section select Along normal
6.3.2. In the Length section set Along to 0 mm and Against to 1 mm.
6.3.3. Check the Create solid option.
6.3.4. Press OK. This will create an Extrude object.
6.4. Since it has been extruded into the Chamfer object, the 3D View will look the same as before. Verify the creation of a solid 3D object by temporarily making the Chamfer object invisible:
6.4.1. In Tree View, select Chamfer.
6.4.2. Press Space to hide it. You should see a solid 3D object in the shape of the word "FreeCAD".
6.4.3. Press Space to make the Chamfer visible again.

The 3D text after making the Chamfer object invisible.

7. Engrave the text on the geometry:

7.1. In the Tree View select Chamfer first, and then Extrude.
Note: the order in which you select the objects is important for the cut operation. The base object must be selected first, then the object to be subtracted.
7.2. Press Cut. This will create a Cut object. This is the final object.

Final model: a chamfered cube, with engraved text created from ShapeString, Extrude, and boolean Cut operations.

Engraving 3D text with the PartDesign Workbench

A similar process as described above can be done with the PartDesign Workbench.

  1. Create the Draft ShapeString first.
  2. Create a PartDesign Body, make it active, and create a base solid by adding a primitive, or by extruding a sketch with PartDesign Pad.
  3. Move the ShapeString object into the active body.
  4. Attach the ShapeString object to one of the faces of the solid, or to an edge of the sketch, using Part EditAttachment.
  5. Now create a PartDesign Pad or a PartDesign Pocket from the ShapeString, in order to produce an additive or a subtractive feature respectively.

See the forum thread How to use ShapeStrings in PartDesign.

Notă

  • To create curved text you can use Macro FCCircularText.
  • To import text from an SVG file look at the Import text and geometry from Inkscape tutorial.


Această pagină este preluată de la https://wiki.freecad.org/Draft_ShapeString_tutorial

Intrați în legătură!
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.

Acest proiect este sprijinit de: , KiCad Services Corp. and other sponsors

GitHubImprove this page on GitHub