Skip to content

A FreeCAD workbench for managing varsets and aliases

License

LGPL-3.0, CC-BY-SA-4.0 licenses found

Licenses found

LGPL-3.0
LICENSE-CODE
CC-BY-SA-4.0
LICENSE-DOCS-AND-ICON
Notifications You must be signed in to change notification settings

royw/freecad_datamanager_workbench

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

176 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

DataManager FreeCAD Workbench

Docs

Manages FreeCAD VarSets and aliases.

Tested on FreeCAD version 1.0.2 and 1.1.0rc2.

Documentation: royw.github.io/freecad_datamanager_workbench

Special thanks to OldBeard for his testing of the beta workbench and many great suggestions!

Suggestion FreeCAD Preferences

  • Enable: General --> Selection --> Tree Selection Behavior --> Auto expand tree item when the corresponding object is selected in the 3D view.

Installation

Add instructions for installing via the Addon Manager.

Usage

The workbench appears in the FreeCAD workbench selector as Data Manager.

DataManager workbench annotated UI

Annotated UI legend:

  1. Workbench selection (workbench selector, Data Manager menu, and toolbar icons)
  2. VarSets and Aliases tabs
  3. Available VarSets
  4. VarSets filter
  5. Exclude CopyOnChanged varsets checkbox
  6. Variables list
  7. Only Unused checkbox
  8. Remove Selected Unused Variables button
  9. Splitter (resizable pane divider)
  10. Expressions list
  11. Show Objects as: Name/Label radio buttons
  12. Copy Selection Buttons
  13. Shows selected expression selects object in model view

VarSets tab

  • VarSets list (3)

    • Select one or more VarSets to populate the Variables list.
    • If a VarSet contains variables in multiple groups, the list may also include virtual entries like VarSetName.GroupName. Selecting a virtual entry filters the Variables list to that group.
  • VarSets filter (4)

    • Filters VarSets by name using a glob match.
    • If you type no glob characters, the filter is treated as a substring match.
  • Exclude CopyOnChanged varsets (5)

    • When you create Links to objects referencing a VarSet, FreeCAD may create hidden copy-on-change groups (typically CopyOnChangeGroup*) and generate copied VarSets (e.g. VarSet001).
    • Enabling this option hides those generated copies so the list focuses on the VarSets you created.
  • Variables filter

    • Filters variables by variable name using a glob match.
    • The match is against the variable name only (not the VarSetName. prefix).
  • Only Unused (7)

    • Shows only variables that have no expression references.
  • Remove Selected Unused Variables (8)

    • Removes the selected unused variables from the VarSet.
  • Expressions list (10)

    • Shows the expressions that reference each variable.
    • Clicking an expression selects the Object in the Model tree.
    • The list is resizable using a splitter (9).
    • Use the Show Objects as: Name/Label radio buttons (11) to control whether expression list entries display the FreeCAD object internal name or its label. The choice is persisted.
  • Copy Selected (12)

    • Each list pane includes a Copy Selected button.
    • Clicking it copies the selected list items to the clipboard (one item per line).
    • You can also right-click a list to use Copy (and Select All where applicable).
  • Select object in model tree from expression (13)

    • Clicking an expression entry attempts to select the referenced object in the FreeCAD model tree.

Aliases tab

  • The Aliases tab mirrors the VarSets layout and is resizable using a splitter.
  • Alias definition rows are displayed using := to distinguish definition from a normal expression (for example: Spreadsheet.A1 := 'MyAlias).
  • The Show Objects as: Name/Label setting is independent from the VarSets tab and is persisted.

Multiple open documents

If you have multiple FreeCAD documents open, the panel follows the currently active document in the model view and refreshes the lists when you switch documents.

About

A FreeCAD workbench for managing varsets and aliases

Topics

Resources

License

LGPL-3.0, CC-BY-SA-4.0 licenses found

Licenses found

LGPL-3.0
LICENSE-CODE
CC-BY-SA-4.0
LICENSE-DOCS-AND-ICON

Contributing

Stars

Watchers

Forks

Sponsor this project