VBA
Discuss AutoCAD ActiveX and VBA (Visual Basic for Applications) questions here.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

GetPoint problem

1 REPLY 1
Reply
Message 1 of 2
Anonymous
193 Views, 1 Reply

GetPoint problem

Hi.

I have a routine that uses GetPoint to get the start and end points of a
line. It works if I pick points and it works if I enter coordinates on the
command line, but I also have a pulldown menu that does the same thing as
entering coordinates and pressing enter and I am getting an error message.
The pull down menu with coordinates works for all regular commands that
require a point entry, like drawing lines and inserting blocks. Can someone
tell me why getpoints won't accept the pulldown menu entries and if it's
possible to fix it.

The error code is.
run-time error '-2147352567 (90020009)':
Method 'GetPoint" of object 'IAcadUtility'failed.

TIA for any help

Graeme

--
XMAS is coming.
www.discoverytoyslink.com/learnplaygrow
1 REPLY 1
Message 2 of 2
Anonymous
in reply to: Anonymous

S'ok. I discovered that acad is intercepting the pulldown menu pick first
and causing an error.
I found an error handling procedure that should work. I'll try it later.

Graeme

--
XMAS is coming.
www.discoverytoyslink.com/learnplaygrow
"Graeme Hyslop" wrote in message
news:47C35937A6D1855170D049DD9A240536@in.WebX.maYIadrTaRb...
> Hi.
>
> I have a routine that uses GetPoint to get the start and end points of a
> line. It works if I pick points and it works if I enter coordinates on the
> command line, but I also have a pulldown menu that does the same thing as
> entering coordinates and pressing enter and I am getting an error message.
> The pull down menu with coordinates works for all regular commands that
> require a point entry, like drawing lines and inserting blocks. Can
someone
> tell me why getpoints won't accept the pulldown menu entries and if it's
> possible to fix it.
>
> The error code is.
> run-time error '-2147352567 (90020009)':
> Method 'GetPoint" of object 'IAcadUtility'failed.
>
> TIA for any help
>
> Graeme
>
> --
> XMAS is coming.
> www.discoverytoyslink.com/learnplaygrow
>
>

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost