TechDraw ActiveView/ru: Difference between revisions

From FreeCAD Documentation
No edit summary
(Updating to match new version of source page)
Line 1: Line 1:
<languages/>
<languages/>

{{Docnav/ru
{{Docnav/ru
|[[TechDraw_View/ru|Вставить Вид]]
|[[TechDraw_View/ru|Вставить Вид]]
Line 23: Line 24:


[[File:TechDraw_ActiveView_example.png]]
[[File:TechDraw_ActiveView_example.png]]

{{Caption|A simple view from the 3D model that doesn't perform any complex calculation.}}
{{Caption|A simple view from the 3D model that doesn't perform any complex calculation.}}


==Применение==
==Применение==


# Navigate to the 3D window you wish to copy.
# Navigate to the correct [[3D_view|3D view]].
# If you have multiple drawing pages in your document, you will also need to select the desired page in the tree.
# If there are multiple drawing pages in the document: optionally select the desired page in the [[Tree_view|Tree view]]. This is not optional for {{VersionMinus|0.19}}.
# There are several ways to invoke the tool:
# Press the {{Button|[[Image:TechDraw ActiveView.svg|16px]] [[TechDraw_ActiveView|Insert Active View]]}} button
#* Press the {{Button|[[Image:TechDraw_ActiveView.svg|16px]] [[TechDraw_ActiveView|Insert Active View (3D View)]]}} button.
# A dialog will open to allow you to specify the size, border and background color of the copy.
#* Select the {{MenuCommand|TechDraw → [[Image:TechDraw_ActiveView.svg|16px]] Insert Active View (3D View)}} option from the menu.
# If there are multiple drawing pages in the document and you have not yet selected a page, the {{MenuCommand|Page Chooser}} dialog box opens: {{Version|0.20}}
## Select the desired page.
## Press the {{Button|OK}} button.
# The {{MenuCommand|ActiveView to TD View}} task panel opens. See [[#Options|Options]] for more information.
# Press the {{Button|OK}} button.

== Options ==

The following can be specified:

* {{MenuCommand|Width}}: The width of the generated view.
* {{MenuCommand|Height}}: The height of the generated view.
* {{MenuCommand|Border}}: The amount of empty space to be left around the view (but within Width x Height).
* {{MenuCommand|Background}}: If checked a background with the specified color is added.
* {{MenuCommand|Line Width}}: The thickness of the lines in the view.
* {{MenuCommand|Render Mode}}: The available modes are:
** {{Value|As is}}: Render primitives as they are.
** {{Value|Wireframe}}: Render polygons as wireframe.
** {{Value|Points}}: Render only the vertices of the polygons and lines.
** {{Value|Wireframe overlay}}: Render a wireframe overlay in addition to the {{Value|As is}} mode.
** {{Value|Hidden Line}}: As {{Value|Wireframe}}, but culls lines which would otherwise not be shown due to geometric culling.
** {{Value|Bounding box}}: Only show the bounding box of each object.


==Примечания==
==Примечания==


* Active views are static once generated, they are never updated with changes to the 3D model.
* ActiveViews are static once generated, they are never updated with changes to the 3D model.
* ActiveView behind the scenes is a [[Image:TechDraw_Symbol.svg|24px]] [[TechDraw_Symbol|Symbol View]]. Its {{PropertyData|Scale Type}} is therefore always initialized as ''Custom''.
* An ActiveView behind the scenes is a [[TechDraw_Symbol|Symbol]]. Its {{PropertyData|Scale Type}} is therefore always initialized as {{Value|Custom}}.
* This tool is still somewhat '''Experimental'''.
* This tool is still somewhat '''Experimental'''.


==Свойства==
==Свойства==


See [[Image:TechDraw_Symbol.svg|16px]] [[TechDraw_Symbol|Symbol]]
See [[TechDraw_Symbol|TechDraw Symbol]].

=== Dialog Fields ===
* {{PropertyData|Width}}: The width of the generated view.
* {{PropertyData|Height}}: The height of the generated view.
* {{PropertyData|Border}}: The amount of empty space to be left around the view (but within Width x Height).
* {{PropertyData|Background}}: Show or hide a background.
* {{PropertyData|Background Color}}: Color to paint the background, if applicable.
* {{PropertyData|Line Width}}: Thickness of individual lines in the view.
* {{PropertyData|Render Mode}}: The [https://grey.colorado.edu/coin3d/classSoRenderManager.html#a4b8d99cff0fd91e31bc2c5d33610f6eb render mode] of the library [https://en.wikipedia.org/wiki/Coin3D Coin3d]. The possible modes are
** '''AS_IS''' Render primitives as they are
** '''WIREFRAME''' Render polygons as wireframe
** '''POINTS''' Render only the vertices of the polygons and lines
** '''WIREFRAME_OVERLAY''' Render a wireframe overlay in addition to the '''AS_IS''' mode
** '''HIDDEN_LINE''' As '''WIREFRAME''', but culls lines which would otherwise not be shown due to geometric culling
** '''BOUNDING_BOX''' Only show the bounding box of each object


==Программирование==
==Программирование==
Line 68: Line 76:
TechDrawGui.copyActiveViewToSvgFile(Gui.ActiveDocument.ActiveView,"myFile.svg")
TechDrawGui.copyActiveViewToSvgFile(Gui.ActiveDocument.ActiveView,"myFile.svg")
}}
}}



{{Docnav/ru
{{Docnav/ru
Line 80: Line 89:
{{TechDraw Tools navi{{#translation:}}}}
{{TechDraw Tools navi{{#translation:}}}}
{{Userdocnavi{{#translation:}}}}
{{Userdocnavi{{#translation:}}}}
{{clear}}

Revision as of 16:37, 14 April 2022

Other languages:

Вставить активный вид (3D Вид)

Системное название
TechDraw_ActiveView
Расположение в меню
TechDraw → Вставить активный вид (3D Вид)
Верстаки
TechDraw
Быстрые клавиши
Нет
Представлено в версии
0.19
См. также
Вставить SVG знак

Описание

The ActiveView tool inserts a copy of a 3D window into a drawing page.

A simple view from the 3D model that doesn't perform any complex calculation.

Применение

  1. Navigate to the correct 3D view.
  2. If there are multiple drawing pages in the document: optionally select the desired page in the Tree view. This is not optional for version 0.19 and below.
  3. There are several ways to invoke the tool:
  4. If there are multiple drawing pages in the document and you have not yet selected a page, the Page Chooser dialog box opens: introduced in version 0.20
    1. Select the desired page.
    2. Press the OK button.
  5. The ActiveView to TD View task panel opens. See Options for more information.
  6. Press the OK button.

Options

The following can be specified:

  • Width: The width of the generated view.
  • Height: The height of the generated view.
  • Border: The amount of empty space to be left around the view (but within Width x Height).
  • Background: If checked a background with the specified color is added.
  • Line Width: The thickness of the lines in the view.
  • Render Mode: The available modes are:
    • As is: Render primitives as they are.
    • Wireframe: Render polygons as wireframe.
    • Points: Render only the vertices of the polygons and lines.
    • Wireframe overlay: Render a wireframe overlay in addition to the As is mode.
    • Hidden Line: As Wireframe, but culls lines which would otherwise not be shown due to geometric culling.
    • Bounding box: Only show the bounding box of each object.

Примечания

  • ActiveViews are static once generated, they are never updated with changes to the 3D model.
  • An ActiveView behind the scenes is a Symbol. Its ДанныеScale Type is therefore always initialized as Custom.
  • This tool is still somewhat Experimental.

Свойства

See TechDraw Symbol.

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

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

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

import TechDrawGui
TechDrawGui.copyActiveViewToSvgFile(Gui.ActiveDocument.ActiveView,"myFile.svg")