Arch Survey: Difference between revisions

From FreeCAD Documentation
mNo edit summary
No edit summary
Line 15: Line 15:


<!--T:5-->
<!--T:5-->
When such a piece of information is gathered, three things happen:
When such a piece of information is gathered, several things happen:


<!--T:6-->
<!--T:6-->
Line 21: Line 21:
* The numeric value is copied to the clipboard, so you can paste it in another application
* 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)
* 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


</translate>
</translate>
Line 34: Line 36:
# Press the {{KEY|[[Image:Arch Survey.png|16px]] [[Arch Survey]]}} button
# Press the {{KEY|[[Image:Arch Survey.png|16px]] [[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
# Press {{KEY|ESC}} or the {{KEY|'''Cancel'''}} button to exit survey mode and remove all the labels.
# Press {{KEY|ESC}} or the {{KEY|'''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.

</translate>
[[Image:Arch Survey spreadsheet.jpg|640px]]
<translate>


==Scripting== <!--T:10-->
==Scripting== <!--T:10-->

Revision as of 19:28, 22 September 2017

Arch Survey

Menu location
Arch → Survey
Workbenches
Arch
Default shortcut
None
Introduced in version
-
See also
FCInfo (macro)

Description

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:

  • 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.

How to use

  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

The Survey mode cannot be used directly from python scripts, but gathering the same information from any selected Part-based object is easy reproduced with the following script:

import FreeCADGui
selection = FreeCADGui.Selection.getSelectionEx()
for obj in selection:
   for element in obj.SubObjects:
       print "Area: ", element.Area
       print "Length: ", element.Length
       print "Volume: ", element.Volume
       print "Center of Mass: ", element.CenterOfMass