Macro FCInfo Alternate Linux: Difference between revisions

From FreeCAD Documentation
(Marked this version for translation)
m ({{Code|code=)
Line 2: Line 2:


<!--T:1-->
<!--T:1-->
{{Macro|Icon=FCInfo|Name=Macro FCInfo Alternate Linux|Description=Gives a series of information on the form.|Author=Mario52}}
{{Macro|Icon=FCInfo|Name=Macro FCInfo Alternate Linux|Description=Gives a series of information on the form.|Author=Mario52|version=1.12}}




Line 28: Line 28:
Example :
Example :
</translate>
</translate>
{{Code|code=
<syntaxhighlight>
global uniteSs ; uniteSs = u"mm²"
global uniteSs ; uniteSs = u"mm²"
global uniteVs ; uniteVs = u"mm³"
global uniteVs ; uniteVs = u"mm³"
global uniteAs ; uniteAs = u"°"
global uniteAs ; uniteAs = u"°"
}}
</syntaxhighlight>
replace to :
replace to :
{{Code|code=
<syntaxhighlight>
global uniteSs ; uniteSs = "mm"+iso8859(unichr(178))
global uniteSs ; uniteSs = "mm"+iso8859(unichr(178))
global uniteVs ; uniteVs = "mm"+iso8859(unichr(179))
global uniteVs ; uniteVs = "mm"+iso8859(unichr(179))
global uniteAs ; uniteAs = iso8859(unichr(176))
global uniteAs ; uniteAs = iso8859(unichr(176))
}}
</syntaxhighlight>
<translate>
<translate>



Revision as of 12:20, 25 September 2016

File:FCInfo Macro FCInfo Alternate Linux

Description
Gives a series of information on the form.

Author: Mario52
Author
Mario52
Download
None
Links
Macro Version
1.0
Date last modified
None
FreeCAD Version(s)
None
Default shortcut
None
See also
None


Gives a series of informations about the selected shape and can display a conversion of length, inclination (degrees, radians, grades, pourcent) shape, surface, volume and the weight of the form in the density selected in different units of quantities international and Anglo-Saxon.


The server does not accept for the moment of the more pages of 64 KB and it was impossible to update and restore this page to me.

Download the file here :

FCInfo_en_Ver_1-12_No_Docked_Ubuntu.FCMacro.zip

Or on the 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.