stigma
02-10-2006, 05:40 PM
I'm starting with ACAD VBA, and made a small proggram to get images from a web server (map server) and place them in my drawing.
I'm having some probnlems with the GetPoint function, It isn't working as expected and sends me a nice error message "Error in method GetPoint in object IAcadUtility2" :bug:
Here's the code:
Dim basePntX as Variant
basePntX = ThisDrawing.Utility.GetPoint(, "Select lower left corner")
Me.txtX = basePntX(0)
Me.txtY = basePntX(1)
Curiously, if I Debug the error and re-run that GetPoint line, It works as expected. :motz2:
What I'm doing wrong ?? :doh:
PS: If needed I can send the complete code by e.mail
I'm having some probnlems with the GetPoint function, It isn't working as expected and sends me a nice error message "Error in method GetPoint in object IAcadUtility2" :bug:
Here's the code:
Dim basePntX as Variant
basePntX = ThisDrawing.Utility.GetPoint(, "Select lower left corner")
Me.txtX = basePntX(0)
Me.txtY = basePntX(1)
Curiously, if I Debug the error and re-run that GetPoint line, It works as expected. :motz2:
What I'm doing wrong ?? :doh:
PS: If needed I can send the complete code by e.mail