Macro ObjectInfo: Difference between revisions

From FreeCAD Documentation
m (icone)
mNo edit summary
 
(10 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<languages/>
<languages/>
<translate>
<translate>

<!--T:1-->
<!--T:1-->
{{Macro
{{Macro
|Name=Macro ObjectInfo
|Name=Macro ObjectInfo
|Description=This WorkBench lets you know the volume information surface area, center of mass and moment of intertia of the selected object.
|Description=This WorkBench lets you know the volume information surface area, center of mass and moment of intertia of the selected object.<br><br>This is not a macro but one WorkBench, uncompress the .zip file and paste the complete directory in the Mod user directory [https://github.com/KeithSloan/FreeCAD_Info/archive/master.zip Info]
|Author=keithsloan52
|Author=keithsloan52
|Version=1.0
|Version=1.0
|Date=2012-11-09
|Date=2012-11-09
|FCVersion=0.17 and PyQt4
|FCVersion=Until 0.17 '''and PyQt4'''
|Download=[https://wiki.freecad.org/images/2/29/Macro_ObjectInfo.png ToolBar Icon]
|Download=This is not a macro but one WorkBench, uncompress the .zip file and paste the complete directory in the Mod workBench [http://keithsloan.dynu.com/Keith&Jenny/FreeCAD/Info/Info.zip Info]
|SeeAlso=[[Arch_Survey|Arch Survey]]
}}
}}


==Description== <!--T:2-->
==Description== <!--T:11-->

<!--T:2-->
This WorkBench lets you know the volume information surface area, center of mass and moment of intertia of the selected object.
This WorkBench lets you know the volume information surface area, center of mass and moment of intertia of the selected object.


Line 23: Line 27:
If you're on Linux, you need to create a folder named "Mod" in the .FreeCAD hidden folder which is located in your Home folder. Then create a folder named "Info" in the "Mod" folder, and extract the content of the archive in it. On Windows, I have no idea where that would be. Use the same procedure to Windows in C:\Program Files\FreeCAD\Mod.
If you're on Linux, you need to create a folder named "Mod" in the .FreeCAD hidden folder which is located in your Home folder. Then create a folder named "Info" in the "Mod" folder, and extract the content of the archive in it. On Windows, I have no idea where that would be. Use the same procedure to Windows in C:\Program Files\FreeCAD\Mod.


==How to use== <!--T:5-->
==Usage== <!--T:12-->

Then start FreeCAD, open your STEP file and switch to the "Info" workbench with the workbench switcher or by going to the View --> Workbench menu. Now select your solid, and click on the "Info" icon; the left taskbar will show some information on the model, including volume, surface area, center of mass and moment of intertia.
<!--T:5-->
Then start FreeCAD, open your STEP file and switch to the "Info" workbench with the workbench switcher or by going to the View Workbench menu. Now select your solid, and click on the "Info" icon; the left taskbar will show some information on the model, including volume, surface area, center of mass and moment of intertia.


==Code== <!--T:9-->
==Code== <!--T:9-->

</translate>
</translate>
{{Code|code=
{{MacroCode|code=
import webbrowser
import webbrowser


Line 36: Line 43:
##########
##########


FreeCAD.Console.PrintMessage("\n" + "You must download the Info.zip file in the author keithsloan site" + "\n")
FreeCAD.Console.PrintMessage("\n" + "You must download the Info.zip file in the author github KeithSloan/FreeCAD_Infosite" + "\n")
FreeCAD.Console.PrintMessage("http://keithsloan.dynu.com/Keith&Jenny/" + "\n")
FreeCAD.Console.PrintMessage("http://keithsloan.dynu.com/Keith&Jenny/" + "\n")
webbrowser.open("http://keithsloan.dynu.com/Keith&Jenny/FreeCAD/Info/Info.zip")
webbrowser.open("https://github.com/KeithSloan/FreeCAD_Info/archive/master.zip")


}}
}}
<translate>
<translate>

==Links== <!--T:6-->
==Links== <!--T:13-->

<!--T:6-->
A FreeCAD user created a user-friendly "Info" module which you can get here: http://www.sloan-home.co.uk/FreeCAD/Info/Info.html
A FreeCAD user created a user-friendly "Info" module which you can get here: http://www.sloan-home.co.uk/FreeCAD/Info/Info.html


Line 50: Line 60:


</translate>
</translate>
{{clear}}

Latest revision as of 22:01, 29 December 2023

Macro ObjectInfo

Description
This WorkBench lets you know the volume information surface area, center of mass and moment of intertia of the selected object.

This is not a macro but one WorkBench, uncompress the .zip file and paste the complete directory in the Mod user directory Info

Macro version: 1.0
Last modified: 2012-11-09
FreeCAD version: Until 0.17 and PyQt4
Download: ToolBar Icon
Author: keithsloan52
Author
keithsloan52
Download
ToolBar Icon
Links
Macro Version
1.0
Date last modified
2012-11-09
FreeCAD Version(s)
Until 0.17 and PyQt4
Default shortcut
None
See also
Arch Survey

Description

This WorkBench lets you know the volume information surface area, center of mass and moment of intertia of the selected object.

Installation

If you're on Linux, you need to create a folder named "Mod" in the .FreeCAD hidden folder which is located in your Home folder. Then create a folder named "Info" in the "Mod" folder, and extract the content of the archive in it. On Windows, I have no idea where that would be. Use the same procedure to Windows in C:\Program Files\FreeCAD\Mod.

Usage

Then start FreeCAD, open your STEP file and switch to the "Info" workbench with the workbench switcher or by going to the View → Workbench menu. Now select your solid, and click on the "Info" icon; the left taskbar will show some information on the model, including volume, surface area, center of mass and moment of intertia.

Code

import webbrowser 

##########
# WorkBenche
# Code used to download the zip file from FreeCAD
##########

FreeCAD.Console.PrintMessage("\n" + "You must download the Info.zip file in the author github KeithSloan/FreeCAD_Infosite" + "\n")
FreeCAD.Console.PrintMessage("http://keithsloan.dynu.com/Keith&Jenny/" + "\n")
webbrowser.open("https://github.com/KeithSloan/FreeCAD_Info/archive/master.zip")

Links

A FreeCAD user created a user-friendly "Info" module which you can get here: http://www.sloan-home.co.uk/FreeCAD/Info/Info.html

From Forum Info Workbench - Help with icons please.