Abstract:A method for automatic marking surface roughness on AutoCAD desk with VBA is developed. By national standard the block and attribute of surface roughness are created with VBA. The style, scale of symbol and the value selection of surface roughness are realized in dibox. The inserted angle and directional acme of surface roughness are determined in vector. As a result, the surface roughness symbol can be automatically marked.