Macro CenterOfMass

From FreeCAD Documentation
Jump to: navigation, search
This page is a translated version of the page Macro CenterOfMass and the translation is 62% complete.

Outdated translations are marked like this.
Other languages:
English • ‎français • ‎hrvatski • ‎italiano

Macro CenterOfMass.png Makro Središte mise

Opis
Centru daje višestruku masu odabranih više objekata.

Makronaredba verzije : 0.4.1
Datum zadnje izmjene : 2019-05-25
Verzija FreeCAD : 0.18
Preuzimanje datoteka : Download the Macro_CenterOfMass_Icon package and extract it in the same directory of the macro.
Autor
schupin
Preuzimanje datoteka
Download the Macro_CenterOfMass_Icon package and extract it in the same directory of the macro.
Linkovi
Verzija
0.4.1
Datum zadnje izmjene
2019-05-25
Verzije FreeCAD-a
0.18
Zadani prečac
None
Vidi također
None


Opis

Daje ukupnu masu i mjesto središta mase koje proizlazi iz odabranih više objekata. Za svaki objekt mogu se odabrati različite gustoće.

Temporary code for external macro link. Do not use this code. This code is used exclusively by Addon_Installer.


##This code is copied instead of the original macro code

##to guide the user to the offline 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 extra wiki location

import PySide

from PySide import QtGui ,QtCore

diag = QtGui.QMessageBox(QtGui.QMessageBox.Information,u"Information",
    "This macro must by downloaded with this link" + "\n"
    " " + "\n"
    "https://raw.githubusercontent.com/chupins/FreeCAD-macros/SC_Branch/Information/CenterOfMass.FCMacro" + "\n"
    " " + "\n"
    "Quit this window for access in the download page" )

diag.setWindowFlags(PySide.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")
<class="rawcodeurl"><a href="https://raw.githubusercontent.com/chupins/FreeCAD-macros/SC_Branch/Information/CenterOfMass.FCMacro">raw code</a>


Macro CenterOfMass 01.png

Vrijednosti (masa i središte mase) mogu se spremiti u proračunskoj tablici

Macro CenterOfMass 02.png


Kako koristiti

Odaberite objekte

Pokrenite makronaredbu

Skripta

preuzmite datoteku s ikonom i zalijepite ju u podmapu pod nazivom CenterOfMass u direktoriju makronaredbe

Ikona alatne trake

Macro CenterOfMass.png

Macro CenterOfMass save.png Macro CenterOfMass com.png Macro CenterOfMass compute.png Macro CenterOfMass import.png Macro CenterOfMass material.pngMacro CenterOfMass colorify.png

Download the Macro_CenterOfMass_Icon package and extract it in the same directory of the macro.


Macro CenterOfMass.FCMacro Preuzmite u Github


Macro CenterOfMass.FCMacro


Poveznice

Raspravu na forumu Macro to compute center of mass

Verzija

0.4.1 / 2019-05-25 : add default density button, sphere cursor, change window behavior, correct a container part issue

0.2.3 / 2018-11-22 : new icon name

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.1.2 / 2018-11-10 : xx

0.1.2 / 2018-11-10 : xx