Macro CenterOfMass
Descrizione |
---|
Fornisce il centro di massa degli oggetti selezionati. Versione macro: 0.4.1 Ultima modifica: 2019-05-25 Versione FreeCAD: 0.18 Download: Scaricare il pacchetto Macro_CenterOfMass_Icon e posizionarlo nella stessa directory della macro. Autore: schupin |
Autore |
schupin |
Download |
Scaricare il pacchetto Macro_CenterOfMass_Icon e posizionarlo nella stessa directory della macro. |
Link |
Raccolta di macro Come installare le macro Personalizzare la toolbar |
Versione macro |
0.4.1 |
Data ultima modifica |
2019-05-25 |
Versioni di FreeCAD |
0.18 |
Scorciatoia |
Nessuna |
Vedere anche |
Nessuno |
Descrizione
Fornisce la massa totale e la posizione del centro di massa risultante da più oggetti selezionati. È possibile scegliere diverse densità per ciascun oggetto.
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/chupins/FreeCAD-macros/SC_Branch/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/chupins/FreeCAD-macros/SC_Branch/Information/CenterOfMass.FCMacro")
File:Macro CenterOfMass 01.png
I valori (massa e centro di massa) possono essere salvati in un foglio di calcolo
Utilizzo
Selezionare gli oggetti
Lanciare la macro
Script
Scaricare e incollare i file icona in una sottodirectory denominata CenterOfMass nella directory delle macro
Icona per la barra degli strumenti
File:Macro CenterOfMass save.png File:Macro CenterOfMass com.png File:Macro CenterOfMass compute.png File:Macro CenterOfMass import.png File:Macro CenterOfMass material.pngFile:Macro CenterOfMass colorify.png
Download the Macro_CenterOfMass_Icon package and extract it in the same directory of the macro.
Macro CenterOfMass.FCMacro Download in Github
Link
La discussione nel forum Macro to compute center of mass
Versione
0.4.1 / 2019-05-25 : add default density button, sphere cursor, change window behavior, correct a container part issue
0.3.6 / 2019-05-22 : Radius of pheres representing centers of mass of each solid depends on each masses
0.3.5 / 2019-05-21 : Arrays and clone correction
0.3.4 / 2019-03-18 : minor
0.3.3 / 2019-03-17 : loading .csv corrections
0.3.2 / 2019-03-14 : add a colorify push button to add color on shapes depending on their density
0.3.0 / 2019-03-03 : python 3 compatibility
0.2.3 / 2018-11-22 : new icon name
0.1.2 / 2018-11-10 : xx