Arch Survey: Difference between revisions

From FreeCAD Documentation
No edit summary
m (grammar + refinements)
(9 intermediate revisions by 4 users not shown)
Line 2: Line 2:
<translate>
<translate>
<!--T:15-->
<!--T:15-->
{{Docnav
{{docnav|[[Arch_Remove|Remove component]]|[[Arch_Component|Component]]|[[Arch_Module|Arch]]|IconL=Arch_Remove.svg |IconC=Workbench_Arch.svg |IconR=Arch_Component.svg}}
|[[Arch_Remove|Remove component]]
|[[Arch_Component|Component]]
|[[Arch_Module|Arch]]
|IconL=Arch_Remove.svg
|IconR=Arch_Component.svg
|IconC=Workbench_Arch.svg
}}


<!--T:1-->
<!--T:1-->
Line 8: Line 15:
|Name=Arch Survey
|Name=Arch Survey
|MenuLocation=Arch → Survey
|MenuLocation=Arch → Survey
|Workbenches=[[Arch Module|Arch]]
|Workbenches=[[Arch_Module|Arch]]
|SeeAlso=[[File:FCInfo.png|FCInfo|24px]] [[Macro FCInfo|FCInfo (macro)]]
|SeeAlso=[[Macro_FCInfo|Macro FCInfo]], [[Macro_SimpleProperties|Macro SimpleProperties]]
}}
}}


Line 15: Line 22:


<!--T:3-->
<!--T:3-->
The survey tool enters a special surveying mode, which allows you to quickly grab measures and information from a model, and transfer that information to other applications. Once you are in Survey mode, clicking on different subelements of 3D objects gathers the following information, depending on what you click:
The {{Button|[[Image:Arch_Survey.svg|16px]] [[Arch_Survey|Arch Survey]]}} tool enters a special surveying mode, which allows you to quickly grab measurements and information from a model, and transfer that information to other applications. Once you are in Survey mode, clicking on different subelements of 3D objects gathers the following information (depending on what you click):


<!--T:4-->
<!--T:4-->
Line 40: Line 47:
''The above image shows what happens when running the survey mode.''
''The above image shows what happens when running the survey mode.''


==How to use== <!--T:8-->
==Usage== <!--T:8-->


<!--T:9-->
<!--T:9-->
# Press the {{Button|[[Image:Arch Survey.svg|16px]] [[Arch Survey]]}} button.
# Press the {{Button|[[Image:Arch Survey.svg|16px]] [[Arch_Survey|Arch Survey]]}} button.
# Click on vertices, edges, faces or double-click to select whole objects.
# Click on vertices, edges, faces or double-click to select whole objects.
# Click outside any geometry (on the background of the 3D view) to remove existing labels, print a total line in the Task dialog, and restart counting lengths and areas from zero.
# Click outside any geometry (on the background of the 3D view) to remove existing labels, print a total line in the Task dialog, and restart counting lengths and areas from zero.
Line 59: Line 66:


==Scripting== <!--T:10-->
==Scripting== <!--T:10-->
{{Emphasis|See also:}} [[Arch API]] and [[FreeCAD Scripting Basics]].
{{Emphasis|See also:}} [[Arch_API|Arch API]] and [[FreeCAD_Scripting_Basics|FreeCAD Scripting Basics]].


<!--T:11-->
<!--T:11-->
The Survey tool doesn't have a programming interface, but gathering but gathering the same information from any selected [[Part Module|Part]]-based object is reproduced with the following script:
The Survey tool doesn't have a programming interface, but gathering the same information from any selected [[Part Module|Part]]-based object is reproduced with the following script:

</translate>
</translate>
{{Code|code=
{{Code|code=
Line 77: Line 85:
}}
}}
<translate>
<translate>

<!--T:16-->
<!--T:16-->
{{Docnav
{{docnav|[[Arch_Remove|Remove component]]|[[Arch_Component|Component]]|[[Arch_Module|Arch]]|IconL=Arch_Remove.svg |IconC=Workbench_Arch.svg |IconR=Arch_Component.svg}}
|[[Arch_Remove|Remove component]]
|[[Arch_Component|Component]]
|[[Arch_Module|Arch]]
|IconL=Arch_Remove.svg
|IconR=Arch_Component.svg
|IconC=Workbench_Arch.svg
}}


{{Arch Tools navi}}


{{Userdocnavi}}
</translate>
</translate>
{{Arch Tools navi{{#translation:}}}}
{{Userdocnavi{{#translation:}}}}

Revision as of 13:17, 15 December 2020

Arch Survey

Menu location
Arch → Survey
Workbenches
Arch
Default shortcut
None
Introduced in version
-
See also
Macro FCInfo, Macro SimpleProperties

Description

The Arch Survey tool enters a special surveying mode, which allows you to quickly grab measurements and information from a model, and transfer that information to other applications. Once you are in Survey mode, clicking on different subelements of 3D objects gathers the following information (depending on what you click):

  • If you click on an edge, you get its length
  • If you click on a vertex, you get its height (coordinate on the Z axis)
  • If you click on a face, you get its area
  • If you double-click anything, therefore select the whole object, you get its volume

When such a piece of information is gathered, several things happen:

  • A label is placed on top of the element you clicked, that displays the value (with "a" for area, "l" for length, "z" for height, or "v" for volume)
  • The numeric value is copied to the clipboard, so you can paste it in another application
  • A line is printed on the FreeCAD output window. After you exit the survey mode, those lines can be copied and pasted in another application (the values are comma-separated, making it easy to convert to spreadsheet data)
  • The total length or area of the elements you clicked so far is also printed in the output window
  • Each length or area is also recorded in the task dialog

The above image shows what happens when running the survey mode.

Usage

  1. Press the Arch Survey button.
  2. Click on vertices, edges, faces or double-click to select whole objects.
  3. Click outside any geometry (on the background of the 3D view) to remove existing labels, print a total line in the Task dialog, and restart counting lengths and areas from zero.
  4. Press Esc or the Close button to exit survey mode and remove all the labels.

Options

  • You can add a custom label to any line in the Task dialog by clicking that line, then adding a text in the description field, then press the set description button.
  • Once you are done, before closing, you can export the contents of the Task dialog by pressing the "export CSV" button. The resulting CSV file can then be opened in any spreadsheet application such as Excel or LibreOffice Calc. The values and units will be separated in the resulting CSV file, and the totals are written as SUM() functions.

Scripting

See also: Arch API and FreeCAD Scripting Basics.

The Survey tool doesn't have a programming interface, but gathering the same information from any selected Part-based object is reproduced with the following script:

import FreeCADGui

selection = FreeCADGui.Selection.getSelectionEx()

for obj in selection:
    for element in obj.SubObjects:
        print("Area: %f", element.Area)
        print("Length: %f", element.Length)
        print("Volume: %f", element.Volume)
        print("Center of Mass: %f", element.CenterOfMass)