Arch RemoveShape/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/> |
||
{{docnav|[[Arch_SelectNonSolidMeshes|Select non-solid meshes]]|[[Arch_CloseHoles|Close Holes]]|[[Arch_Module|Arch]]}} |
|||
<div class="mw-translate-fuzzy"> |
|||
{{GuiCommand/ru |
{{GuiCommand/ru |
||
|Name=Arch RemoveShape |
|Name=Arch RemoveShape |
||
Line 6: | Line 9: | ||
|SeeAlso=[[Arch MeshToShape/ru|Сетка в фигуру]] |
|SeeAlso=[[Arch MeshToShape/ru|Сетка в фигуру]] |
||
}} |
}} |
||
</div> |
|||
==Description== |
==Description== |
||
Line 13: | Line 17: | ||
==How to use== |
==How to use== |
||
# Select an [[Arch Wall]] or [[Arch Structure]] |
# Select an [[Arch Wall]] or [[Arch Structure]]. |
||
# Press the {{ |
# Press the {{Button|[[Image:Arch RemoveShape.svg|16px]] [[Arch RemoveShape|Remove Shape]]}} entry in {{MenuCommand|Arch → Utilities → Remove Shape}}. |
||
==Scripting== |
==Scripting== |
||
{{Emphasis|See also:}} [[Arch API]] and [[FreeCAD Scripting Basics]]. |
|||
This tool can |
This tool can be used in [[macros]] and from the [[Python]] console by using the following function: |
||
{{Code|code= |
{{Code|code= |
||
removeShape |
removeShape(objs, mark=True) |
||
}} |
|||
⚫ | |||
** {{incode|objs}} is a single object, [[Arch Wall]] or [[Arch Structure]], or a list of them. |
|||
* If {{incode|mark}} is {{incode|True}}, objects that cannot be processed by this function will become red. |
|||
{{Code|code= |
|||
import FreeCAD, Draft, Arch |
|||
Box = FreeCAD.ActiveDocument.addObject("Part::Box", "Box") |
|||
Box.Length = 1000 |
|||
Box.Width = 2000 |
|||
Box.Height = 1000 |
|||
FreeCAD.ActiveDocument.recompute() |
|||
Structure = Arch.makeStructure(Box) |
|||
FreeCAD.ActiveDocument.recompute() |
|||
Arch.removeShape(Structure) |
|||
FreeCAD.ActiveDocument.recompute() |
|||
}} |
}} |
||
{{docnav|[[Arch_SelectNonSolidMeshes|Select non-solid meshes]]|[[Arch_CloseHoles|Close Holes]]|[[Arch_Module|Arch]]}} |
|||
⚫ | |||
<div class="mw-translate-fuzzy"> |
|||
[[Category:Arch/ru]] |
[[Category:Arch/ru]] |
||
</div> |
Revision as of 13:06, 5 February 2019
Arch RemoveShape |
Системное название |
---|
Arch RemoveShape |
Расположение в меню |
Архитектура → Утилиты → Удалить форму из Архитектуры |
Верстаки |
Arch |
Быстрые клавиши |
Нет |
Представлено в версии |
- |
См. также |
Сетка в фигуру |
Description
This tool attempts at removing the inner cubic shape of an Arch Wall or Arch Structure, and adjusting its properties, making it totally parametric. This tool will only work if the underlying shape is cubic (exactly 6 faces, all corners have only right angles).
How to use
- Select an Arch Wall or Arch Structure.
- Press the Remove Shape entry in Arch → Utilities → Remove Shape.
Scripting
See also: Arch API and FreeCAD Scripting Basics.
This tool can be used in macros and from the Python console by using the following function:
removeShape(objs, mark=True)
- Takes a list of Arch objects (
objs
) built on a cubic shape, and removes the inner shape, keeping the length, width and height as properties of the Arch object.objs
is a single object, Arch Wall or Arch Structure, or a list of them.
- If
mark
isTrue
, objects that cannot be processed by this function will become red.
import FreeCAD, Draft, Arch
Box = FreeCAD.ActiveDocument.addObject("Part::Box", "Box")
Box.Length = 1000
Box.Width = 2000
Box.Height = 1000
FreeCAD.ActiveDocument.recompute()
Structure = Arch.makeStructure(Box)
FreeCAD.ActiveDocument.recompute()
Arch.removeShape(Structure)
FreeCAD.ActiveDocument.recompute()