FreeCAD Logo FreeCAD 1.0
  • Английский Африкаанс Арабский Белорусский Каталанский Чешский Немецкий Греческий Испанский Испанский Баскский Финский Филиппинский Французский Галисийский Хорватский Венгерский Индонезийский Итальянский Японский Кабильский Корейский Литовский Нидерландский Норвежская букмол Польский Португальский Португальский Румынский Русский Словацкий Словенский Сербский Шведский Турецкий Украинский Валенсианский Вьетнамский Китайский Китайский
  • Возможности
  • Скачать
  • Блог
  • Документация
    Индекс документации Приступая к работе Пользовательская документация Руководство по FreeCAD Документация верстаков Документация по кодированию на Python Документация по коду C++ Уроки Часто задаваемые вопросы Политика конфиденциальности О программе FreeCAD
  • Внести вклад
    Как помочь Sponsor Сообщить об ошибке Сделать запрос Задачи и финансирование Руководство по участию в разработке Руководство для разработчиков Переводы
  • Сообщество
    Кодекс поведения Форум The FPA GitHub GitLab Codeberg Mastodon Matrix IRC IRC via Webchat Gitter Discord Reddit Twitter Facebook LinkedIn Календарь
  • ♥ Donate

Donate

$
Информация о SEPA
Пожалуйста, настройте банковский перевод SEPA:
Beneficiary: The FreeCAD project association
IBAN: BE04 0019 2896 4531
BIC/SWIFT: GEBABEBBXXX
Банковское агентство: BNP Paribas Fortis
Адрес: 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!

ShapeString
Text
Draft

Draft Hatch

Menu location
Drafting → Hatch
Annotation → Hatch
Workbenches
Draft, BIM
Default shortcut
H A
Introduced in version
0.20
See also
Draft Pattern

Описание

The Draft Hatch command creates hatches on the planar faces of a selected object.

Usage

  1. Select an object with faces. Only the planar faces of the object will be hatched.
  2. There are several ways to invoke the command:
    • Press the Hatch button.
    • Draft: Select the Drafting → Hatch option from the menu.
    • BIM: Select the Annotation → Hatch option from the menu.
    • Use the keyboard shortcut: H then A.
  3. The Hatch task panel opens. See Options for more information.
  4. Press the OK button to finish the command.

Options

  • Press the ... button to select a PAT file. See Notes.
  • Select a Pattern from the file.
  • Specify a Scale for the pattern.
  • Specify a Rotation for the pattern.
  • Press Esc or the Cancel button to abort the command.

Pattern alignment

When the hatch pattern for a face is calculated it is temporarily translated to the global XY plane by default. For a face with straight edges the first straight edge determines how this happens. The first point of that edge is put on the origin, and the edge itself is aligned with the X-axis. If you create Draft Wires with that in mind you can control how the hatch pattern is aligned with the outline of the face.

If all faces of the selected object are on the global XY plane you can switch off this default behavior by setting the ДанныеTranslate property of the Draft Hatch to false. The hatch pattern is then aligned with the origin and the X axis of the global coordinate system. For faces on the XY plane with straight edges the ДанныеTranslate property can be used to switch between absolute (on the left in the image) and relative (on the right in the image) patterns.

Two Draft Wires with hatches.
The wires were created in a CCW direction starting from the bottom left point.
For the Draft Hatch on the left the Translate property is set to false.
For the Draft Hatch on the right it is set to true.

Relative file path

introduced in 1.1

It is possible to specify a relative path for the PAT file. For this the FreeCAD document must have been saved at least once. See Draft ShapeString for some examples.

Notes

  • For now the advice is to download a PAT file. Many can be found online. You can for example do a web search for acad.pat or acadiso.pat.
  • A small PAT file is installed with FreeCAD: <program_folder>/data/Mod/TechDraw/PAT/FCPAT.pat, where <program_folder> is the FreeCAD program folder:
    • On Linux it is usually /usr/share/freecad.
    • On Windows it is usually C:\Program Files\FreeCAD.
    • On macOS it is usually /Applications/FreeCAD.
  • 1.0 and below: Patterns with dashed lines are not handled properly.

Properties

See also: Property View.

A Draft Hatch object is derived from a Part Feature object and inherits all its properties. It also has the following additional properties:

Data

Hatch

  • ДанныеBase (Link): specifies the object whose faces are hatched.
  • ДанныеFile (File): specifies the PAT file.
  • ДанныеPattern (String): specifies the pattern name.
  • ДанныеRotation (Angle): specifies the rotation of the pattern.
  • ДанныеScale (Float): specifies the scale of the pattern.
  • ДанныеTranslate (Bool): specifies if the faces are temporarily translated to the global XY plane during the hatching process. Setting it to false may give wrong results for non-XY faces.

Scripting

See also: Autogenerated API documentation and FreeCAD Scripting Basics.

To create a Draft Hatch use the make_hatch method of the Draft module.

hatch = make_hatch(baseobject, filename, pattern, scale, rotation)

Example:

import FreeCAD as App
import Draft

doc = App.newDocument()

rectangle = Draft.make_rectangle(4000, 1000)
rectangle.MakeFace = True
filename = App.getHomePath() + "data/Mod/TechDraw/PAT/FCPAT.pat"
pattern = "Horizontal5"
hatch = Draft.make_hatch(rectangle, filename, pattern, scale=50, rotation=45)

doc.recompute()


ShapeString
Text
Draft

Эта страница получена от https://wiki.freecad.org/Draft_Hatch

Свяжитесь с нами!
Forum GitHub Mastodon Matrix IRC Gitter.im Discord Reddit Twitter Facebook LinkedIn

©Команда FreeCAD. Авторы изображений (сверху вниз): ppemawm, r-frank, epileftric, regis, regis, rider_mortagnais, bejant.

Этот проект поддерживается: , KiCad Services Corp. и другие спонсоры

GitHubУлучшить эту страницу на GitHub