Macro FCInfoGlass/en

Gives a series of informations about the selected shape and can display a directly in the 3D view



Utilisation
Select an object or launch the application and select an object, and a series of informations appear on the 3D View.

Modify this line to move the data display in the screen (lines 147, 148)
 * 300, 190 = position X, Y upper left corner

Modify this line for change color (line 92)

Examples:
Availlable :  "black" "white" "red" "green" "blue" "yellow" "magenta" "cyan" 

This section hare switch give value 1 for displayed the info or 0 for not displayed the info

EX:

is displayed

is not displayed The section lines 84 to 102

global colorize             ; colorize                      ="black" # colorize the text choice                       "defaut  = "black"                                                                      # "black" "white" "red" "green" "blue" "yellow" "magenta" "cyan"
 * 1) Section color                                                       #
 * 1) Section color                                                       #

global mode                 ; mode                            = 1    # mode 1=degrees mode 0=radians                  "defaut  = 1" global arondi               ; arondi                          = 4    # many numbers after the decimal point           "defaut  = 4" global chaineRemplacement   ; chaineRemplacement              = "_"  # replacement string (1 character)               "defaut  = "_"
 * 1) Section inter                                                       #
 * 1) Section inter                                                       #

global PrintReportView      ;PrintReportView                  = 0    # Affichage dans la vue rapport                  #0  Displayed ReportView global DocumentName         ;DocumentName                     = 1    # Nom du document                                #1  Document Name global InternalName         ;InternalName                     = 1    # Nom interne de l'objet                         #2  Internal Name global LabelObject          ;LabelObject                      = 1    # Label                                          #3  Label Object global ElementName          ;ElementName                      = 1    # Nom de l'element                               #4  Element Name global ObjectType           ;ObjectType                       = 1    # Type d'objet                                   #5  Object Type global LineSeparateTitle    ;LineSeparateTitle                = 1    # ligne de separation des titres ____________    #6  Line Separate of Title global ObjectLength         ;ObjectLength                     = 1    # longueur Objet ou perimetre                    #7  Object Length or perimetre
 * 1) section switch
 * 2) if switch = 1 then actif (True Displayed) else inactif (False not Displayed)
 * 1) if switch = 1 then actif (True Displayed) else inactif (False not Displayed)

global LineDimension        ;LineDimension                    = 1    # Dimensions Line                                #8  Line Dimension global DWireDimension       ;DWireDimension                   = 1    # Dimensions DWire                               #9  DWire Dimension global CircleDimension      ;CircleDimension                  = 1    # Dimensions Circle                              #10 Circle Dimension global CirclePartDimension  ;CirclePartDimension              = 1    # Dimensions Circle Part                         #11 Circle Part Dimension global ArcDimension         ;ArcDimension                     = 1    # Dimensions Arc                                 #12 Arc Dimension global EllipseDimension     ;EllipseDimension                 = 1    # Dimensions Ellipse                             #13 Ellipse Dimension global EllipsePartDimension ;EllipsePartDimension             = 1    # Dimensions Ellipse Part                        #14 Ellipse Part Dimension global PolygonDimension     ;PolygonDimension                 = 1    # Dimensions Polygon                             #15 Polygon Dimension global RectangleDimension   ;RectangleDimension               = 1    # Dimensions Rectangle                           #16 Rectangle Dimension global BSplineDimension     ;BSplineDimension                 = 1    # Dimensions BSpline                             #17 BSpline Dimension global PointDimension       ;PointDimension                   = 1    # Dimensions Point                               #18 Point Dimension global BezCurveDimension    ;BezCurveDimension                = 1    # Dimensions BezCurve                            #19 BezCurve Dimension
 * 1) Draft

global CylinderDimension    ;CylinderDimension                = 1    # Dimensions du Cylindre Rayon Hauteur Angle     #20 Cylinder Dimension global BoxDimension         ;BoxDimension                     = 1    # Dimensions du Box Length Width Height          #21 Box Dimension global SphereDimension      ;SphereDimension                  = 1    # Dimensions de la Sphere                        #22 Sphere Dimension global EllipsoidDimension   ;EllipsoidDimension               = 1    # Dimensions Ellipsoid                           #23 Ellipsoid Dimension global ConeDimension        ;ConeDimension                    = 1    # Dimensions du Cone                             #24 Cone Dimension global TorusDimension       ;TorusDimension                   = 1    # Dimensions du Tore                             #25 Torus Dimension
 * 1) Solid

global PlanePartDimension   ;PlanePartDimension               = 1    # Dimensions Plan Part                           #26 Plane Part Dimension global PrismPartDimension   ;PrismPartDimension               = 1    # Dimensions Prisme Part                         #27 Prism Part Dimension global WedgePartDimension   ;WedgePartDimension               = 1    # Dimensions Wedge Part                          #28 Wedge Part Dimension global HelixPartDimension   ;HelixPartDimension               = 1    # Dimensions Helix Part                          #29 Helix Part Dimension global SpiralPartDimension  ;SpiralPartDimension              = 1    # Dimensions Spirale Part                        #30 Spiral Part Dimension global VertexPartDimensio   ;VertexPartDimension              = 1    # Dimensions Vertex Part                         #31 Vertex Part Dimension global LinePartDimension    ;LinePartDimension                = 1    # Dimensions Line Part                           #32 Line Part Dimension global RegularPolygonPartDimension;RegularPolygonPartDimension = 1   # Dimensions RegularPolygon Part                 #33 Regular Polygon Part Dimension
 * 1) Part

global FaceSurface          ;FaceSurface                      = 1    # Surface de la face                             #34 Face Surface global FaceCenter           ;FaceCenter                       = 1    # Center Face (mass)                             #35 Face Center global BoundBoxFaceVol      ;BoundBoxFaceVol                  = 1    # BoundBoxFace Volume                            #36 BoundBox Face Volume global BoundBoxFaceCent     ;BoundBoxFaceCent                 = 1    # BoundBoxFaceCenter                             #37 BoundBox Face Center global BoundBoxFaceCoor     ;BoundBoxFaceCoor                 = 1    # BoundBoxFace coordinates                       #38 BoundBox Face Coordinates
 * 1) Face

global BounBoxVolumeVol     ;BounBoxVolumeVol                 = 1    # rectangle du BoundBox                          #39 BounBox Volume Volume global BounBoxVolumeCent    ;BounBoxVolumeCent                = 1    # centre de la forme                             #40 BounBox Volume Center global BounBoxVolumeCoor    ;BounBoxVolumeCoor                = 1    # boundinbox (dimensions hors tout)              #41 BounBox Volume Coordinates global VolumeObject         ;VolumeObject                     = 1    # volume                                         #42 Volume Object global CenterMass           ;CenterMass                       = 1    # centre de la masse                             #43 Center Mass object global PlacementForme       ;PlacementForme                   = 1    # placement de la forme                          #44 Placement Forme global LineInclination      ;LineInclination                  = 1    # search inclination XY YZ ZX uniquement lignes  #45 Line Inclination global VertexesObject       ;VertexesObject                   = 1    # Vertexes de l'objet selectionne                #46 Vertexes Object global VertexesForme        ;VertexesForme                    = 0    # Vertexes complet de la forme                   #47 Vertexes Forme # peut prendre du temps, depasser la fenetre et donner des donnees incompletes # can take time and exceed the window and give data's incompletes
 * 1) Volume
 * 1) End Section Switch #######################################################################################################################

It is not possible at the moment to leave the function from the macro or scrolling

It is not possible at the moment to leave the function from the macro or scrolling

One mouse click on the object display the information of the object, two mouse click select the object complete and displayed alls informations

(it is possible you can not see everything informations in the window for the moment)

Script
The icon Macro_FCInfoGlass.FCMacro

Copy the script on Gits Macro_FCInfoGlass

or download the zip unzip the file and copy the Macro_FCInfoGlass.FCMacro in your macro directory.

Links
The discussion on the forum FCInfo Macro

My macros on mario52a gists

Version
Prototype not finished

04/08/2015 Ver 0.02 : add switch and presentation