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:
Descriptions of the Samples
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.
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).
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.
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.
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.