FreeCAD Logo FreeCAD 1.0
  • angielski afrykanerski arabski białoruski kataloński czeski niemiecki grecki hiszpański hiszpański baskijski fiński filipiński francuski galicyjski chorwacki węgierski Indonezyjski włoski japoński kabylski koreański litewski duński Norweski Bokmal polski portugalski portugalski rumuński rosyjski słowacki słoweński serbski szwedzki turecki ukraiński walenciański wietnamski chiński chiński
  • Funkcjonalność programu
  • Pobierz
  • Blog
  • Dokumentacja
    Spis dokumentacji Jak zacząć Dokumentacja użytkowników Podręcznik do programu FreeCAD Dokumentacja środowisk pracy Dokumentacja skryptów środowiska Python Dokumentacja kodowania C++ Poradniki Najczęściej zadawane pytania Polityka prywatności O FreeCAD
  • Przyłącz się do projektu
    Jak pomóc Sponsor Zgłoś błąd Utwórz pull request Praca i finansowanie Zasady współpracy Podręcznik dla programistów Tłumaczenia
  • Społeczność
    Kodeks postępowania Forum The FPA GitHub GitLab Codeberg Mastodon Matrix IRC IRC via Webchat Gitter Discord Reddit Twitter Facebook LinkedIn Kalendarz
  • ♥ Donate

Donate

$
Informacje o SEPA
Skonfiguruj przelew bankowy SEPA do:
Beneficiary: The FreeCAD project association
IBAN: BE04 0019 2896 4531
BIC/SWIFT: GEBABEBBXXX
Bank: BNP Paribas Fortis
Adres: Rue de la Station 64, 1360 Perwez, Belgium

While Stripe doesn't support monthly donations, you can still become a sponsor! Simply make a one-time donation equivalent to 12 months of support, and you'll gain access to the corresponding sponsoring tier. It's an easy and flexible way to contribute.

If you are not sure or not able to commit to a regular donation, but still want to help the project, you can do a one-time donation, of any amount.

Choose freely the amount you wish to donate one time only.

You can support FreeCAD by sponsoring it as an individual or organization through various platforms. Sponsorship provides a steady income for developers, allowing the FPA to plan ahead and enabling greater investment in FreeCAD. To encourage sponsorship, we offer different tiers, and unless you choose to remain anonymous, your name or company logo will be featured on our website accordingly.

from 1 USD / 1 EUR per month. You will not have your name displayed here, but you will have helped the project a lot anyway. Together, normal sponsors maintain the project on its feet as much as the bigger sponsors.

from 25 USD / 25 EUR per month. Your name or company name is displayed on this page.

from 100 USD / 100 EUR per month. Your name or company name is displayed on this page, with a link to your website, and a one-line description text.

from 200 USD / 200 EUR per month. Your name or company name and logo displayed on this page, with a link to your website and a custom description text. Companies that have helped FreeCAD early on also appear under Gold sponsors.

Instead of donating each month, you might find it more comfortable to make a one-time donation that, when divided by twelve, would give you right to enter a sponsoring tier. Don't hesitate to do so!

Choose freely the amount you wish to donate each month.

Please inform your forum name or twitter handle as a notein your transfer, or reach to us, so we can give you proper credits!

Generic macro icon. Create your personal icon with the same name of the macro Wiki List Generator of Object Properties

Description
This macro generate properties list of selected object. List presented in wiki format into Python report view.

Macro version: 0.1
Last modified: 2021-09
Author: Evgeniy
Author
Evgeniy
Download
None
Links
Macros recipes
How to install macros
How to customize toolbars
Macro Version
0.1
Date last modified
2021-09
FreeCAD Version(s)
None
Default shortcut
None
See also
Macro Wiki Object Properties List Generator

Description

This simple macro generate properties list of selected object. The parameters list is printed to the Report view of FreeCAD. This example is more educational in nature and is not applicable for use without editing after generate, since it includes absolutely all the parameters of the object. The lists of properties that are published in this wiki contain, as a rule, only unique parameters. The parameters inherited from the parents objects are not published.

Usage

  • 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) object the type of you need in tree view.
    • Select Macro -> Macros... item in main menu.
    • In opened window find *.FCMacro file what you save letter and press Execute Button.
  • 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.

Example of using

  • For example open the Arch Workbench.
  • Create a Structure object.
  • Select the created Structure object.
  • Run the macro.
  • Copy the text from the report view and paste it in a wiki page and check the result.

Results of using

The results may look like this:

Properties

View

  • WIDOKProxy (PythonObject):

Component

  • WIDOKUseMaterialColor (Bool): Use the material color as this object's shape color, if available

Display Options

  • WIDOKBoundingBox (Bool): Display object bounding box
  • WIDOKDisplayMode (Enumeration): Set the display mode
  • WIDOKShowInTree (Bool): Show the object in the tree view
  • WIDOKVisibility (Bool): Show the object in the 3d view

Nodes

  • WIDOKNodeColor (Color): The color of the nodes line
  • WIDOKNodeLine (Float): The width of the nodes line
  • WIDOKNodeSize (Float): The size of the node points
  • WIDOKNodeType (Enumeration): The type of structural node
  • WIDOKShowNodes (Bool): If the nodes are visible or not

Object Style

  • WIDOKAngularDeflection (Angle): Specify how finely to generate the mesh for rendering on screen or when exporting.

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.

  • WIDOKDeviation (FloatConstraint): Sets the accuracy of the polygonal representation of the model

in the 3D view (tessellation). Lower values indicate better quality. The value is in percent of object's size.

  • WIDOKDiffuseColor (ColorList): Object diffuse color.
  • WIDOKDrawStyle (Enumeration): Defines the style of the edges in the 3D view.
  • WIDOKLighting (Enumeration): Set object lighting.
  • WIDOKLineColor (Color): Set object line color.
  • WIDOKLineColorArray (ColorList): Object line color array.
  • WIDOKLineMaterial (Material): Object line material.
  • WIDOKLineWidth (FloatConstraint): Set object line width.
  • WIDOKPointColor (Color): Set object point color
  • WIDOKPointColorArray (ColorList): Object point color array.
  • WIDOKPointMaterial (Material): Object point material.
  • WIDOKPointSize (FloatConstraint): Set object point size.
  • WIDOKShapeColor (Color): Set shape color
  • WIDOKShapeMaterial (Material): Shape material
  • WIDOKTransparency (Percent): Set object transparency

Selection

  • WIDOKOnTopWhenSelected (Enumeration): Enabled: Display the object on top of any other object when selected

Object: On top only if the whole object is selected Element: On top only if some sub-element of the object is selected

  • WIDOKSelectable (Bool): Set if the object is selectable in the 3d view
  • WIDOKSelectionStyle (Enumeration): Set the object selection style

Data

  • DANEPlacement (Placement):
  • DANEProxy (PythonObject):
  • DANEShape (Part::PropertyPartShape):
  • DANEVisibility (Bool):

Base

  • DANE (Hidden)ExpressionEngine (ExpressionEngine): Property expressions
  • DANELabel (String): User name of the object (UTF8)
  • DANE (Hidden)Label2 (String): User description of the object (UTF8)

Component

  • DANEAdditions (LinkList): Other shapes that are appended to this object
  • DANEAxis (Link): An optional axis or axis system on which this object should be duplicated
  • DANEBase (Link): The base object this component is built upon
  • DANECloneOf (Link): The object this component is cloning
  • DANEHiRes (Link): An optional higher-resolution mesh or shape for this object
  • DANEHorizontalArea (Area): The area of the projection of this object onto the XY plane
  • DANEMaterial (Link): A material for this object
  • DANEMoveBase (Bool): Specifies if moving this object moves its base instead
  • DANEMoveWithHost (Bool): Specifies if this object must move together when its host is moved
  • DANEPerimeterLength (Length): The perimeter length of the horizontal area
  • DANEStandardCode (String): An optional standard (OmniClass, etc...) code for this component
  • DANESubtractions (LinkList): Other shapes that are subtracted from this object
  • DANEVerticalArea (Area): The area of all vertical faces of this object

IFC

  • DANEIfcData (Map): IFC data
  • DANEIfcProperties (Map): IFC properties of this object
  • DANEIfcType (Enumeration): The type of this object

IFC Attributes

  • DANEDescription (String): Description of IFC attributes are not yet implemented
  • DANEGlobalId (String): Description of IFC attributes are not yet implemented
  • DANEObjectType (String): Description of IFC attributes are not yet implemented
  • DANEPredefinedType (Enumeration): Description of IFC attributes are not yet implemented
  • DANETag (String): Description of IFC attributes are not yet implemented

Structure

  • DANEFaceMaker (Enumeration): The facemaker type to use to build the profile of this object
  • DANEHeight (Length): The height or extrusion depth of this element. Keep 0 for automatic
  • DANELength (Length): The length of this element, if not based on a profile
  • DANENodes (VectorList): The structural nodes of this element
  • DANENodesOffset (Distance): Offset distance between the centerline and the nodes line
  • DANENormal (Vector): The normal extrusion direction of this object (keep (0,0,0) for automatic normal)
  • DANEProfile (String): A description of the standard profile this element is based upon
  • DANETool (Link): An optional extrusion path for this element
  • DANEWidth (Length): The width of this element, if not based on a profile

Script

#! python
# -*- coding: utf-8 -*-
# (c) 2021 <Evgeniy> LG
from FreeCAD import Qt

def print_obj_properties(obj,typ):
   prop={}
   i=1
   for pr in obj.PropertiesList:
      tp = obj.getTypeIdOfProperty(pr) or ""
      atr = obj.getTypeOfProperty(pr) or ("")
      # Wiki template supports only Hidden type of property. But it can be as: Hidden,Output,Readonly etc...
      if atr != "" and atr[0] == "Hidden":
         atr = "|"+atr[0]
      else:
         atr = ""      
      prop[str(i)] = pr,obj.getGroupOfProperty(pr),tp.replace("App::Property",""),obj.getDocumentationOfProperty(pr),atr
      i+=1
   sorted_prop = sorted(prop.items(), key=lambda x: x[1][1])

   title=""
   for pr in sorted_prop:
      if title != pr[1][1]:
         title = pr[1][1]
         print("\n"+"{{TitleProperty{"+title+"}}")
      print("\n"+"* {{Property"+typ+"{"+pr[1][0]+"{"+pr[1][2]+pr[1][4]+"}}: "+pr[1][3])

print("\n"+"==Properties==")
print("\n"+"===View===")
obj = Gui.activeDocument().ActiveObject
print_obj_properties(obj,"View")
print("\n"+"===Data===")
obj = FreeCAD.activeDocument().ActiveObject
print_obj_properties(obj,"Data")

Links

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

Ta strona pochodzi z https://wiki.freecad.org/Macro_Wiki_Object_Properties_List_Generator_Basic_Version

Bądźmy w kontakcie!
Forum GitHub Mastodon Matrix IRC Gitter.im Discord Reddit Twitter Facebook LinkedIn

© Załoga FreeCAD. Autorami grafiki na stronie głównej (od góry do dołu) są: ppemawm, r-frank, epileftric, regis, rider_mortagnais, bejant.

Ten projekt jest wspierany przez: , KiCad Services Corp. oraz pozostałych sponsorów

GitHubUlepsz tę stronę na GitHub