Macro Wiki Object Properties List Generator/pl

Description
This macro generates lists of properties of the selected object in different forms in Wiki format. The list is printed to the Report view of FreeCAD. This macro can be used to simplify working with this Wiki with some restrictions. The property lists published in Wiki usually contain only unique parameters. Parameters inherited from parent objects are not published.

This script automatically removes inherited parameters from the list. But due to the software limitations of FreeCAD, it cannot delete absolutely all inherited parameters, so the lists generated by this script should be carefully checked before publishing.

Introduction
Each object created in FreeCAD is inherited from the parent object. The structure of these relationships is shown in the diagram below. You can read more about this on the page: Part Feature



How To Use

 * Preparing:
 * Copy code of Macro from this page and place it in a new *.FCMacro file.
 * Save FCMacro file, and place it in the FreeCAD Macros folder.
 * Disable Include a timecode for each entry checkbox in Preferences -> General -> Output window (Tab).


 * First using:
 * Select (or create and select) only one object in tree view the type of you need.
 * Select Macro -> Macros... item in main menu.
 * In opened window find *.FCMacro file what you save letter and press Execute Button.
 * In the dialog that opens, select the type of report that you want to get by pressing button:
 * Only Main - prints only unique properties of base (parent) classes.
 * All Properties - prints absolutely all properties of selected object.
 * Inherits+Unique Properties - prints only unique properties with included inherits report.
 * Only Unique Properties - prints only unique properties.


 * How to use again:
 * To quickly run this macro again, you can use keyboard shortcut Shift+Ctrl+1 (on Windows) it will launch the last run macro.

Recommendations
Do not delete spaces between lines. This is necessary to simplify the translation. Each line separated by a space will be considered a separate part for translation. When creating texts, always remember that large monolithic fragments of text are difficult for translators to translate.

Examples of using

 * For example open the Part Workbench
 * Create a Sphere object.
 * Select the created Sphere object.
 * Run the macro.
 * Press one of the buttons in the dialog that opens.

The macro will generate a report depending on which button you clicked.

Note that the order of the lines in the parameter editor may differ from the order of the lines made by the generator.

{| class="wikitable" !style="width: 33%;"|Only Unique Properties !style="width: 33%;"|Inherits+Unique Properties !style="width: 33%;"|All Properties
 * - style="vertical-align: top;"

Data

 * : The angle of the sphere


 * : The angle of the sphere


 * : The angle of the sphere


 * : The radius of the sphere



View
&#60;&#33;&#45;&#45; AngularDeflection inherited from class PartDesign::Body BoundingBox inherited from class PartDesign::Body Deviation inherited from class PartDesign::Body DiffuseColor inherited from class PartDesign::Body DisplayMode inherited from class PartDesign::Body DrawStyle inherited from class PartDesign::Body Lighting inherited from class PartDesign::Body LineColor inherited from class PartDesign::Body LineColorArray inherited from class PartDesign::Body LineMaterial inherited from class PartDesign::Body LineWidth inherited from class PartDesign::Body OnTopWhenSelected inherited from class PartDesign::Body PointColor inherited from class PartDesign::Body PointColorArray inherited from class PartDesign::Body PointMaterial inherited from class PartDesign::Body PointSize inherited from class PartDesign::Body Selectable inherited from class PartDesign::Body SelectionStyle inherited from class PartDesign::Body ShapeColor inherited from class PartDesign::Body ShapeMaterial inherited from class PartDesign::Body ShowInTree inherited from class PartDesign::Body Transparency inherited from class PartDesign::Body Visibility inherited from class PartDesign::Body &#45;&#45;&#62;

Data
&#60;&#33;&#45;&#45; AttacherType inherited from class Part::Part2DObject AttachmentOffset inherited from class Part::Part2DObject ExpressionEngine inherited from class PartDesign::Body Label inherited from class PartDesign::Body Label2 inherited from class PartDesign::Body MapMode inherited from class Part::Part2DObject MapPathParameter inherited from class Part::Part2DObject MapReversed inherited from class Part::Part2DObject Placement inherited from class PartDesign::Body Shape inherited from class PartDesign::Body Support inherited from class Part::Part2DObject Visibility inherited from class PartDesign::Body &#45;&#45;&#62;


 * : The angle of the sphere


 * : The angle of the sphere


 * : The angle of the sphere


 * : The radius of the sphere



View

 * : Display object bounding box


 * : Set the display mode


 * : Show the object in the tree view


 * : Show the object in the 3d view

The default value is 28.5 degrees, or 0.5 radians. The smaller the value the smoother the appearance in the 3D view, and the finer the mesh that will be exported.
 * : Specify how finely to generate the mesh for rendering on screen or when exporting.

in the 3D view (tessellation). Lower values indicate better quality. The value is in percent of object's size.
 * : Sets the accuracy of the polygonal representation of the model


 * : Object diffuse color.


 * : Defines the style of the edges in the 3D view.


 * : Set object lighting.


 * : Set object line color.


 * : Object line color array.


 * : Object line material.


 * : Set object line width.


 * : Set object point color


 * : Object point color array.


 * : Object point material.


 * : Set object point size.


 * : Set shape color


 * : Shape material


 * : Set object transparency

Object: On top only if the whole object is selected Element: On top only if some sub-element of the object is selected
 * : Enabled: Display the object on top of any other object when selected


 * : Set if the object is selectable in the 3d view


 * : Set the object selection style

Data







 * : Class name of attach engine object driving the attachment.


 * : Extra placement to apply in addition to attachment (in local coordinates)


 * : Mode of attachment to other object


 * : Sets point of curve to map the sketch to. 0..1 = start..end


 * : Reverse Z direction (flip sketch upside down)


 * : Support of the 2D geometry


 * : Property expressions


 * : User name of the object (UTF8)


 * : User description of the object (UTF8)


 * : The angle of the sphere


 * : The angle of the sphere


 * : The angle of the sphere


 * : The radius of the sphere


 * }

Generate properties of all parent base classes
...

Links
The discussion on the forum: https://forum.freecadweb.org/viewtopic.php?f=21&t=61998