I am getting an error message entitled 'Value does not fall within expected range' with an error number of -2147024809 and no other information (no inner exceptions etc). This happens when the 'circle1 = myDocuments.ThisDrawing.ModelSpace.AddCircle(point, 15)' line below is run :
If keypair.Value.Weepholes.Count > 0 Then
For Each point As Point3d In keypair.Value.Weepholes
'Add a weephole
circle1 = myDocuments.ThisDrawing.ModelSpace.AddCircle(point, 15)
circle1.color = ACAD_COLOR.acByLayer
circle1.Layer = EASICAD_LAYERS.SOLIDENDWEEPHOLES
The coordinates of the 'point' variable are well within the model space limits (-40073, -77029, 0). And essentially I have copied and pasted the basics of this code from another function which works fine.
Any ideas?