Screen position without Dialog box?

Is it possible to get a clicked screen position similar to the attached function without creating a dialog box? I was trying to call a dll from within Blockstyler, but it errors when it gets to this section. The dll works file on its own.

Function Clicked_Screen_Position(ByRef loc As Point3d) As Selection.Response

Dim resp As Selection.DialogResponse = Selection.DialogResponse.None
Dim localView As View

resp = theUISession.SelectionManager.SelectScreenPosition(" New Roadmap Location:", _
localView, loc)
If resp <> Selection.DialogResponse.Back And _
resp <> Selection.DialogResponse.Cancel Then
Return Selection.Response.Ok
Else
Return Selection.Response.Cancel
End If

End Function