You need to set the HOLEFLAG flag bit (0x0008 for integer flags, or "hole" for symbolic flags). #define HOLEFLAG 0x0008 /* pin or via is only a hole */