Readme for Symbols and Standard VBA Samples

This readme contains information about the VBA samples for creating and editing symbols and standard in AutoCAD Mechanical.

To Use the Samples

The samples are AutoCAD VBA project (DVB) files. See the "Description of the Samples" section below for any specific information about the samples.

 To use a VBA sample or view its code:

  1. Start AutoCAD Mechanical, drag and drop the VBA sample into AutoCAD Mechanical.
  2. On the AutoCAD Mechanical Assist menu, click Macro > Macros.
  3. In the Macros dialog box, in the Macro list, select a macro to use or view.
  4. Do one of the following:
    1. To use the selected macro, click Run.
    2. To view the code of the selected macro in the VBA Integrated Development Environment (VBA IDE), click Edit.

 

Descriptions of the Samples

 

PartList.dvb 

This sample demonstrates how to create parts list and edit the following properties of the parts list.

 It allows users to set the following properties of the parts list standard.

 To use the sample, run the macro named PartList.

Return to Top

PartRef.dvb

This sample demonstrates how to create a part reference and set the attributes of BOM columns for the part reference.

To use the sample, run the macro named PartRef.

As this sample references to “Microsoft Windows Common Controls 6.0”, you must ensure that this Common Control is installed and “mscomctl.ocx” exists in “WINDOWS\system32” or “WINDOWS\SysWOW64\” (for 64-bit Windows OS).

Return to Top

Standard.dvb

This sample lists the registered standards and standards in current document. It allows users to create a new standard based on a registered standard, rename and remove standard in the current document.

To use the sample, run the macro named Standard.

Return to Top

SurfaceTexture.dvb

 This sample demonstrates how to create a surface texture symbol and attach it to a geometry in the drawing. It allows users to set all the values of the symbol, control the display of the tail and all-around sign, and specify the surface type and arrowhead type of the leader.

To use the sample, run the macro named SurfaceTexture.

Return to Top

Welding.dvb

This sample demonstrates how to create a weld symbol and attach it to a geometry in the drawing. It allows users to specify the symbol type for arrow side and other side, set arrow side data, and place field weld symbol, all around symbol and tail.

To use the sample, run the macro named Welding.

Return to Top