Message 1 of 4
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Need help with this. Not sure what's going wrong. Looked for several variations and keep getting this error message:
; error: Automation Error. Problem in loading application
(defun GETBLOCK (DWG BLK / DBX) (vl-load-com) (setq DBX (vla-GetInterfaceObject (vlax-get-acad-object) "ObjectDBX.AxDbDocument")) (vla-open DBX DWG) (vla-CopyObjects DBX (vlax-safearray-fill (vlax-make-safearray vlax-vbObject '(0 . 0)) (list (vla-item (vla-get-blocks DBX) BLK))) (vla-get-blocks (vla-get-activedocument (vlax-get-acad-object)))) (vlax-release-object DBX) )
Andrew Ingram
Civil 3D x64 2019
Win 10 x64 Pro
Intel Xeon E5-1620
32 GB Ram
Civil 3D x64 2019
Win 10 x64 Pro
Intel Xeon E5-1620
32 GB Ram
Solved! Go to Solution.