.swp macro

Insert Block In Drawings: add a .sldblk to every sheet

Inserts a .sldblk sketch block at a fixed position on one sheet, several named sheets, or every sheet in a drawing, then rebuilds and saves.

Drawing

DRW Drawings

Download Insert Block In Drawings.swp Get SwMacroFlow

Put the downloaded file in this folder, then open SwMacroFlow and choose it from the library.

%LOCALAPPDATA%\SwMacroFlow\macros

Runs per file, on drawings.

Inputs

FieldPurpose
BlockPathThe sketch block file to insert.
XPositionX position on the sheet, in mm from the sheet origin.
YPositionY position on the sheet, in mm from the sheet origin.
AngleRotation in degrees.
ScaleScale factor; 1 is full size.
SheetNameA sheet name, or a comma-separated list. Blank means every sheet.

The four numeric fields are plain text boxes because everything reaches a macro as a string; leave one blank and it falls back to its neutral value (0, or 1 for Scale).

Results

Reports how many sheets the block was inserted on.