CAD+ Toolset | Utilities for SOLIDWORKS automation
SOLIDWORKS utilities for improving your productivity in SOLIDWORKS. Automate properties, geometry, export and much more

Demo Download Buy

Macro+ framework for managing VBA macro arguments in CAD+


Macro+ framework enables the communication between the macro and the running environment. Currently, Macro+ framework is enabled in the following modules:

Macro+ can be accessed from VBA macros and .NET xCAD macros. In both cases the same functionality is available:

  • Reading the arguments passed by the user
  • Accessing the pointer to the document the macro is run on
  • Creating the result files
  • Setting the custom user result
  • Logging the message
  • Logging trace message
  • Reporting the issues (error, warning, comment)

Find examples of Macro+ here

Arguments

You can pass custom arguments to the macro via the Macro+ framework. An argument can be either static text or an expression that is resolved at runtime

Arguments panel
Arguments panel

  1. Free text argument
  2. Arguments with variables in the Expression Box control
  3. Copy the arguments to the clipboard
  4. Paste arguments from the clipboard

Product of Xarial Product of Xarial