add_symbol
Adds hole callouts, surface finish, datum, or GD&T symbols to a SolidWorks drawing view, placing leaders on a model edge and linking annotations to the model.
Instructions
A symbol on an edge of a view, its leader attached mid-edge. type:
'hole_callout': ref 'hole:'; diameter, depth, counterbore/countersink, thread, linked to the model; count=True counts identical holes in the view into it ('4X ...');
'surface_finish': ISO 1302, roughness 'Ra 1.6', process 'machined', 'any' or 'no_removal';
'datum': lettered datum feature symbol, label 'A';
'gtol': ISO 1101 frame, symbol straightness, flatness, circularity, cylindricity, line_profile, surface_profile, parallelism, perpendicularity, angularity, position, concentricity, symmetry, runout or total_runout; tolerance '0.05'; datums ['A', 'B']; diameter=True for a round zone; material_condition 'MMC' / 'LMC'. ref as in add_dimension. at=[x, y] places it (sheet mm), by default off the view, clear of text.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| at | No | ||
| ref | Yes | ||
| type | Yes | ||
| view | Yes | ||
| count | No | ||
| label | No | ||
| datums | No | ||
| symbol | No | ||
| process | No | machined | |
| diameter | No | ||
| roughness | No | ||
| tolerance | No | ||
| material_condition | No |