Adds a macro to the module. 
   Namespace:   Autodesk.Revit.DB.Macros  
  Assembly:   RevitAPIMacros  (in RevitAPIMacros.dll) Version: 2015.0.0.0 (2015.0.0.0) 
  Since:  2014 
Syntax
| C# | 
|---|
   |  
| Visual Basic | 
|---|
   |  
| Visual C++ | 
|---|
   |  
Parameters
- name
 -  Type:  System String  
The macro name. 
- description
 -  Type:  System String  
The description. 
- code
 -  Type:  System String  
The code string, which should be the lines between the main bounding brackets of a method. 
Return Value
The new macro.Exceptions
| Exception | Condition | 
|---|---|
| Autodesk.Revit.Exceptions ArgumentNullException | A non-optional argument was NULL |