Macro CenterOfMass/fr: Difference between revisions

From FreeCAD Documentation
(Created page with "Téléchargement sur Github")
(Created page with "==Lien==")
Line 41: Line 41:
[https://raw.githubusercontent.com/FreeCAD/FreeCAD-macros/master/Information/CenterOfMass.FCMacro Macro CenterOfMass.FCMacro]
[https://raw.githubusercontent.com/FreeCAD/FreeCAD-macros/master/Information/CenterOfMass.FCMacro Macro CenterOfMass.FCMacro]


==Link==
==Lien==


the forum discussion [https://forum.freecadweb.org/viewtopic.php?f=24&t=31883 Macro to compute center of mass]
the forum discussion [https://forum.freecadweb.org/viewtopic.php?f=24&t=31883 Macro to compute center of mass]

Revision as of 19:50, 14 November 2018

Other languages:

File:Centomass Macro CenterOfMass

Description
Gives the Center of mass multiple of multiple objects selected.

Macro version: 0.1.2
Last modified: 2018-11-10
Author: schupin
Author
schupin
Download
None
Links
Macro Version
0.1.2
Date last modified
2018-11-10
FreeCAD Version(s)
None
Default shortcut
None
See also
None

Description

Donne la masse totale et la position du centre de masse de l'ensemble des objets sélectionnés. Les densités de tous les objets peuvent être données.

Temporary code for external macro link. Do not use this code. This code is used exclusively by Addon Manager. Link for optional manual installation: Macro


# This code is copied instead of the original macro code
# to guide the user to the online download page.
# Use it if the code of the macro is larger than 64 KB and cannot be included in the wiki
# or if the RAW code URL is somewhere else in the wiki.

from PySide import QtGui, QtCore

diag = QtGui.QMessageBox(QtGui.QMessageBox.Information,
    "Information",
    "This macro must be downloaded from this link\n"
    "\n"
    "https://raw.githubusercontent.com/FreeCAD/FreeCAD-macros/master/Information/CenterOfMass.FCMacro" + "\n"
    "\n"
    "Quit this window to access the download page")

diag.setWindowFlags(QtCore.Qt.WindowStaysOnTopHint)
diag.setWindowModality(QtCore.Qt.ApplicationModal)
diag.exec_()

import webbrowser 
webbrowser.open("https://raw.githubusercontent.com/FreeCAD/FreeCAD-macros/master/Information/CenterOfMass.FCMacro")


File:Macro CenterOfMass 01.png

Les valeurs (masse et centre de masse) peuvent être sauvegardés dans une feuille de calcul

File:Macro CenterOfMass 02.png

Utilisation

Sélectionner les objets

Lancer la macro

Script

Fichiers d'icônes à télécharger et coller dans le même répertoire que la macro

Icône de la toolBar

File:Centomass.png


File:SaveIcon.png File:CdgIcon.png File:ComputeIcon.png File:ImportIcon.png File:MaterialIcon.png

Macro CenterOfMass.FCMacro Téléchargement sur Github


Macro CenterOfMass.FCMacro

Lien

the forum discussion Macro to compute center of mass

Version

0.1.2 / 2018-11-10 : xx