Message 1 of 3
How can ACAD be invisible? I can see it!!

Not applicable
04-16-2002
04:33 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Like most of us who have been thrust into the world of Vb/VBA, I know enough to be dangerous. I have a program that will hopefully do a bunch of things but for now all it does is crash. If I apply a brake to the suspect area, and then step through the code it works fine. BUT when I take the brake out I get an error "AutoCAD's main window is invisible" here's the suspect code....
Private Sub Do_it()
'ThisDrawing.Application.Visible = True
With ThisDrawing.Utility 'This is where I carsh unless I step through it.
.InitializeUserInput 1
VarInspt = .GetPoint(, vbCr & "Select insertion point: ")
End With
ThisDrawing.ModelSpace.InsertBlock VarInspt, "C:\NEWGDOORPROG.DWG", 1, 1, 1, 0
End Sub
Any ideas??
PLEASE keep it simple so I can understand the answer.
THANKS!!
Private Sub Do_it()
'ThisDrawing.Application.Visible = True
With ThisDrawing.Utility 'This is where I carsh unless I step through it.
.InitializeUserInput 1
VarInspt = .GetPoint(, vbCr & "Select insertion point: ")
End With
ThisDrawing.ModelSpace.InsertBlock VarInspt, "C:\NEWGDOORPROG.DWG", 1, 1, 1, 0
End Sub
Any ideas??
PLEASE keep it simple so I can understand the answer.
THANKS!!