Jump to content

Script or lisp to press "OK" on pop up box


dweafer

Recommended Posts

There is a "SVY_VEHICLETRACKING_DATA" dictionary in the namedobjdict.

This code will get rid of it (tested on BricsCAD). You may have to open the files in 'Vanilla' AutoCAD to be able to batch process them without popup messages. Or use the code before saving to the 2013 format. Note: use at your own risk!

(defun c:Del_VTD ( / enm)
  (if (setq enm (cdr (assoc -1 (dictsearch (namedobjdict) "SVY_VEHICLETRACKING_DATA"))))
    (progn
      (vla-delete (vlax-ename->vla-object enm)) ; Entdel does not work (BricsCAD).
      (if (vlax-erased-p enm)
        (princ "\nSVY_VEHICLETRACKING_DATA dictionary has been erased ")
      )
    )
  )
  (princ)
)

 

Edited by Roy_043
Added feedback to code
  • Thanks 1
Link to comment
Share on other sites

On 5/24/2019 at 9:56 AM, Roy_043 said:

There is a "SVY_VEHICLETRACKING_DATA" dictionary in the namedobjdict.

This code will get rid of it (tested on BricsCAD). You may have to open the files in 'Vanilla' AutoCAD to be able to batch process them without popup messages. Or use the code before saving to the 2013 format. Note: use at your own risk!


(defun c:Del_VTD ( / enm)
  (if (setq enm (cdr (assoc -1 (dictsearch (namedobjdict) "SVY_VEHICLETRACKING_DATA"))))
    (progn
      (vla-delete (vlax-ename->vla-object enm)) ; Entdel does not work (BricsCAD).
      (if (vlax-erased-p enm)
        (princ "\nSVY_VEHICLETRACKING_DATA dictionary has been erased ")
      )
    )
  )
  (princ)
)

 

Thank Roy,

 

This works perfectly,  appreciate the help.  

Link to comment
Share on other sites

On 5/22/2019 at 10:41 AM, dweafer said:

Hi all,

We are having serious issues with AutoCad 2019 in our office.  I have decided to switch back to 2016.  Our IT had advised that all drawings were to be saved as a 2018 version.

I have saved my 200+ drawings back to 2013 version. 

Switching to a four year old version seems drastic.  Gotta ask what was the issue with AutoCAD 2019? 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...