Rysunek Techniczny: Szablony

From FreeCAD Documentation
Revision as of 11:18, 8 September 2022 by Kaktus (talk | contribs) (Created page with "Do programu FreeCAD dołączona jest niewielka liczba wstępnie sformatowanych szablonów w różnych standardowych rozmiarach stron. Znajdują się one w:")

Informacje ogólne

Każda strona środowiska Rysunek Roboczy jest oparta na obiekcie Szablonu. Szablon określa rozmiar papieru i zawiera stałą grafikę i tekst, na przykład ramkę lub obramowanie strony.

Szablon może również zawierać edytowalne pola tekstowe dla atrybutów takich jak Tytuł, Podtytuł, Autor, Data, Skala, Waga, Numer rysunku i Arkusz.

Szablony to pliki SVG, które można tworzyć i modyfikować poza środowiskiem programu FreeCAD, za pomocą aplikacji takiej jak np. Inkscape.

Właściwości

  • DANEOrientation: Portrait or Landscape.
  • DANEWidth: Paper width in mm.
  • DANEHeight: Paper height in mm.
  • DANEPage Result: A copy of the original Template file including all changes to editable texts. This allows users who may not have a copy of the Template file to see the Page as intended. Not typically useful for end users.
  • DANETemplate: a) A pointer to the copy of the original Template file which is incorporated into this *.FCStd file, or b) a filepath to a template accessible on the current machine. Use the file selection ellipsis (...) to change to a different template.

Select a different template file

To select a different template for a drawing:

  1. Locate the desired Page object in the Tree view.
  2. Expand the Page node if necessary.
  3. Select the Template object.
  4. In the Property editor click in the DANETemplate property field.
  5. Press the ... (ellipsis) button that appears.
  6. A file dialog opens the folder the current template is located in. If the Page was created in the current FreeCAD session this will be the default template folder (as set in the TechDraw Preferences).
  7. Optionally browse to another folder.
  8. Select a different template file.
  9. Press the OK button.

If you have modified a template file and want to update a Page created in the current FreeCAD session that uses this template, temporarily select a different file first, and then select the modified file again.

Szablony użytkownika

Do programu FreeCAD dołączona jest niewielka liczba wstępnie sformatowanych szablonów w różnych standardowych rozmiarach stron. Znajdują się one w:

$INSTALL_DIR/Mod/TechDraw/Templates/

Where $INSTALL_DIR is the directory where FreeCAD was installed, for example

/usr/share/freecad/Mod/TechDraw/Templates/

Custom templates can also be specified as a default in the TechDraw Preferences.

See also How to make a custom TechDraw template.

Uwagi

  • Szablony środowiska pracy Rysunek Techniczny nie są całkowicie zamienne z szablonami Rysunku Roboczego. Ogólnie rzecz biorąc, szablony środowiska Rysunku Roboczego będą działać w środowisku Rysunek Techniczny, ale mogą wystąpić problemy z edytowalnym tekstem.
  • Klauzula xml:space="preserve" czasami powoduje problemy z rozmiarem i pozycjonowaniem tekstu. Najlepiej jest unikać / usunąć tę klauzulę z kodu SVG twojego niestandardowego szablonu.
  • Szablony działają najlepiej, gdy nie zawierają zbędnego kodu SVG (nazywanego przez niektórych "śmieciowym SVG"). Istnieje dobry artykuł na temat usuwanie śmieci z SVG. Artykuł napisano w języku rosyjskim.