Macro FCInfo/cs

Dává sérii informací o vybraném tvaru a může zobrazit konverzi délky, sklonu (stupně, radiány) tělesa, povrchu a váhy tvaru s měrnou hmotností vybranou v různých jednotkách hmotnosti mezinárodních i Anglo-Saských.



Použití
Vyberete objekt nebo spustíte aplikaci a vyberete objekt a zobrazí se řada informací. Jeho výpočty založené na jednotce FreeCADu, což je mm pro kažbý nový výběr, vrací vždy délku v mm a úhel v dekadických stupních.

Once launched macro, the macro remains active and the window remains visible. To exit the macro by pressing. If you leave by the cross, the macro remains in memory and the data appears in the "report view" of FreeCAD.

Length unit:
km, hm, dam, m, dm, cm, mm, inch, link, foot, yard, perch, chain, furlong, mile, league, nautique.

Angle degrees :
Understanding of angles in FCInfo display.
 * 1) decimal degree, ex: 174.831872611°
 * 2) degree minute seconde, ex: 174° 49' 54.741401''
 * 3) radian, ex: 3.05139181449 rad
 * 4) grade, ex: 194.257636235 gon

Weight unit :
ton, quintal, kg, hg, dag, gram, dg, cg, mg, gr (grain), dr (drachm), oz (once), oz t (once troy),

lb t (livre troy), lb (livre av), st (stone), qtr (quarter), cwt (hundredweight)

the "spinBox" is set to 7,5 kg, average density of steel. If you want a different default value, change the value of the density, line 164

A file can be created by the button. The file is written as a file csv in this way, the data can be studied in a spreadsheet.

Script
Copy the contents of the macro in a file named "FCInfo.FCMacro" (for Windows) in "C:\Program Files\FreeCAD0.13".

Or, directly in the interface of FreeCAD

The icon must be in the same directory as the macro for Windows "C:\Program Files\FreeCAD0.13".

Download image positioning on the icon   and then drag the mouse right click "save as" (do not change the name)

Limitations
Always leave the button. If one exits the program without going through the button the program remains in memory and continues to run and the display will remain in the "view report". You must leave FreeCAD to erase it from memory.

Only the first 200 elements of the object are visible in the table if there are more than 200 items in the object a signal will be displayed by "'(! +200)" '. The complete list of data is visible in the file saved by the button.

PS : This version is not definitive.

project:

read the file directly in a table. done

matches the "Edges" and their coordinates done

Association of a substance to its density

inclination on the element rather than the global object done

a button on the toolbar

inlay right in the interface of FreeCAD

currently:

ver 1.10.b, 19/11/2013 buttons outside the scrollbar and the dimensions of the window blocking

(ver 1.10, 18/11/2013 create scrollbar)

ver 1.08.b, 10/11/2013 translation units in English, error correction to display the area of the faces listed in the table and replacement of the"print" by "App.Console.PrintMessage"

ver 1.09, 04/11/2013 works perfectly on Windows and Linux (cause of errors on Linux the characters : ² ³ ° "ordinal not in range(128)")

In a Linux distribution and in the case of an error of "ordinal not in range (128)" an alternative version exists on this page Macro_FCInfo_Alternate_Linux

ver 1.08, 24/10/2013 correction of high top "Faces" and "Edges" displaying 100 objects (in the saved file)

ver 1.07, 11/10/2013 matches the "Faces" and their coordinates.

ver 1.06, 22/09/2013 matches the "Edges" and their coordinates, inclination on the element rather than the global object

ver 1.05, 17/09/2013 added an icon for the spreadsheet, conversion barrel fr, affichage des dimensions overall instead of coordinates.

ver 1.04, 11/09/2013: read the file directly in a table.

ver 1.03, 09/09/2013: clearer display in view report and replacement by "typeObject = sel[0].Shape.ShapeType"

ver 1.02, 7/09/2013 : small updates

ver 1.00, 6/09/2013

You can share your comments on the forum Info Workbench - Help with icons please.