View Full Version : AutoCAD main window invisible

2005-01-13, 06:16 AM
Using AC2K

I'm running this code copied straight from the getpoint help example.
this produces a runtime error saying AutoCAD main window is invisible.
the de bug help says "Set the visible property of the application to actrue"
What is this and how is it done?????

Dim basePnt(0 To 2) As Double
basePnt(0) = 2#: basePnt(1) = 2#: basePnt(2) = 0#
returnPnt = ThisDrawing.Utility.GetPoint(basePnt, "Enter a point: ")

Sorry for all the idiot questions! We have a quite time straight after Christmas, so lots of time to kill...



2005-01-13, 12:19 PM
i have encountered this while working in forms. u have to bring the focus to autocad
window by doing 'userform.hide.' and after performing the operations come back to form by 'userform.show.'.. what i have mentioned is one case..just check if u are losing focus
from the autocad window which is reqd. while using the getopint method