TechDraw "Вставить объект верстака Draft"

From FreeCAD Documentation
Jump to navigation Jump to search
This page is a translated version of the page TechDraw DraftView and the translation is 58% complete.
Other languages:
Deutsch • ‎English • ‎français • ‎italiano • ‎polski • ‎русский

TechDraw DraftView.svg Вставить объект верстака Draft

Системное название
TechDraw_DraftView
Расположение в меню
TechDraw → Вставить объект верстака Draft
Верстаки
TechDraw, Draft
Быстрые клавиши
Нет
Представлено в версии
-
См. также
Вставить объект верстака Arch

Описание

The TechDraw DraftView.svg DraftView tool inserts a view of a selected Part-based or Group object into a drawing page. Unlike the standard TechDraw View.svg View tool, views created with this tool are handled by the Workbench Draft.svg Draft Workbench, and specially designed for showing 2D objects. See Notes.

TechDraw DraftView example.png

Draft elements like circles and arrays imported into a TechDraw drawing page

Применение

  1. Select a Draft object in the 3D view or in the tree
  2. If you have multiple drawing pages in your document, you will need to select the desired page in the tree.
  3. Press the TechDraw DraftView.svg Insert Draft Workbench Object button
  4. A view of the draft object will appear on the page.

Ограничения

The DraftView is rendered within the Draft Workbench, therefore TechDraw has limited control over its appearance. You may need to make changes within Draft to get the representation you want.

Опции

  • Creating a DraftView of a layer will recursively handle all objects found in that layer. The View is updated automatically when the contents of the layer changes
  • There is no hidden line removal. Each face found in the handled object(s) will simply be projected along the Direction vector, no specific action is taken when faces overlap
  • The Draft View also supports all Draft objects that are not Part-based, such as dimensions and texts
  • Color, line width and line pattern can be specified in the properties. Line patterns can be fine-tuned by directly giving a stroke-dasharray value, such as 3,5
  • Projected faces are filled with the face color

Свойства

  • ДанныеSource: The Draft object to be displayed
  • ДанныеLineWidth: The width of the lines, independently of the scale
  • ДанныеFontSize: The size of all texts appearing in this view (texts and dimensions)
  • ДанныеDirection: The projection direction to use
  • ДанныеColor: The color of lines
  • ДанныеLineStyle: A line style to use for this view. Can be Solid, Dashed, Dashdot, Dot or a SVG line pattern like 0.20,0.20
  • ДанныеLineSpacing: The spacing to use between lines of texts for multiline texts

Note: Draft View inherits all applicable basic View properties.

Программирование

См. так же: TechDraw API и Основы составления скриптов FreeCAD.

The New Draft tool can be used in macros and from the Python console by using the following functions:

dv = FreeCAD.ActiveDocument.addObject('TechDraw::DrawViewDraft','TestDraft')
dv.Source = myDraftbject
rc = page.addView(dv)