Macro FCInfo Alternate Linux

From FreeCAD Documentation
Revision as of 12:16, 18 December 2018 by Mario52 (talk | contribs) (Created page with "[http://forum.freecadweb.org/viewtopic.php?f=10&t=3185&p=48579#p48579 Oder im Forum]")

Macro FCInfo Alternate Linux

Beschreibung
Gibt eine Reihe von Informationen im Formular aus (nur für PQt4).

Versionsmakro : 1.12
Datum der letzten Änderung : 2014-03-05
Autor: Mario52
Autor
Mario52
Herunterladen
None
Links
Macro-Version
1.12
Datum der letzten Änderung
2014-03-05
FreeCAD-Version(s)
None
Standardverknüpfung
None
Siehe auch
None

Beschreibung

Gibt eine Reihe von Informationen über die ausgewählte Form und kann eine Umwandlung von Länge, Neigung (Grad, Bogenmaß, Neigung, Fließvermögen), Form, Oberfläche, Volumen und Gewicht der Form in der ausgewählten Dichte in verschiedenen Mengeneinheiten international und englisch anzeigen -Saxon (nur für PyQt4).

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://gist.githubusercontent.com/mario52a/6c6b6131b0c14d800033/raw/ffa3d6857abb0ea207cee1ae13c1cb78edadbcf5/FCInfo_fr_Ver_1-12_No_Docked_Ubuntu.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://gist.githubusercontent.com/mario52a/6c6b6131b0c14d800033/raw/ffa3d6857abb0ea207cee1ae13c1cb78edadbcf5/FCInfo_fr_Ver_1-12_No_Docked_Ubuntu.FCMacro")


Der Server akzeptiert für den Moment keine weiteren Seiten von 64 KB und es war nicht möglich, diese Seite für mich zu aktualisieren und wiederherzustellen.

Skript

Laden Sie die Datei hier herunter:

FCInfo_en_Ver_1-12_No_Docked_Ubuntu.FCMacro.zip

Oder im Forum

The difference between the regular version and the version "Ubuntu" in another type of encoding of the characters above + 128 with the procedure
PS: this version is derived from the original version, the difference is located at the level of encoding ² ³ ° µ characters that can cause the error "ordinal not in range (128)" on some configurations ?

Example :

global uniteSs       ; uniteSs       = u"mm²"
global uniteVs       ; uniteVs       = u"mm³"
global uniteAs       ; uniteAs       = u"°"

replace to :

global uniteSs       ; uniteSs       = "mm"+iso8859(unichr(178))
global uniteVs       ; uniteVs       = "mm"+iso8859(unichr(179))
global uniteAs       ; uniteAs       = iso8859(unichr(176))

Files saved with this macro are incompatible with the files of the other versions.

Both versions can operate independently of the OS used.