GDLParameter2Property en - kuvbur/AddOn_SomeStuff GitHub Wiki

Synchronization of GDL Parameters and Properties

The add-on copies the value of a parameter or property into a property whose description contains Sync_from{PARAMETER_NAME} or Sync_to{PARAMETER_NAME}.

  • Sync_from{PARAMETER_NAME} - copies values FROM the parameter INTO the property with this description
  • Sync_to{PARAMETER_NAME} - copies values FROM the property with this description INTO the parameter

Control Commands

  • Track - starts monitoring element changes. Copying occurs when an element is modified.
  • Synchronize All - copies values for all elements of the selected type.
  • Synchronize Selected - copies values only for selected elements (without activating monitoring).

Element Filtering

  • Use menu items:
    Process Walls/Slabs
    Process Windows/Doors
    Process Objects
  • To exclude an element from processing, create a property with the description Sync_flag (type: match criterion).

Copying Parameters to Properties

Applicable for library elements, windows, doors, zones:

  1. Select the library element
  2. Open the object editor:
  3. Click the Parameters button
  4. Find the parameter in the Name column, copy its identifier from the Variable column
  5. In the Property Manager:
    • In the description of the target property, enter Sync_from{copied_identifier}
      Example
    • Create a flag property with the description Sync_flag (type: criteria). Pay attention to Example
  6. Make the properties available in the classes you need Example
  7. Run the required command

Data type is automatically converted (number ↔ string)


Copying Properties to Properties

Applicable to all element types:

  1. In the Property Manager:
    • In the description of the target property, specify Sync_from{Property:GROUP_NAME/PROPERTY_NAME} Example
    • Create a flag property with the description Sync_flag Example
  2. Run the required command

To search for properties, use the format Property:Group/Property.

⚠️ **GitHub.com Fallback** ⚠️