errors using getpoint

errors using getpoint

Anonymous
Not applicable
372 Views
2 Replies
Message 1 of 3

errors using getpoint

Anonymous
Not applicable
I am trying to write a simple program to generate a import data file for
Cartegraph Pavement View software.
I have a aerial survey map on screen that is referenced to UTM East West
coordinates.
I simple want to use the getpoint command to have the user click on an
street intersection, get those X-Y coordinates and save them to a data file
along with some info from some text boxes. On a rare occasion the code
works flawlessly, but more often than not it give the message

"AutoCAD main window is not visible"

I am stumped here, I have tried about every setting I could think of to set
the window to visible, but no luck

HELP. This is for my work and will make my job a whole lot faster.

--
Jonathan Bedsole ICQ# 4632211 http://linux.floweb.com/~jbedsole/
0 Likes
373 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable
Can you show some code? Is this VB or VBA? -- Walter -- http://www.ActiveDwg.com
0 Likes
Message 3 of 3

Anonymous
Not applicable
Jonathan,

This error typically occurs when you are trying to access the AutoCAD window
while your application is still visible. Is this the case? If so, use the
Hide method just before you try to access the AutoCAD window and the Show
method when you are finished.
--
Joe Sutphin
Author of "AutoCAD 2000 VBA Programmers Reference"
ISBN #1861002564 Order it at
http://www.amazon.com/exec/obidos/ASIN/1861002564/o/qid%3D942504788/sr%3D8-1
/002-7788324-2908264

Checkout Sources - the only magazine dedicated to AutoCAD customization
http://vbdesign.hypermart.net/sources/

Jonathan Bedsole wrote in message
news:[email protected]...
> I am trying to write a simple program to generate a import data file for
> Cartegraph Pavement View software.
> I have a aerial survey map on screen that is referenced to UTM East West
> coordinates.
> I simple want to use the getpoint command to have the user click on an
> street intersection, get those X-Y coordinates and save them to a data
file
> along with some info from some text boxes. On a rare occasion the code
> works flawlessly, but more often than not it give the message
>
> "AutoCAD main window is not visible"
>
> I am stumped here, I have tried about every setting I could think of to
set
> the window to visible, but no luck
>
> HELP. This is for my work and will make my job a whole lot faster.
>
> --
> Jonathan Bedsole ICQ# 4632211 http://linux.floweb.com/~jbedsole/
>
0 Likes