TechDraw ActiveView/ru: Difference between revisions

From FreeCAD Documentation
(Updating to match new version of source page)
(Updating to match new version of source page)
Line 10: Line 10:
}}
}}


<div class="mw-translate-fuzzy">
{{GuiCommand/ru
{{GuiCommand/ru
|Name/ru=Вставить активный вид (3D Вид)
|Name/ru=Вставить активный вид (3D Вид)
Line 18: Line 19:
|SeeAlso=[[TechDraw_Symbol/ru|Вставить SVG знак]]
|SeeAlso=[[TechDraw_Symbol/ru|Вставить SVG знак]]
}}
}}
</div>


==Описание==
==Описание==


The ActiveView tool inserts a copy of a 3D window into a drawing page.
The ActiveView tool inserts a bitmap image of the active 3D window into a drawing page.


[[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.}}


==Применение==
==Применение==
Line 43: Line 45:
The following can be specified:
The following can be specified:


* {{MenuCommand|Width}}: The width of the generated view.
* {{MenuCommand|Crop}}: Crop the generated bitmap.
* {{MenuCommand|Height}}: The height of the generated view.
* {{MenuCommand|Width}}: The width (in mm) to crop the generated view.
* {{MenuCommand|Border}}: The amount of empty space to be left around the view (but within Width x Height).
* {{MenuCommand|Height}}: The height (in mm) to crop the generated view.
* {{MenuCommand|Background}}: If checked a background with the specified color is added.
* {{MenuCommand|No Background}}: If checked, the generated bitmap will have a transparent background.
* {{MenuCommand|Line Width}}: The thickness of the lines in the view.
* {{MenuCommand|Solid Background}}: If checked, the generated will have a background of the selected color.
* {{MenuCommand|Use 3d Background}}: If checked, the generated bitmap will use the background from the 3d window.
* {{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.


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


* ActiveViews 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.
* An ActiveView behind the scenes is a [[TechDraw_Symbol|Symbol]]. Its {{PropertyData|Scale Type}} is therefore always initialized as {{Value|Custom}}.
* An ActiveView behind the scenes is an [[TechDraw_Image|Image]]. Its {{PropertyData|Scale Type}} is therefore always initialized as {{Value|Custom}}.
* In {{VersionMinus|0.20}} ActiveView was a [[TechDraw_Symbol|Symbol]].
* This tool is still somewhat '''Experimental'''.


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


See [[TechDraw_Symbol|TechDraw Symbol]].
See [[TechDraw_Image#Properties|TechDraw Image]].


==Программирование==
==Программирование==
Line 70: Line 66:
{{Emphasis|См. так же:}} [[TechDraw_API/ru|TechDraw API]] и [[FreeCAD_Scripting_Basics/ru|Основы составления скриптов FreeCAD]].
{{Emphasis|См. так же:}} [[TechDraw_API/ru|TechDraw API]] и [[FreeCAD_Scripting_Basics/ru|Основы составления скриптов FreeCAD]].


The ActiveView tool can be used in [[Macros|macros]] and from the [[Python|Python]] console by using the following functions:
The ActiveView tool is not available for [[Macros|macros]] or the [[Python|Python]] console. Use [[Std_ViewScreenShot|Std_ViewScreenShot]] instead.

{{Code|code=
import TechDrawGui
TechDrawGui.copyActiveViewToSvgFile(Gui.ActiveDocument.ActiveView,"myFile.svg")
}}





Revision as of 06:40, 15 September 2022

Other languages:

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

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

Описание

The ActiveView tool inserts a bitmap image of the active 3D window into a drawing page.

A simple view from the 3D model.

Применение

  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:

  • Crop: Crop the generated bitmap.
  • Width: The width (in mm) to crop the generated view.
  • Height: The height (in mm) to crop the generated view.
  • No Background: If checked, the generated bitmap will have a transparent background.
  • Solid Background: If checked, the generated will have a background of the selected color.
  • Use 3d Background: If checked, the generated bitmap will use the background from the 3d window.

Примечания

  • ActiveViews are static once generated, they are never updated with changes to the 3D model.
  • An ActiveView behind the scenes is an Image. Its ДанныеScale Type is therefore always initialized as Custom.
  • In version 0.20 and below ActiveView was a Symbol.

Свойства

See TechDraw Image.

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

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

The ActiveView tool is not available for macros or the Python console. Use Std_ViewScreenShot instead.