Arch Frame/ru: Difference between revisions
Renatorivo (talk | contribs) (Created page with "Category:Arch/ru") |
(Updating to match new version of source page) |
||
Line 1: | Line 1: | ||
<languages/> |
<languages/> |
||
<div class="mw-translate-fuzzy"> |
|||
{{GuiCommand/ru |
{{GuiCommand/ru |
||
|Name=Arch Frame |
|Name=Arch Frame |
||
Line 7: | Line 8: | ||
|Shortcut=F R |
|Shortcut=F R |
||
}} |
}} |
||
</div> |
|||
==Определение== |
==Определение== |
||
Line 13: | Line 15: | ||
[[Image:Arch Frame example.jpg|640px]] |
[[Image:Arch Frame example.jpg|640px]] |
||
<div class="mw-translate-fuzzy"> |
|||
''На приведенном выше рисунке [[Draft Line|line]] была преобразована в [[Массив массива]], а объект фрейма был создан с использованием массива как макета, а [[Draft Circle|circle]] как профиль.'' |
''На приведенном выше рисунке [[Draft Line|line]] была преобразована в [[Массив массива]], а объект фрейма был создан с использованием массива как макета, а [[Draft Circle|circle]] как профиль.'' |
||
</div> |
|||
==How to use== |
==How to use== |
||
# Create a layout object and a profile object, for example with the [[Draft Workbench]] or the [[Sketcher Workbench]] |
# Create a layout object and a profile object, for example with the [[Draft Workbench]] or the [[Sketcher Workbench]]. |
||
# Select the layout object first, then, with {{KEY| |
# Select the layout object first, then, with {{KEY|Ctrl}} pressed, select the profile object. |
||
# Press the {{ |
# Press the {{Button|[[Image:Arch Frame.svg|16px]] [[Arch Frame]]}} button, or press {{KEY|F}} then {{KEY|R}} keys. |
||
==Options== |
==Options== |
||
Line 37: | Line 40: | ||
==Scripting== |
==Scripting== |
||
{{Emphasis|See also:}} [[Arch API]] and [[FreeCAD Scripting Basics]]. |
|||
The Frame tool can |
The Frame tool can be used in [[macros]] and from the [[Python]] console by using the following function: |
||
{{Code|code= |
{{Code|code= |
||
⚫ | |||
makeFrame ( layout,profile ) |
|||
}} |
}} |
||
* Creates a |
* Creates a {{incode|Frame}} object from the given {{incode|baseobj}} and {{incode|profile}}. |
||
** {{incode|baseobj}} is any object containing wires, like a [[Draft Wire]], or a [[Draft Array]] with a collection of them. |
|||
* Returns the new frame object, or None if the operation failed. |
|||
** {{incode|profile}} is an extrudable 2D object containing faces or closed wires. |
|||
Пример: |
Пример: |
||
{{Code|code= |
{{Code|code= |
||
import Draft, Arch |
import Draft, Arch |
||
Line = Draft.makeLine(FreeCAD.Vector(0, 0, 0), FreeCAD.Vector(0, 0, 2000)) |
|||
⚫ | |||
baseobj = Draft.makeArray(Line, FreeCAD.Vector(1000, 0, 0), FreeCAD.Vector(0, 1, 0), 6, 1) |
|||
⚫ | |||
⚫ | |||
Frame = Arch.makeFrame(baseobj, profile) |
|||
FreeCAD.ActiveDocument.recompute() |
|||
}} |
}} |
||
<div class="mw-translate-fuzzy"> |
|||
[[Category:Arch/ru]] |
[[Category:Arch/ru]] |
||
</div> |
Revision as of 20:58, 3 February 2019
Arch Frame |
Системное название |
---|
Arch Frame |
Расположение в меню |
Архитектура -> Каркас |
Верстаки |
Arch |
Быстрые клавиши |
F R |
Представлено в версии |
- |
См. также |
Нет |
Определение
Инструмент «Рамка» используется для создания всех видов объектов фрейма на основе профиля и макета. Профиль экструдируется по краям макета, который может быть любым 2D-объектом, таким как sketch или draft object. Особенно полезно создавать перила или стены рамы. Объекты кадра затем могут быть легко превращены в объекты wall или structure .
На приведенном выше рисунке line была преобразована в Массив массива, а объект фрейма был создан с использованием массива как макета, а circle как профиль.
How to use
- Create a layout object and a profile object, for example with the Draft Workbench or the Sketcher Workbench.
- Select the layout object first, then, with Ctrl pressed, select the profile object.
- Press the Arch Frame button, or press F then R keys.
Options
- Frames share the common properties and behaviours of all Arch Components
- The frame object can be placed at a certain distance from the layout object, by setting its Offset property
- The profile will be copied at the base of each edge of the layout object, then extruded along it. You can control how the profile is placed at the base of each edge with the Align and Rotation properties.
Properties
- ДанныеBase: The layout this frame is based on.
- ДанныеProfile: The profile this frame is based on.
- ДанныеAlign: Specifies if the profile must be rotated to have its normal axis aligned with each edge.
- ДанныеOffset: An optional distance between the layout object and the frame object.
- ДанныеRotation: The rotation of the profile around its extrusion axis.
Scripting
See also: Arch API and FreeCAD Scripting Basics.
The Frame tool can be used in macros and from the Python console by using the following function:
Frame = makeFrame(baseobj, profile)
- Creates a
Frame
object from the givenbaseobj
andprofile
.baseobj
is any object containing wires, like a Draft Wire, or a Draft Array with a collection of them.profile
is an extrudable 2D object containing faces or closed wires.
Пример:
import Draft, Arch
Line = Draft.makeLine(FreeCAD.Vector(0, 0, 0), FreeCAD.Vector(0, 0, 2000))
baseobj = Draft.makeArray(Line, FreeCAD.Vector(1000, 0, 0), FreeCAD.Vector(0, 1, 0), 6, 1)
profile = Draft.makeCircle(200)
Frame = Arch.makeFrame(baseobj, profile)
FreeCAD.ActiveDocument.recompute()