FreeCAD Logo FreeCAD 1.0
  • 영어 아프리칸스어 아랍어 벨라루스어 카탈로니아어 체코어 독일어 그리스어 스페인어 스페인어 바스크어 핀란드어 필리핀어 프랑스어 갈리시아어 크로아티아어 헝가리어 인도네시아어 이탈리아어 일본어 커바일어 한국어 리투아니아어 네덜란드어 노르웨이어(보크말) 폴란드어 포르투갈어 포르투갈어 루마니아어 러시아어 슬로바키아어 슬로베니아어 세르비아어 스웨덴어 터키어 우크라이나어 발센시아어 베트남어 중국어 중국어
  • 특징
  • 다운로드
  • 블로그
  • 문서
    도큐먼트 인덱스 시작하기 사용자 문서 FreeCAD 매뉴얼 워크 벤치 문서 파이썬(Python) 코딩 도큐먼트 C++ coding documentation 자습서 자주 묻는 질문 Privacy policy About FreeCAD
  • 기여
    어떻게 도와 드릴까요 Sponsor 버그 제보 풀 생성 요청 Jobs and funding Contribution guidelines Developers handbook Translations
  • 커뮤니티
    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 정보
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!

Tutorial
Topic
제도
Level
중간
Time to complete
60 분
Authors
wandererfan
FreeCAD version
0.17
Example files
None
See also
None

소개

이 자습서에서는 기술도면 작업대 페이지의 배경 템플릿으로 사용할 수 있는 SVG 파일을 만드는 방법을 보여줍니다.

이 자습서에서는 여러분이 잉크스케이프와 SVG, 그리고 프리캐드와 기술도면 작업대에 대해 어느 정도 알고 있다고 가정합니다.

우리는 가로 방향으로 US Letter 크기 용지에 맞는 간단한 템플릿을 만들어 보겠습니다.

이 자습서의 결과 사본은 아래에서 찾아 볼 수 있습니다.

$INSTALL_DIR/Mod/TechDraw/Templates/HowToExample.svg

여기서 $INSTALL_DIR은 프리캐드가 설치된 디렉토리입니다. 예:

/usr/share/freecad/Mod/TechDraw/Templates/HowToExample.svg

기본 문서 만들기

1. 잉크스케이프에서 새 문서를 엽니다.

2. 문서 속성에서

  • 페이지 크기 "US Letter" 또는 "A4" 및 방향 "가로"를 선택합니다.
  • 기본 단위를 "mm"로 설정하고, 페이지 크기를 너비 "279.4", 높이 "215.9"로 설정합니다. DIN-A4의 경우 "210"과 "297"을 사용합니다.

    잉크스케이프: 페이지 크기와 방향이 있는 문서

3. Use the XML Editor to add a "freecad" namespace clause to the <svg> item.

  • 0.20 and below: xmlns:freecad="https://wiki.freecad.org/index.php?title=Svg_Namespace"
Note that your editable texts will not work if you use "https://...", even though the wiki is reached via https these days.
  • 0.21 and above: xmlns:freecad="https://www.freecad.org/wiki/index.php?title=Svg_Namespace"

Since SVG is a human readable format you could also enter the line above into the file with a text editor.

Inkscape: XML Editor adding the "freecad" namespace clause to the <svg> item

Create template drawing

4. Draw outlines, zone numbers, center lines, and other geometry.

5. Draw the boxes and lines for the title block.

6. Add and position your static text.

7. Add and position the text that will be editable.

8. You now have your finished artwork, that should look something like this:

Inkscape: tentative template layout

Create editable fields

9. Use the XML Editor to add a freecad:editable tag to each editable <text> item.

  • Assign a meaningful field name to each editable text.

Inkscape: XML Editor adding the "freecad:editable" property to the desired <text> item

Adjust size of the SVG

10. Use the XML editor to adjust the viewBox attribute to match your page size in millimeters.

  • It is four values, in the format "0 0 width height"

Inkscape: XML Editor adjusting the viewbox to match the page size in millimeters

11. Your template will now appear much bigger than desired.

Inkscape: tentative template layout exceeding the page size

12. We need to shrink it.

  • Edit → Select All in All Layers, or box select and select all.
  • Adjust the W: and H: spinboxes to match your artwork's size in millimeters.
  • Set it to the page size less any applicable margins, for example, W: 250, and H: 200.

13. Use "Align and Distribute" or the X: and Y: spinboxes to position the artwork within the limits of the page if required.

14. Your template should now look right, just like it did in the finished artwork picture above.

Remove transformans on the SVG

15. Ensure that all your editable texts are "ungrouped" with Shift+Ctrl+g.

16. Select everything on your page, Edit → Select All, and then Edit → Copy (Ctrl+c).

17. Then delete the current layer, Layer → Delete Current Layer.

Note: if you deleted the layer already (in your layer panel is no layer listed) this step is not required. In that case you should select all (Ctrl+a), cut the selection (Ctrl+x) and paste it with the command in the next step.

18. Then paste, Edit → Paste in Place.

Note: This command prevents that the text positions are stored in transform tags. It's important that you do not use the normal paste command!

19. Your template should now look right and shouldn't have any unwanted transforms.

20. Save your template. When you use Inkscape, save it preferably as Plain SVG because FreeCAD can only handle the features of the SVG 1.1 specification. Plain SVG will remove any Inkscape-specific XML tags.

21. Try it in FreeCAD and TechDraw Workbench with Insert Page using Template.

FreeCAD: finished template with an editable text field being modified

Notes

Don't use Layers in Inkscape until you've mastered template creation without them. Layers and Groups can automatically insert unwanted transforms into your SVG file.

As a final step before using your new template, make sure to remove any transform clauses from the Svg code. Transform clauses will cause problems.

See a Stackoverflow discussion on removing transform clauses in SVG files.

If you do not see the green boxes for your editable texts, there might be something wrong with your document scale. Open your file in Inkscape again and confirm the values of the viewBox and the sizes are matching.

If texts appear offset in FreeCAD, you may need to remove the xml:space="preserve" attributes in the SVG file. See: https://forum.freecad.org/viewtopic.php?t=50897.

이 페이지에서 인용한 것은 https://wiki.freecad.org/TechDraw_TemplateHowTo

연락하기!
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.

이 프로젝트는 이들에 의해 지원되었습니다: , KiCad Services Corp. and other sponsors

GitHubImprove this page on GitHub