Results 1 to 10 of 10

Thread: open acad drawings within excel VBA

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #3
    Tommy:

    the error message still there..

    Error occurs right after the "GetObject" line is exercuted
    The program end there

    The "Err.Description" line did not function.

    I tried the following, still doesn't work..

    If IsError(GetObject(, "AutoCAD.Application")) Then
       Err.Clear
       Set AcadApp = CreateObject("AutoCAD.Application")
       Else
       Set AcadApp = GetObject(, "AutoCAD.Application")
    End If



    Any idea how to check if autocad is already running??
    autocad running --> use GetObject
    autocad not running --> use CreateObject

    thank you
    Last edited by Aussiebear; 04-09-2023 at 04:40 AM. Reason: Adjusted the code tags

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •