Please post a code snippet that shows how you use that function.
Code Syntax Highlighting
When you post code, use the Forum advanced editor's syntax highlighting tool. That's the icon that resembles a pencil:
Can you post a DGN file that contains the outer shape and the shapes used to define the holes?