"AutoCAD Main Window Invisible" Error

Discussion in 'AutoCAD' started by Paul Richardson, May 17, 2004.

  1. Hi All,

    While using the GetEntity utility I keep getting an error.

    "AutoCAD main window is invisible. To turn on the window, set the visible
    property of the application object to acTrue"

    Althought a few times it has worked, mostly just the error. Any thoughts on
    what
    I am doing wrong.

    Thank You,

    Paul

    Dim obj As AecEntity
    Dim pt As Variant
    Dim wall As AecWall

    ThisDrawing.Utility.GetEntity obj, pt, "Select a Wall: "

    If TypeOf obj Is AecWall Then
    Set wall = obj
    MsgBox "Wall Length: " & wall.length, vbInformation, "Length
    Example"
    Else
    MsgBox "Not a Wall", vbExclamation, "Length Example"
    End If
     
    Paul Richardson, May 17, 2004
    #1
  2. Me.hide before GetEnt oops..
     
    Paul Richardson, May 18, 2004
    #2
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.